Hi,
I'm trying to compile bacula 5.0.3 with all static daemons and tools.
This is the ./configure result :
Host: x86_64-unknown-linux-gnu -- debian wheezy/sid
Bacula version: Bacula 5.0.3 (04 August 2010)
Source code location: .
Install binaries: /var/backup/bacula/sbin
Install libraries: /var/backup/bacula/lib
Install config files: /var/backup/bacula/etc
Scripts directory: /var/backup/bacula/etc
Archive directory: /tmp
Working directory: /var/backup/bacula/lib
PID directory: /var/backup/bacula/run
Subsys directory: /var/backup/bacula/run
Man directory: ${datarootdir}/man
Data directory: /var/backup/bacula/share
Plugin directory: /var/backup/bacula/lib
C Compiler: gcc 4.4.5-12)
C++ Compiler: /usr/bin/g++ 4.4.5-12)
Compiler flags: -march=core2 -mtune=core2 -O3 -Wall
-fno-strict-aliasing -fno-exceptions -fno-rtti
Linker flags:
Libraries: -lpthread -ldl
Statically Linked Tools: yes
Statically Linked FD: yes
Statically Linked SD: yes
Statically Linked DIR: yes
Statically Linked CONS: yes
Database type: SQLite3
Database port:
Database lib: -L/var/backup/sqlite3 -lsqlite3
Database name: bacula
Database user: bacula
The compilation fails with this error :
This is for bacula console but the same error appear for dird and
stored.
make[1]: Entering directory `/usr/src/bacula-5.0.3/src/console'
Compiling console.c
Compiling console_conf.c
Compiling authenticate.c
/usr/bin/g++ -L/usr/include/readline -L../lib -L../cats -o bconsole
console.o console_conf.o authenticate.o \
-lreadline -lhistory -lncurses -lbaccfg -lbac -lm
-lpthread -ldl \
-lssl -lcrypto
/usr/bin/g++ -static -L/usr/include/readline -L../lib -L../cats -o
static-bconsole console.o console_conf.o authenticate.o \
-lreadline -lhistory -lncurses -lbaccfg -lbac -lm
-lpthread -ldl \
-lssl -lcrypto
../lib/libbac.a(plugins.o): In function `load_plugins(void*, void*,
char const*, char const*, bool (*)(Plugin*))':
plugins.c:(.text+0x50c): warning: Using 'dlopen' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
../lib/libbac.a(guid_to_name.o): In function
`guid_list::gid_to_name(unsigned int, char*, int)':
guid_to_name.c:(.text+0x107): warning: Using 'getgrgid' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libreadline.a(complete.o):
In function `rl_username_completion_function':
(.text+0x1419): warning: Using 'getpwent' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libreadline.a(tilde.o):
In function `tilde_expand_word':
(.text+0x23c): warning: Using 'getpwnam' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libreadline.a(shell.o):
In function `sh_get_home_dir':
(.text+0x4c): warning: Using 'getpwuid' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libreadline.a(complete.o):
In function `rl_username_completion_function':
(.text+0x1410): warning: Using 'setpwent' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libreadline.a(complete.o):
In function `rl_username_completion_function':
(.text+0x14bb): warning: Using 'endpwent' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
../lib/libbac.a(bnet.o): In function `resolv_host(int, char const*,
dlist*)':
bnet.c:(.text+0xcd2): warning: Using 'gethostbyname2' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
../lib/libbac.a(address_conf.o): In function `T.112':
address_conf.c:(.text+0xc66): warning: Using 'getservbyname' in
statically linked applications requires at runtime the shared libraries
from the glibc version used for linking
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `bio_zlib_free':
(.text+0x6f): undefined reference to `inflateEnd'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `bio_zlib_free':
(.text+0x8d): undefined reference to `deflateEnd'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `bio_zlib_ctrl':
(.text+0x3b4): undefined reference to `deflate'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `bio_zlib_ctrl':
(.text+0x46a): undefined reference to `zError'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `bio_zlib_read':
(.text+0x54b): undefined reference to `inflate'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `bio_zlib_read':
(.text+0x5cd): undefined reference to `zError'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `bio_zlib_read':
(.text+0x63c): undefined reference to `inflateInit_'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `bio_zlib_write':
(.text+0x737): undefined reference to `deflate'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `bio_zlib_write':
(.text+0x7bd): undefined reference to `zError'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `bio_zlib_write':
(.text+0x851): undefined reference to `deflateInit_'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `zlib_stateful_expand_block':
(.text+0x9ae): undefined reference to `inflate'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `zlib_stateful_compress_block':
(.text+0xa5e): undefined reference to `deflate'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `zlib_stateful_finish':
(.text+0xaaf): undefined reference to `inflateEnd'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `zlib_stateful_finish':
(.text+0xab9): undefined reference to `deflateEnd'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `zlib_stateful_init':
(.text+0xb67): undefined reference to `inflateInit_'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcrypto.a(c_zlib.o):
In function `zlib_stateful_init':
(.text+0xbe9): undefined reference to `deflateInit_'
collect2: ld returned 1 exit status
make[1]: *** [static-bconsole] Error 1
make[1]: Leaving directory `/usr/src/bacula-5.0.3/src/console'
====== Error in /usr/src/bacula-5.0.3/src/console ======
Thanks for you help
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|