[Samba] libldb-samba.so does not link in source4 samba

Shirish Pargaonkar shirishpargaonkar at gmail.com
Wed Jun 16 10:37:00 MDT 2010


On Wed, Jun 16, 2010 at 10:58 AM, Michael Wood <esiotrot at gmail.com> wrote:
> On 16 June 2010 17:37, Shirish Pargaonkar <shirishpargaonkar at gmail.com> wrote:
> [...]
>> /source4 # ldd /usr/src/bamba/samba/source4/bin/default/source4/lib/ldb/libldb-samba4.so
>>        linux-vdso.so.1 =>  (0x00007fffcb9cf000)
>>        libndr-standard.so.0 =>
>> /usr/local/samba/lib/libndr-standard.so.0 (0x00007f8cf129f000)
>>        libndr.so.0 => /usr/local/samba/lib/libndr.so.0 (0x00007f8cf1008000)
>>        libtdb-samba4.so.1 => /usr/local/samba/lib/libtdb-samba4.so.1
>> (0x00007f8cf0df6000)
>>        libtalloc-samba4.so.2 =>
>> /usr/local/samba/lib/libtalloc-samba4.so.2 (0x00007f8cf0bee000)
>>        libreplace.so => /usr/local/samba/lib/libreplace.so (0x00007f8cf09e1000)
>>        libsamba-hostconfig.so.0 =>
>> /usr/local/samba/lib/libsamba-hostconfig.so.0 (0x00007f8cf07ca000)
>>        libsamba-util.so.0 => /usr/local/samba/lib/libsamba-util.so.0
>> (0x00007f8cf059b000)
>>        libtevent-samba4.so.0 =>
>> /usr/local/samba/lib/libtevent-samba4.so.0 (0x00007f8cf038d000)
>>        libutil.so.1 => /lib64/libutil.so.1 (0x00007f8cf0173000)
>>        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f8ceff36000)
>>        libdl.so.2 => /lib64/libdl.so.2 (0x00007f8cefd31000)
>>        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f8cefb19000)
>>        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f8cef902000)
>>        libc.so.6 => /lib64/libc.so.6 (0x00007f8cef5a8000)
>>        /lib64/ld-linux-x86-64.so.2 (0x00007f8cf1eb4000)
>
> OK, I don't know why that is.  On my test machine I have this:
>
> $ ldd /usr/local/samba/lib/libldb-samba4.so.0 | grep libz
>        libz.so.1 => /usr/lib/libz.so.1 (0x00002aaaad565000)
>
> That's with Version 4.0.0alpha12-GIT-a4a127e.
>
> (On that system libz.so.* is in /usr/lib instead of /lib, but that
> should not cause any difference.)
>
> Maybe try updating your git repository and see if it compiles for you
> now.  Otherwise maybe report this on the samba-technical list and see
> if anyone there knows what the problem is.
>
> --
> Michael Wood <esiotrot at gmail.com>
>

Michael,

Thanks.  So the problem is, libz.so* is not being linked?


/source4 # git pull
Already up-to-date.
cifstest6:/usr/src/bamba/samba/source4 # ldd
/usr/src/bamba/samba/source4/bin/default/source4/lib/ldb/libldb-samba4.so
 | grep libz
cifstest6:/usr/src/bamba/samba/source4 # make
WAF_MAKE=1 ../buildtools/bin/waf build
Waf: Entering directory `/usr/src/bamba/samba/source4/bin'
[1909/1962] 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_19.o,cmdline_19.o,ldbadd_20.o,popt_common_3.o,credentials_1.o,popt_credentials_5.o
-> ldbadd}
make: *** [all] Error 1


More information about the samba mailing list