Bug 10828 - AIX 7.1 build error during linking libtdb
Summary: AIX 7.1 build error during linking libtdb
Status: RESOLVED DUPLICATE of bug 10270
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.1.12
Hardware: PPC AIX
: P5 normal (vote)
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-22 09:57 UTC by Noël Köthe
Modified: 2020-05-10 19:59 UTC (History)
1 user (show)

See Also:


Attachments
make.log (286.61 KB, text/x-log)
2014-09-25 13:13 UTC, Noël Köthe
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Noël Köthe 2014-09-22 09:57:11 UTC
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.
Comment 1 Noël Köthe 2014-09-25 13:13:50 UTC
Created attachment 10306 [details]
make.log
Comment 2 Noël Köthe 2014-09-26 11:47:09 UTC
sorry forgot. this is gcc 4.8.2
Comment 3 SATOH Fumiyasu 2019-03-23 18:56:21 UTC
This bug is a duplicate of bug #10270, I think.
Comment 4 Björn Jacke 2020-05-10 19:59:50 UTC

*** This bug has been marked as a duplicate of bug 10270 ***