Bug 8413 - smbd: symbol lookup error: smbd: undefined symbol: wbcSidsToUnixIds
smbd: symbol lookup error: smbd: undefined symbol: wbcSidsToUnixIds
Status: RESOLVED WORKSFORME
Product: Samba 3.6
Classification: Unclassified
Component: Nmbd
unspecified
All Linux
: P5 normal
: ---
Assigned To: Jeremy Allison
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-28 06:26 UTC by Alejandro
Modified: 2012-12-04 20:58 UTC (History)
1 user (show)

See Also:


Attachments
configuration file (1.03 KB, application/octet-stream)
2011-08-28 06:26 UTC, Alejandro
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro 2011-08-28 06:26:38 UTC
Created attachment 6820 [details]
configuration file

Hi, 

NOTE: Config file is attached 

Trying to start the smbd get the following error:

beelzebub:/etc/samba# smbd -F -S -d 2
smbd version 3.6.0 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
uid=0 gid=0 euid=0 egid=0
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[prueba]"
added interface eth0 ip=fe80::216:3eff:fe2f:7f3c%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=10.1.5.237 bcast=10.1.5.255 netmask=255.255.255.0
standard input is not a socket, assuming -D option
smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=BEELZEBUB))]
smbldap_open_connection: connection opened
add_new_domain_info: failed to add domain dn= sambaDomainName=BEELZEBUB,ou=Usuarios,dc=fino,dc=com with: Insufficient access
	no write access to parent
smbldap_search_domain_info: Adding domain info for BEELZEBUB failed with NT_STATUS_UNSUCCESSFUL
pdb_init_ldapsam: WARNING: Could not get domain info, nor add one to the domain
pdb_init_ldapsam: Continuing on regardless, will be unable to allocate new users/groups, and will risk BDCs having inconsistent SIDs
smbd: symbol lookup error: smbd: undefined symbol: wbcSidsToUnixIds
Comment 1 Volker Lendecke 2011-08-28 09:12:05 UTC
Please also update libwbclient properly with the 3.6 version. It was compiled as part of your 3.6 build in ../nsswitch.
Comment 2 Harold 2011-08-30 14:20:44 UTC
I am running fedra 14  86x-64bit and have the same bug 
Have found libs in /lib not /lib64 as expected and /usr/lib  


now sent to /usr/lib 
ls /usr/lib/libsmb*
/usr/lib/libsmbclient.so  /usr/lib/libsmbclient.so.0  /usr/lib/libsmbsharemodes.so  /usr/lib/libsmbsharemodes.so.0


:smbd: symbol lookup error: smbd: undefined symbol: wbcSidsToUnixIds
 
 Am still geting the error.
  
Can I delete the files in /usr/lib/  to force /usr/lib64 use 

                                 H.
Comment 3 Harold 2011-09-05 07:29:38 UTC
Have deleted the files libsmb* in /lib , /usr/lib now only have libs in /usr/lib64 is this right what library does this call wbcSidsToUnixIds live in please. 
                          H.
Comment 4 Willian Douglas 2011-09-06 18:44:34 UTC
You solved the problem?

I'm having the same problem when I try to start smbd with the command:
/aplications/samba/sbin/smbd -D

See my log.smbd:

  [9/6/2011 14:43:34, 0] smbd / server.c: 1045 (main)
   smbd version 3.6.0 started.
   Copyright Andrew Tridgell and the Samba Team 1992-2011
/ aplications / samba / sbin / smbd: symbol lookup error: / aplications / samba / sbin / smbd: undefined symbol: wbcSidsToUnixIds

Please, help me.
Comment 5 Volker Lendecke 2011-09-06 19:39:30 UTC
Please point your LD_LIBRARY_PATH at the place where you decided to put your freshly compiled libwbclient.so or put that file where your dynamic linker finds it automatically.
Comment 6 Harold 2011-09-09 09:43:41 UTC
Have tried LD_LIBRARY_PATH with no joy. I am using a window 2008 server as a domain controller. Will this work with a windows login server using  windows 2008 R2 service pack 1 ?  

                                   H.
Comment 7 Harold 2011-09-09 10:13:46 UTC
Rebuilt samba and pointed LD_LIBRARY_PATH=/samba-3.60/source3/bin  cd to bin and all worked fine I must have a library problem somewhere.

                        THANKS
                                H.
Comment 8 Guido Leenders 2011-09-13 18:05:57 UTC
I had the same problem when compiling Samba 3.6.0 from source.
In the log.smbd it said: undefined symbol wbcSidsToUnixIds for smbd.

Configure options:

./configure --prefix=/usr --exec-prefix=/usr --with-ldap --with-libtalloc=no --enable-external-libtalloc=no --with-libtdb=no --enable-external-libtdb=no --with-libnetapi --with-libsmbclient --with-libsmbsharemodes --with-libaddns --with-ads --with-dnsupdate --with-pam --with-acl-support --with-aio-support --with-winbind --with-lockdir=/var/lib/samba --with-configdir=/etc/samba --with-logfilebase=/var/log/samba

The installation did install libwbclient:
Installing module pam_smbpass as ///usr/lib/security/pam_smbpass.so
Installing module pam_winbind as ///usr/lib/security/pam_winbind.so
/usr/bin/install -c bin/libwbclient.so.0 //usr/lib
if test -r bin/libwbclient.so.0 ; then \
                ln -f -s `basename bin/libwbclient.so.0` \
                        //usr/lib/`basename bin/libwbclient.so` ; \
        fi
: bin/libwbclient.a //usr/lib
/usr/bin/install -c -m 0644 /usr/local/src/samba-3.6.0/source3/../nsswitch/libwbclient/wbclient.h //usr/include


Resolution for me was simply:

ldconfig

And restart smbd.

Rgds,

Guido Leenders
http://www.invantive.com
Comment 9 shawdy 2012-01-10 01:22:13 UTC
For those of you who come across this page i figured i would let you know how i fixed my problem. 
'apt-get install libwbclient0'

This package wasn't installed on my system. And now samba 3.6.1 works perfectly.
Comment 10 bolwerk 2012-01-22 03:26:03 UTC
Using Slackware Linux 13.1 here. All I did was use the libdir configuration option, e.g.:

./configure --libdir=/usr/lib64

instead of

./configure

And it worked fine.
Comment 11 Richard 2012-12-04 20:58:12 UTC
(In reply to comment #7)
> Rebuilt samba and pointed LD_LIBRARY_PATH=/samba-3.60/source3/bin  cd to bin
> and all worked fine I must have a library problem somewhere.
> 
>                         THANKS
>                                 H.

I had previously built samba 3.6.9 with default flags (install into /usr/local/samba).

On Debian squeeze libwbclient0 did show as installed, in /usr/lib.   Setting LD_LIBRARY_PATH as above did not help.  

Adding 
export LD_LIBRARY_PATH=/usr/local/samba/lib

to the startup script did.