Pol Hallen
2009-Nov-13 19:11 UTC
[Samba] ./smbpasswd: symbol lookup error: ./smbpasswd: undefined symbol: _talloc_get_type_abort
Hi folks :-) I compiled samba (latest stable v3.4.3) on my debian stable, everything seems ok but when I try to add new samba user ./smbpasswd: ./smbpasswd: symbol lookup error: ./smbpasswd: undefined symbol: _talloc_get_type_abort I already checked useful libreries but I don't understand this problem. what can I do? (samba pre-compiled packages on debian are some grave bugs) thanks :-) Pol
Michael Wood
2009-Nov-14 22:42 UTC
[Samba] ./smbpasswd: symbol lookup error: ./smbpasswd: undefined symbol: _talloc_get_type_abort
2009/11/13 Pol Hallen <samb at fuckaround.org>:> Hi folks :-) > > I compiled samba (latest stable v3.4.3) on my debian stable, everything seems > ok but when I try to add new samba user ./smbpasswd: > > ./smbpasswd: symbol lookup error: ./smbpasswd: undefined symbol: > _talloc_get_type_abort > > I already checked useful libreries but I don't understand this problem. > > what can I do?What does "ldd ./smbpasswd" give you? -- Michael Wood <esiotrot at gmail.com>
Michael Wood
2009-Nov-15 17:37 UTC
[Samba] ./smbpasswd: symbol lookup error: ./smbpasswd: undefined symbol: _talloc_get_type_abort
2009/11/15 Pol Hallen <samb at fuckaround.org>:>> What does "ldd ./smbpasswd" give you? > debian-test-0:/usr/local/samba/bin# ldd smbpasswd > ? ? ? ?linux-gate.so.1 => ?(0xb7adf000) > ? ? ? ?libresolv.so.2 => /lib/i686/cmov/libresolv.so.2 (0xb7abd000) > ? ? ? ?libnsl.so.1 => /lib/i686/cmov/libnsl.so.1 (0xb7aa4000) > ? ? ? ?libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7a9f000) > ? ? ? ?libtalloc.so.1 => /usr/lib/libtalloc.so.1 (0xb7a97000) > ? ? ? ?libtdb.so.1 => /usr/lib/libtdb.so.1 (0xb7a8a000) > ? ? ? ?libwbclient.so.0 => /usr/lib/libwbclient.so.0 (0xb7a81000) > ? ? ? ?libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7926000) > ? ? ? ?/lib/ld-linux.so.2 (0xb7ae0000)Right. So it's using the system libtalloc (and libtdb etc.) instead of the ones you compiled. Try: # echo /usr/local/samba/lib >/etc/ld.so.conf.d/00self-compiled-samba # ldconfig Then when you run "ldd smbclient" again it should point libtalloc.so.1 to /usr/local/samba/lib/libtalloc.so.1. -- Michael Wood <esiotrot at gmail.com>