Hello, we run into a linking error when building samba 4.2.12 on AIX 7100-02-04-1341 with gcc. ./configure --prefix=/appl/samba make and then when linking libtdb it failed. [3233/3713] Linking default/lib/tdb/tdb1-run-3G-file [3234/3713] Linking default/lib/tdb/tdb1-run-bad-tdb-header [3235/3713] Linking default/lib/tdb/tdb1-run ld: 0706-012 The -h flag is not recognized. ld: 0706-005 Cannot find or open file: libtalloc.so.2 ld:open(): A file or directory in the path name does not exist. 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(): A file or directory in the path name does not exist. 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(): A file or directory in the path name does not exist. 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. 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. 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 `/home/A171791/samba-4.1.12/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} make: 1254-004 The error code from the last command is 1. I just found the same error reported to samba-technical@: https://lists.samba.org/archive/samba-technical/2014-March/098566.html I'm aware of comments from bug #10270 (summary: no AIX build.samba.org system and samba developer don't have access to an AIX machine) but maybe a samba guru still can help and reporting these problems is still OK. Thanks alot.
Created attachment 10306 [details] make.log
sorry forgot. this is gcc 4.8.2
This bug is a duplicate of bug #10270, I think.
*** This bug has been marked as a duplicate of bug 10270 ***