On 03/23/2018 04:34 PM, Pierre Labastie wrote:
When building samba-4.8.0 with the present book instructions I get:
-----------------------
[3524/3696] Linking default/source3/modules/libvfs_module_nfs4acl_xattr.so
default/source3/modules/nfs4acl_xattr_xdr_45.o: In function
`nfs4acl_smb4acl_to_xdr_blob':
nfs4acl_xattr_xdr.c:(.text+0xa2c): undefined reference to `xdrmem_create'
default/source3/modules/nfs4acl_xattr_xdr_45.o: In function
`nfs4acl_xdr_blob_to_nfs4acl':
nfs4acl_xattr_xdr.c:(.text+0xc6a): undefined reference to `xdrmem_create'
default/source3/modules/nfs41acl_xdr_45.o: In function `xdr_utf8string':
nfs41acl_xdr.c:(.text+0x29): undefined reference to `xdr_bytes'
default/source3/modules/nfs41acl_xdr_45.o: In function `xdr_acetype4':
nfs41acl_xdr.c:(.text+0x93): undefined reference to `xdr_u_int'
default/source3/modules/nfs41acl_xdr_45.o: In function `xdr_aceflag4':
nfs41acl_xdr.c:(.text+0xc8): undefined reference to `xdr_u_int'
default/source3/modules/nfs41acl_xdr_45.o: In function `xdr_aceiflag4':
nfs41acl_xdr.c:(.text+0xfd): undefined reference to `xdr_u_int'
default/source3/modules/nfs41acl_xdr_45.o: In function `xdr_acemask4':
nfs41acl_xdr.c:(.text+0x132): undefined reference to `xdr_u_int'
default/source3/modules/nfs41acl_xdr_45.o: In function `xdr_nfsace4':
nfs41acl_xdr.c:(.text+0x1f2): undefined reference to `xdr_u_int'
default/source3/modules/nfs41acl_xdr_45.o:nfs41acl_xdr.c:(.text+0x227):
more undefined references to `xdr_u_int' follow
default/source3/modules/nfs41acl_xdr_45.o: In function `xdr_nfsacl41':
nfs41acl_xdr.c:(.text+0x298): undefined reference to `xdr_array'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/sources/samba/samba-4.8.0/bin'
Build failed: -> task failed (err #1):
{task: cc_link
vfs_nfs4acl_xattr_45.o,nfs4acl_xattr_ndr_45.o,nfs4acl_xattr_xdr_45.o,nfs41acl_xdr_45.o,nfs4_acls_1.o
-> libvfs_module_nfs4acl_xattr.so}
make: *** [Makefile:8: all] Error 1
---------------------------
And it can be checked with "buildtools/bin/waf -vvv buid", that
"-ltirpc" is not passed to gcc.
If I run:
------------------
CFLAGS="-I/usr/include/tirpc" \
LDFLAGS="-ltirpc" \
./configure \
--prefix=/usr \
...
------------------
The build succeeds.
can anybody confirm? This may happen because I am on a system where the
full BLFS is built (which means I may have some library that are not
always there when building samba). Not sure, though.
I cannot confirm this, I currently build samba even without the
CFLAGS="-I/usr/include/tirpc -ltirpc", but with libnsl.
I would anyway suggest to move libnsl to the recommended dependencies,
as before the switch to the newest glibc, samba was always compiled
against libnsl, as it was part of glibc.
So, it seems to me that ommiting libnsl now leads to reduced
functionality compared to builds with older glibc's.
What do others think?
Bye
Tim
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page