Hi
Im trying to compile the server on smartos server a solaris clone with illumos kernel.
The configure runs fine
When I type make, after a wile I receive this error:
g++ -D_REENTRANT -pthreads -DLINUX -g -O2 -o urbackup_srv AcceptThread.o Client.o Database.o Query.o SelectThread.o Server.o ServerLinux.o ServiceAcceptor.o ServiceWorker.o SessionMgr.o StreamPipe.o Template.o WorkerThread.o main.o md5.o stringtools.o fastcgi.o Mutex_lin.o LoadbalancerClient.o DBSettingsReader.o file_common.o file_fstream.o file_linux.o FileSettingsReader.o LookupService.o SettingsReader.o Table.o OutputStream.o ThreadPool.o MemoryPipe.o Condition_lin.o MemorySettingsReader.o sqlite3.o shell.o SQLiteFactory.o PipeThrottler.o mt19937ar.o DatabaseCursor.o -ldl -lsocket -lnsl
Undefined first referenced
symbol in file
__stack_chk_fail AcceptThread.o
__stack_chk_guard AcceptThread.o
ld: fatal: symbol referencing errors. No output written to urbackup_srv
collect2: error: ld returned 1 exit status
Makefile:524: recipe for target ‘urbackup_srv’ failed
make[2]: *** [urbackup_srv] Error 1
make[2]: Leaving directory ‘/root/urbackup-server-1.4.6’
Makefile:684: recipe for target ‘all-recursive’ failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory ‘/root/urbackup-server-1.4.6’
Makefile:427: recipe for target ‘all’ failed
make: *** [all] Error 2
[root@owntest ~/urbackup-server-1.4.6]#
I have Gcc 4.9
Do you have any hints to compile it under Solaris
Thank you
Paolo
I wish i could be of more help, and i would love to get URBackup going on SmartOS as well, SmartOS having native ZFS just makes alot of sense for URBackup.
Also i have posted a thread here with a different compile error … I am trying to get UrBackup going in a zone on my setup
Hi
Now crypto++ is available as cryptopp:
[root@owntest ~/urbackup-server-1.4.6]# pkgin search cryptopp
py27-cryptopp-0.6.0 Python wrapper for (and copy of parts of) crypto++
py26-cryptopp-0.6.0 Python wrapper for (and copy of parts of) crypto++
cryptopp-5.6.2nb2 = Free C++ class library of Cryptographic Primitives
=: package is installed and up-to-date
<: package is installed but newer version is available
: installed package has a greater version than available package
[root@owntest ~/urbackup-server-1.4.6]#
I tried Both but without success,
I tried also to remove the -DLINUX ifdef flag by removing it from tha Makefile.am and I obtain another error:
file.h:15:3: warning: #warning “using STL file access files>4GB are not supported” [-Wcpp]
warning “using STL file access files>4GB are not supported”
Hi
I compiled also with the crypto++ but I cannot start the server succesfully
2014-12-18 15:48:06: ERROR: DLL not found: ld.so.1: urbackup_srv: fatal: /lib/liburbackupserver_fsimageplugin.so: open failed: No such file or directory
2014-12-18 15:48:06: ERROR: Loading /lib/liburbackupserver_fsimageplugin.so failed
2014-12-18 15:48:06: ERROR: DLL not found: ld.so.1: urbackup_srv: fatal: /lib/liburbackupserver.so: open failed: No such file or directory
2014-12-18 15:48:06: ERROR: Loading /lib/liburbackupserver.so failed
2014-12-18 15:48:06: ERROR: DLL not found: ld.so.1: urbackup_srv: fatal: /lib/liburbackupserver_httpserver.so: open failed: No such file or directory
2014-12-18 15:48:06: ERROR: Loading /lib/liburbackupserver_httpserver.so failed
2014-12-18 15:48:06: ERROR: Failed binding SOCKET to Port 55413
2014-12-18 15:48:06: ERROR: Error while starting listening to ports. Stopping server.
when I deploy the application with make install i DO NOT HAVE the .so but only .a and .la
I tried also --enable-shared.
Do you have any suggestion ?
export LDFLAGS="-lssp -fstack-protector"
export CFLAGS="-fstack-protector -fPIC"
./configure --with-pic ;make all
Patches are in the attached file. urbackup.7z (1.9 KB)
2014-12-23 14:51:50: WARNING: Filename “filename123.txt” too long. Shortening it.
2014-12-23 14:51:50: WARNING: Filename “filename456.txt” too long. Shortening it.
And in fact, from the web interface, and on the filesystem, all the files have a name like “de-e3fe88f3e3”.
Hi there is something wrong with NAME_MAX,
if you define NAME_MAX as _POSIX_NAME_MAX, it fixes it to 14, and there is the warning and the truncated files names.
instead if I compile it with
##define NAME_MAX 255
It backups successfully the files with the right name.
Thanks Paolo for your howto i added it to my blog (which is a work in progress until i get urbackup working) however i am having trouble getting it to start see the error below
./start_urbackup_server
Info: Snapshot helper not found. Btrfs mode will not work.
Server binary not found
./start_urbackup_server[294]: cd: /usr/var: [No such file or directory]
./start_urbackup_server[296]: exec: /usr/sbin/urbackup_srv: not found
Sorry and know this is probably just me being ignorant and probably just requires me to adjust something in the start_urbackup_server but i really do not know what i am doing with this script and need some help
Seems everything is under “/root/urbackup-server-1.4.7/” somewhere