examples/libsmbclient/* link error with libwbclient

Derrell Lipman derrell.lipman at unwireduniverse.com
Sat Jan 12 16:08:29 GMT 2008


On Jan 12, 2008 10:41 AM, Stefan (metze) Metzmacher <metze at samba.org> wrote:
>
> Hi Derrell,
>
> > Hi all.  I'm trying to build the examples/libsmbclient directory with
> > current git source.  I've added -lwbclient to the makefile.
>
> Why?

If I configure like this:

./autogen.sh && ./configure.developer --enable-debug

and remove libwbclient.so* from my library path, then I get the
following when I link examples/libsmbclient, which indicated to me
that I should need it:

cd /home/derrell/=/samba.git/samba3/examples/libsmbclient/
make
Linking testsmbc
gcc -O0 -g -I../../source/include `gtk-config --cflags`
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-L/usr/local/samba/lib -lldap -lkrb5 -lgssapi_krb5 -o testsmbc
testsmbc.o -lsmbclient -ldl -lresolv
/usr/bin/ld: warning: libwbclient.so.0, needed by
/usr/local/samba/lib/libsmbclient.so, not found (try using -rpath or
-rpath-link)
/usr/local/samba/lib/libsmbclient.so: undefined reference to `wbcSidToGid'
/usr/local/samba/lib/libsmbclient.so: undefined reference to `wbcAllocateGid'
/usr/local/samba/lib/libsmbclient.so: undefined reference to `wbcUidToSid'
/usr/local/samba/lib/libsmbclient.so: undefined reference to `wbcFreeMemory'
/usr/local/samba/lib/libsmbclient.so: undefined reference to `wbcAllocateUid'
/usr/local/samba/lib/libsmbclient.so: undefined reference to `wbcPing'
/usr/local/samba/lib/libsmbclient.so: undefined reference to `wbcLookupName'
/usr/local/samba/lib/libsmbclient.so: undefined reference to `wbcLookupSid'
/usr/local/samba/lib/libsmbclient.so: undefined reference to `wbcGidToSid'
/usr/local/samba/lib/libsmbclient.so: undefined reference to `wbcSidToUid'
/usr/local/samba/lib/libsmbclient.so: undefined reference to `wbcDomainInfo'
/usr/local/samba/lib/libsmbclient.so: undefined reference to `wbcLookupRids'
collect2: ld returned 1 exit status
make: *** [testsmbc] Error 1

Compilation exited abnormally with code 2 at Sat Jan 12 11:01:30


More information about the samba-technical mailing list