[Samba] 4.1.17 compile error on AIX

David Beck david.beck09 at gmail.com
Wed Feb 25 08:21:53 MST 2015


Greetings everyone, I am having some issues compiling the latest for the
AIX platform.  The build and configure are all with the default entries.
The latest samba we have running is 4.0.8 (source3/autoconf build).  This
is our first shot at using the waf/python tool.  I would like to reach out
if any others who have yet to migrate off the proprietary AIX platform have
run into this error, and if they’ve solved it.  Any pointers would be
greatly appreciated!

Here’s some background on the platform:

gcc -v

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix6.1.0.0/4.8.2/lto-wrapper

Target: powerpc-ibm-aix6.1.0.0

Configured with: ../gcc-4.8.2/configure --with-as=/usr/bin/as
--with-ld=/usr/bin/ld --enable-languages=c,c++,fortran
--prefix=/opt/freeware --mandir=/opt/freeware/man
--infodir=/opt/freeware/info --enable-version-specific-runtime-libs
--disable-nls --enable-decimal-float=dpd --host=powerpc-ibm-aix6.1.0.0

Thread model: aix

gcc version 4.8.2 (GCC)



ld -V

ld: LD 1.65.6.6 (4/1/14)



python –V

Python 2.7.8



AIX oslevel

6100-09-04-1441


Error:

         WAF_MAKE=1  ./buildtools/bin/waf build

Waf: Entering directory `/tmp/samba-4.1.17/bin'

    Selected embedded Heimdal build

[3217/3699] Linking default/lib/talloc/libtalloc.so

[3219/3699] Linking default/source4/heimdal_build/libroken-samba4.so

[3221/3699] Linking default/lib/tdb/libtdb.so

[3244/3699] Linking default/lib/ntdb/libntdb.so

[3248/3699] Linking default/nsswitch/libnss-wrapper-winbind.so

[3255/3699] Linking default/source3/lib/asys/asystest

ld: 0706-012 The -h flag is not recognized.

ld: 0706-005 Cannot find or open file: libtalloc.so.2

        ld:open(): No such file or directory

collect2: error: ld returned 255 exit status

ld: 0706-012 The -h flag is not recognized.

ld: 0706-005 Cannot find or open file: libroken-samba4.so.19

        ld:open(): No such file or directory

collect2: error: ld returned 255 exit status

ld: 0706-012 The -h flag is not recognized.

ld: 0706-005 Cannot find or open file: libtdb.so.1

        ld:open(): No such file or directory

collect2: error: ld returned 255 exit status

ld: 0706-012 The -h flag is not recognized.

ld: 0706-005 Cannot find or open file: libntdb.so.0

        ld:open(): No such file or directory

collect2: error: ld returned 255 exit status

ld: 0706-012 The -h flag is not recognized.

ld: 0706-005 Cannot find or open file: libnss-wrapper-winbind.so.2

        ld:open(): No such file or directory

collect2: error: ld returned 255 exit status

ld: 0711-224 WARNING: Duplicate symbol: global destructors keyed to
65535_0___dso_handle

ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit

ld: 0711-224 WARNING: Duplicate symbol: .global destructors keyed to
65535_0___dso_handle

ld: 0711-224 WARNING: Duplicate symbol: __dso_handle

ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.

Waf: Leaving directory `/tmp/samba-4.1.17/bin'

Build failed:

-> task failed (err #1):

        {task: cc_link talloc_1.o -> libtalloc.so}

-> task failed (err #1):

        {task: cc_link
base64_3.o,ct_3.o,hex_3.o,bswap_3.o,dumpdata_3.o,emalloc_3.o,ecalloc_3.o,getarg_3.o,get_window_size_3.o,getdtablesize_3.o,h_errno_3.o,issuid_3.o,net_read_3.o,net_write_3.o,parse_time_3.o,parse_units_3.o,vis_3.o,strlwr_3.o,strsep_copy_3.o,strsep_3.o,strupr_3.o,strpool_3.o,estrdup_3.o,erealloc_3.o,simple_exec_3.o,strcollect_3.o,rtbl_3.o,rand_3.o,cloexec_3.o,xfree_3.o,replace_3.o,closefrom_3.o,resolve_3.o,socket_3.o,roken_gethostby_3.o,strerror_r_3.o
-> libroken-samba4.so}

-> task failed (err #1):

        {task: cc_link
check_1.o,error_1.o,tdb_1.o,traverse_1.o,freelistcheck_1.o,lock_1.o,dump_1.o,freelist_1.o,io_1.o,open_1.o,transaction_1.o,hash_1.o,summary_1.o,rescue_1.o
-> libtdb.so}

-> task failed (err #1):

        {task: cc_link
check_1.o,free_1.o,hash_1.o,io_1.o,lock_1.o,open_1.o,summary_1.o,ntdb_1.o,transaction_1.o,traverse_1.o
-> libntdb.so}

-> task failed (err #1):

        {task: cc_link winbind_nss_linux_5.o -> libnss-wrapper-winbind.so}

make: The error code from the last command is 1.



 Thank you,

David Beck


More information about the samba mailing list