[Samba] Linking Error Building Samba on AIX 7

Kevin Seymour Kevin.Seymour at es3.com
Thu Mar 12 17:19:16 UTC 2020


Hi,

I am getting the following error from the linker while building Samba 4.11.6 on AIX 7.  I am not explicitly disabling cluster support (which this seems to be related to), but I see in the configure that it gets disabled (presumably due to --without-ads).

ld: 0711-317 ERROR: Undefined symbol: .lp__ctdbd_socket

Here is my configure setup.

                ./configure \
                        --prefix=$WHERE \
                        --with-privatedir=$WHERE/etc/samba \
                        --with-configdir=$WHERE/etc/samba \
                        --with-logfilebase=$WHERE/var/log \
                        --disable-python \
                        --without-ad-dc \
                        --without-json \
                        --disable-cups \
                        --disable-iprint \
                        --without-ldap \
                        --without-ads

Here is what is being executed.

10:58:25 runner ['gcc', '-g', '-Wl,-blibpath:/opt/local/samba/lib:/usr/lib:/lib,-brtl,-bbigtoc', '-maix64', '-shared', '-Wl,-brtl,-bexpfull', 'source3/lib/cluster_support.c.44.o', 'source3/lib/ctdb_dummy.c.44.o', '-o/nimfs/sw/build/samba-4.11.6/bin/default/source3/libsamba-cluster-support-samba4.so', '-Wl,-bsvr4,-R,/nimfs/sw/build/samba-4.11.6/bin/shared', '-Wl,-bsvr4,-R,/nimfs/sw/build/samba-4.11.6/bin/shared/private', '-Wl,-Bstatic', '-L/nimfs/sw/build/samba-4.11.6/bin/default/lib/replace', '-L/nimfs/sw/build/samba-4.11.6/bin/default/lib/talloc', '-L/nimfs/sw/build/samba-4.11.6/bin/default/lib/tevent', '-L/usr/local/lib', '-L/usr/local/lib', '-L/usr/local/lib', '-ltevent', '-ltalloc', '-lreplace-samba4', '-lbsd', '-lpthread', '-L/opt/local/samba/lib', '-lpthread']
ld: 0706-027 The -B static flag is ignored.
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-224 WARNING: Duplicate symbol: __init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: .lp__ctdbd_socket
collect2: error: ld returned 8 exit status

Waf: Leaving directory `/nimfs/sw/build/samba-4.11.6/bin/default'
Build failed
-> task in 'samba-cluster-support' failed with exit status 1:
        {task 720575940404186808: cshlib cluster_support.c.44.o,ctdb_dummy.c.44.o -> libsamba-cluster-support-samba4.so}
['gcc', '-g', '-Wl,-blibpath:/opt/local/samba/lib:/usr/lib:/lib,-brtl,-bbigtoc', '-maix64', '-shared', '-Wl,-brtl,-bexpfull', 'source3/lib/cluster_support.c.44.o', 'source3/lib/ctdb_dummy.c.44.o', '-o/nimfs/sw/build/samba-4.11.6/bin/default/source3/libsamba-cluster-support-samba4.so', '-Wl,-bsvr4,-R,/nimfs/sw/build/samba-4.11.6/bin/shared', '-Wl,-bsvr4,-R,/nimfs/sw/build/samba-4.11.6/bin/shared/private', '-Wl,-Bstatic', '-L/nimfs/sw/build/samba-4.11.6/bin/default/lib/replace', '-L/nimfs/sw/build/samba-4.11.6/bin/default/lib/talloc', '-L/nimfs/sw/build/samba-4.11.6/bin/default/lib/tevent', '-L/usr/local/lib', '-L/usr/local/lib', '-L/usr/local/lib', '-ltevent', '-ltalloc', '-lreplace-samba4', '-lbsd', '-lpthread', '-L/opt/local/samba/lib', '-lpthread']

Thanks,

Kevin


More information about the samba mailing list