Shirish Pargaonkar
2010-Jun-15 19:49 UTC
[Samba] libldb-samba.so does not link in source4 samba
I am building in source4. Where are these symbols defined? Is any library that is not getting linked? samba/source4 # make WAF_MAKE=1 ../buildtools/bin/waf build Waf: Entering directory `/usr/src/bamba/samba/source4/bin' [1816/1961] Linking default/source4/lib/ldb/libldb-samba4.so [1908/1961] Linking default/source4/lib/ldb/ldbadd default/source4/lib/ldb/libldb-samba4.so: undefined reference to `zError' default/source4/lib/ldb/libldb-samba4.so: undefined reference to `inflateReset' default/source4/lib/ldb/libldb-samba4.so: undefined reference to `deflate' default/source4/lib/ldb/libldb-samba4.so: undefined reference to `inflateInit2_' default/source4/lib/ldb/libldb-samba4.so: undefined reference to `inflate' default/source4/lib/ldb/libldb-samba4.so: undefined reference to `deflateReset' default/source4/lib/ldb/libldb-samba4.so: undefined reference to `inflateSetDictionary' default/source4/lib/ldb/libldb-samba4.so: undefined reference to `deflateInit2_' default/source4/lib/ldb/libldb-samba4.so: undefined reference to `deflateSetDictionary' collect2: ld returned 1 exit status Waf: Leaving directory `/usr/src/bamba/samba/source4/bin' Build failed: -> task failed (err #1): {task: cc_link ldbutil_28.o,cmdline_28.o,ldbadd_29.o,popt_common_3.o,credentials_1.o,popt_credentials_5.o -> ldbadd} make: *** [all] Error 1
On 15 June 2010 21:49, Shirish Pargaonkar <shirishpargaonkar at gmail.com> wrote:> I am building in source4. ?Where are these symbols defined? ?Is any > library that is not getting linked?Those symbols are from zlib. It seems that libz.a is found during compilation and later libz.so.xxx is not found when trying to link ldbadd. libz.so.* would normally be found in /lib. Is it not there?> samba/source4 # make > WAF_MAKE=1 ../buildtools/bin/waf build > Waf: Entering directory `/usr/src/bamba/samba/source4/bin' > [1816/1961] Linking default/source4/lib/ldb/libldb-samba4.so > [1908/1961] Linking default/source4/lib/ldb/ldbadd > default/source4/lib/ldb/libldb-samba4.so: undefined reference to `zError' > default/source4/lib/ldb/libldb-samba4.so: undefined reference to `inflateReset' > default/source4/lib/ldb/libldb-samba4.so: undefined reference to `deflate'[...] -- Michael Wood <esiotrot at gmail.com>