The Samba-Bugzilla – Bug 8782
Cannot link with libsmbconf.so.0?
Last modified: 2012-03-20 16:09:45 UTC
I just updated openchange, its trunk at revision 3727, and it fails to build with an error:
$PREFIX/samba/lib/libsmbconf.so.0: undefined reference
when linking some of its binaries. This wasn't a problem with alpha17, though openchange had many other changes landed between these two too.
Looking around I found 'hash_any' in samba4/lib/ccan/hash/hash.c, and the libsmbconf.so.0 has this library in a list of libraries, because:
$ ldd $PREFIX/samba/lib/libsmbconf.so.0 | grep ccan
libccan.so.0 => $PREFIX/samba/lib/private/libccan.so.0 (0x00007fccd120e000)
Do you know what can be wrong when ldd can find the library, please?
Note this fails even when I add
into my /etc/ld.so.conf.d/samba4.conf and run ldconfig as root
Rusty, could you help us please?
There is a temporary patch to samba3 sources here , if it'll help to fix it properly, though I guess you are aware of this already. The change works for me.
I guess we can mark this as invalid. Using stock samba4 build works as expected, only my local build resists from being a good piece of software. Probably something locally related.
Jelmer also suggested to add ccan dependency into the build script, but it didn't help me. (It was quite confusing, because it seemed it did help, but when I rebuilt again then it failed.)
I'll reopen in case I'll face of this any time later, with the stock samba4 build.