[blfs-support] Samba compile error

Thomas de Roo thomas at de-roo.org
Thu Feb 23 08:42:28 PST 2012


Thanks for the suggestion. After configure was done, I changed the LIBS=-line in the Makefile from
LIBS=-lresolv -lresolv -lnsl -ldl -lrt 
To
LIBS=-lresolv -lresolv -lnsl -ldl -lrt -ltirpc -lpthread
And now samba compiles fine.

Groet,
Thomas

-----Original Message-----
From: blfs-support-bounces at linuxfromscratch.org [mailto:blfs-support-bounces at linuxfromscratch.org] On Behalf Of Bruce Dubbs
Sent: donderdag 23 februari 2012 17:13
To: BLFS Support List
Subject: Re: [blfs-support] Samba compile error

Thomas de Roo wrote:
> Hello,
> 
> I'm trying to compile samba on LFS-SVN-20120219. It failes with this error:
> 
> Linking bin/smbd
> lib/sysquotas_nfs.o: In function `my_xdr_getquota_args':
> sysquotas_nfs.c:(.text+0x32): undefined reference to `xdr_string'
> sysquotas_nfs.c:(.text+0x4a): undefined reference to `xdr_int'
> lib/sysquotas_nfs.o: In function `my_xdr_getquota_rslt':
> sysquotas_nfs.c:(.text+0x96): undefined reference to `xdr_int'
> sysquotas_nfs.c:(.text+0x110): undefined reference to `xdr_int'
> sysquotas_nfs.c:(.text+0x184): undefined reference to `xdr_bool'
> sysquotas_nfs.c:(.text+0x1f8): undefined reference to `xdr_int'
> sysquotas_nfs.c:(.text+0x26c): undefined reference to `xdr_int'
> sysquotas_nfs.c:(.text+0x2e0): undefined reference to `xdr_int'
> lib/sysquotas_nfs.o: In function `sys_get_nfs_quota':
> sysquotas_nfs.c:(.text+0x631): undefined reference to `clnt_create'
> sysquotas_nfs.c:(.text+0x640): undefined reference to `authunix_create_default'
> collect2: ld returned 1 exit status
> make: *** [bin/smbd] Error 1

Those references are in libtirpc.  That package may need to be updated to add that dependency.  You may need to also do something like

LIBS=-ltirpc make

to get it to find the library.

   -- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page




More information about the blfs-support mailing list