Bug 11419 - AIX: heimdal link error "unresolved symbols"
Summary: AIX: heimdal link error "unresolved symbols"
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.2.3
Hardware: PPC AIX
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-29 07:22 UTC by flynn8765
Modified: 2022-02-11 00:11 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description flynn8765 2015-07-29 07:22:02 UTC
...
16:44:23 runner /opt/IBM/xlC/13.1.0/bin/xlc_r default/source4/heimdal/lib/roken/base64_5.o default/source4/heimdal/lib/roken/ct_5.o default/source4/heimdal/lib/roken/hex_5.o default/source4/heimdal/lib/roken/bswap_5.o default/source4/heimdal/lib/roken/dumpdata_5.o default/source4/heimdal/lib/roken/emalloc_5.o default/source4/heimdal/lib/roken/ecalloc_5.o default/source4/heimdal/lib/roken/getarg_5.o default/source4/heimdal/lib/roken/get_window_size_5.o default/source4/heimdal/lib/roken/getdtablesize_5.o default/source4/heimdal/lib/roken/h_errno_5.o default/source4/heimdal/lib/roken/issuid_5.o default/source4/heimdal/lib/roken/net_read_5.o default/source4/heimdal/lib/roken/net_write_5.o default/source4/heimdal/lib/roken/parse_time_5.o default/source4/heimdal/lib/roken/parse_units_5.o default/source4/heimdal/lib/roken/vis_5.o default/source4/heimdal/lib/roken/strlwr_5.o default/source4/heimdal/lib/roken/strsep_copy_5.o default/source4/heimdal/lib/roken/strsep_5.o default/source4/heimdal/lib/roken/strupr_5.o default/source4/heimdal/lib/roken/strpool_5.o default/source4/heimdal/lib/roken/estrdup_5.o default/source4/heimdal/lib/roken/erealloc_5.o default/source4/heimdal/lib/roken/simple_exec_5.o default/source4/heimdal/lib/roken/strcollect_5.o default/source4/heimdal/lib/roken/rtbl_5.o default/source4/heimdal/lib/roken/rand_5.o default/source4/heimdal/lib/roken/cloexec_5.o default/source4/heimdal/lib/roken/xfree_5.o default/source4/heimdal_build/replace_5.o default/source4/heimdal/lib/roken/closefrom_5.o default/source4/heimdal/lib/vers/print_version_130.o default/source4/heimdal_build/version_130.o default/source4/heimdal/lib/com_err/parse_134.o default/source4/heimdal/lib/com_err/lex_134.o default/source4/heimdal/lib/com_err/compile_et_134.o default/lib/replace/replace_1.o default/lib/replace/timegm_1.o default/lib/replace/snprintf_1.o -o /usr/local/src/samba-4.2.3/bin/default/source4/heimdal_build/compile_et -lpthread -Wl,-brtl -L/usr/local/lib -lbsd -blibpath:/usr/local/samba4/dev:/usr/lib:/lib -Wl,-bmaxdata:0x80000000 -Wl,-b32 -Wl,-bexpall -Wl,-bexpfull -Wl,-bnoipath
ld: 0711-317 ERROR: Undefined symbol: ._lomp_GetHandle
ld: 0711-317 ERROR: Undefined symbol: ._lomp_AutoParallel_Loop
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: ._lomp_GetHandle
ld: 0711-317 ERROR: Undefined symbol: ._lomp_AutoParallel_Loop
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
Waf: Leaving directory `/usr/local/src/samba-4.2.3/bin'
Build failed:
 -> task failed (err #8):
        {task: cc_link base64_5.o,ct_5.o,hex_5.o,bswap_5.o,dumpdata_5.o,emalloc_5.o,ecalloc_5.o,getarg_5.o,get_window_size_5.o,getdtablesize_5.o,h_errno_5.o,issuid_5.o,net_read_5.o,net_write_5.o,parse_time_5.o,parse_units_5.o,vis_5.o,strlwr_5.o,strsep_copy_5.o,strsep_5.o,strupr_5.o,strpool_5.o,estrdup_5.o,erealloc_5.o,simple_exec_5.o,strcollect_5.o,rtbl_5.o,rand_5.o,cloexec_5.o,xfree_5.o,replace_5.o,closefrom_5.o,print_version_130.o,version_130.o,main_132.o,gen_132.o,gen_copy_132.o,gen_decode_132.o,gen_encode_132.o,gen_free_132.o,gen_glue_132.o,gen_length_132.o,gen_seq_132.o,gen_template_132.o,hash_132.o,symbol_132.o,asn1parse_132.o,lex_132.o,replace_1.o,timegm_1.o,snprintf_1.o -> asn1_compile}
 -> task failed (err #8):
        {task: cc_link base64_5.o,ct_5.o,hex_5.o,bswap_5.o,dumpdata_5.o,emalloc_5.o,ecalloc_5.o,getarg_5.o,get_window_size_5.o,getdtablesize_5.o,h_errno_5.o,issuid_5.o,net_read_5.o,net_write_5.o,parse_time_5.o,parse_units_5.o,vis_5.o,strlwr_5.o,strsep_copy_5.o,strsep_5.o,strupr_5.o,strpool_5.o,estrdup_5.o,erealloc_5.o,simple_exec_5.o,strcollect_5.o,rtbl_5.o,rand_5.o,cloexec_5.o,xfree_5.o,replace_5.o,closefrom_5.o,print_version_130.o,version_130.o,parse_134.o,lex_134.o,compile_et_134.o,replace_1.o,timegm_1.o,snprintf_1.o -> compile_et}

linker called with noquiet option ->

ld): halt 4
(ld): setopt expall
(ld): setopt noipath
(ld): setopt rtl
(ld): setopt rtllib
(ld): setopt expfull
(ld): setopt symbolic:1
(ld): setfflag 4
(ld): savename /usr/local/src/samba-4.2.3/bin/default/source4/heimdal_build/asn1_compile
(ld): filelist 59 1
(ld): i /lib/crt0.o
(ld): i default/source4/heimdal/lib/roken/base64_5.o
(ld): i default/source4/heimdal/lib/roken/ct_5.o
(ld): i default/source4/heimdal/lib/roken/hex_5.o
(ld): i default/source4/heimdal/lib/roken/bswap_5.o
(ld): i default/source4/heimdal/lib/roken/dumpdata_5.o
(ld): i default/source4/heimdal/lib/roken/emalloc_5.o
(ld): i default/source4/heimdal/lib/roken/ecalloc_5.o
(ld): i default/source4/heimdal/lib/roken/getarg_5.o
(ld): i default/source4/heimdal/lib/roken/get_window_size_5.o
(ld): i default/source4/heimdal/lib/roken/getdtablesize_5.o
(ld): i default/source4/heimdal/lib/roken/h_errno_5.o
(ld): i default/source4/heimdal/lib/roken/issuid_5.o
(ld): i default/source4/heimdal/lib/roken/net_read_5.o
(ld): i default/source4/heimdal/lib/roken/net_write_5.o
(ld): i default/source4/heimdal/lib/roken/parse_time_5.o
(ld): i default/source4/heimdal/lib/roken/parse_units_5.o
(ld): i default/source4/heimdal/lib/roken/vis_5.o
(ld): i default/source4/heimdal/lib/roken/strlwr_5.o
(ld): i default/source4/heimdal/lib/roken/strsep_copy_5.o
(ld): i default/source4/heimdal/lib/roken/strsep_5.o
(ld): i default/source4/heimdal/lib/roken/strupr_5.o
(ld): i default/source4/heimdal/lib/roken/strpool_5.o
(ld): i default/source4/heimdal/lib/roken/estrdup_5.o
(ld): i default/source4/heimdal/lib/roken/erealloc_5.o
(ld): i default/source4/heimdal/lib/roken/simple_exec_5.o
(ld): i default/source4/heimdal/lib/roken/strcollect_5.o
(ld): i default/source4/heimdal/lib/roken/rtbl_5.o
(ld): i default/source4/heimdal/lib/roken/rand_5.o
(ld): i default/source4/heimdal/lib/roken/cloexec_5.o
(ld): i default/source4/heimdal/lib/roken/xfree_5.o
(ld): i default/source4/heimdal_build/replace_5.o
(ld): i default/source4/heimdal/lib/roken/closefrom_5.o
(ld): i default/source4/heimdal/lib/vers/print_version_130.o
(ld): i default/source4/heimdal_build/version_130.o
(ld): i default/source4/heimdal/lib/asn1/main_132.o
(ld): i default/source4/heimdal/lib/asn1/gen_132.o
(ld): i default/source4/heimdal/lib/asn1/gen_copy_132.o
(ld): i default/source4/heimdal/lib/asn1/gen_decode_132.o
(ld): i default/source4/heimdal/lib/asn1/gen_encode_132.o
(ld): i default/source4/heimdal/lib/asn1/gen_free_132.o
(ld): i default/source4/heimdal/lib/asn1/gen_glue_132.o
(ld): i default/source4/heimdal/lib/asn1/gen_length_132.o
(ld): i default/source4/heimdal/lib/asn1/gen_seq_132.o
(ld): i default/source4/heimdal/lib/asn1/gen_template_132.o
(ld): i default/source4/heimdal/lib/asn1/hash_132.o
(ld): i default/source4/heimdal/lib/asn1/symbol_132.o
(ld): i default/source4/heimdal/lib/asn1/asn1parse_132.o
(ld): i default/source4/heimdal/lib/asn1/lex_132.o
(ld): i default/lib/replace/replace_1.o
(ld): i default/lib/replace/timegm_1.o
(ld): i default/lib/replace/snprintf_1.o
(ld): lib /usr/lib/libpthread.a
(ld): lib /usr/lib/libbsd.a
(ld): lib /opt/IBM/xlc/13.1.0/lib/libxlopt.a
(ld): lib /opt/IBM/xlc/13.1.0/lib/libxlipa.a
(ld): lib /opt/IBM/xlc/13.1.0/lib/libxl.a
(ld): lib /usr/lib/libc.a
(ld): lib /usr/lib/librtl.a
LIBRARY: Shared object libpthread.a[shr_comm.o]: 178 symbols imported.
LIBRARY: Shared object libpthread.a[shr_xpg5.o]: 170 symbols imported.
LIBRARY: Shared object libbsd.a[shr.o]: 61 symbols imported.
LIBRARY: Shared object libc.a[shr.o]: 3172 symbols imported.
LIBRARY: Shared object libc.a[meth.o]: 2 symbols imported.
LIBRARY: Shared object libc.a[posix_aio.o]: 20 symbols imported.
LIBRARY: Shared object libc.a[aio.o]: 18 symbols imported.
LIBRARY: Shared object libc.a[pse.o]: 8 symbols imported.
LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported.
LIBRARY: Shared object libc.a[pty.o]: 1 symbols imported.
LIBRARY: Shared object librtl.a[shr.o]: 1 symbols imported.
LIBRARY: Shared object librtl.a[lazy42.o]: 3 symbols imported.
FILELIST: Number of previously inserted files processed: 59
(ld): resolve
RESOLVE: 951 of 9777 symbols were kept.
(ld): addgl /usr/lib/glink.o
ADDGL: Glink code added for 71 symbols.
(ld): er full
ld: 0711-318 ERROR: Undefined symbols were found.
        The following symbols are in error:
 Symbol                    Inpndx  TY CL Source-File(Object-File) OR Import-File{Shared-object}
                              RLD: Address  Section  Rld-type Referencing Symbol
 ----------------------------------------------------------------------------------------------
 ._lomp_GetHandle          [90]    ER PR ../lib/replace/snprintf.c(default/lib/replace/snprintf_1.o)
                                   00003914 .text    R_RBR    [14]    <.add_cnk_list_entry>
 ._lomp_GetHandle          [96]    ER PR ../lib/replace/timegm.c(default/lib/replace/timegm_1.o)
                                   0000001c .text    R_RBR    [12]    .rep_timegm
 ._lomp_GetHandle          [276]   ER PR ../source4/heimdal/lib/asn1/lex.c(default/source4/heimdal/lib/asn1/lex_132.o)
                                   00002b04 .text    R_RBR    [20]    <.yy_get_next_buffer>
                                   00004094 .text    R_RBR    [46]    .yy_scan_bytes
 ._lomp_GetHandle          [74]    ER PR ../source4/heimdal/lib/asn1/hash.c(default/source4/heimdal/lib/asn1/hash_132.o)
                                   00000034 .text    R_RBR    [12]    .hashtabnew
 ._lomp_GetHandle          [146]   ER PR ../source4/heimdal/lib/roken/rtbl.c(default/source4/heimdal/lib/roken/rtbl_5.o)
                                   000004b4 .text    R_RBR    [24]    .rtbl_new_row
 ._lomp_GetHandle          [42]    ER PR ../source4/heimdal/lib/roken/ct.c(default/source4/heimdal/lib/roken/ct_5.o)
                                   0000002c .text    R_RBR    [12]    .ct_memcmp
 ._lomp_AutoParallel_Loop  [94]    ER PR ../lib/replace/snprintf.c(default/lib/replace/snprintf_1.o)
                                   00003bcc .text    R_RBR    [14]    <.add_cnk_list_entry>
 ._lomp_AutoParallel_Loop  [286]   ER PR ../source4/heimdal/lib/asn1/lex.c(default/source4/heimdal/lib/asn1/lex_132.o)
                                   00003234 .text    R_RBR    [20]    <.yy_get_next_buffer>
                                   00004480 .text    R_RBR    [46]    .yy_scan_bytes
 ._lomp_AutoParallel_Loop  [78]    ER PR ../source4/heimdal/lib/asn1/hash.c(default/source4/heimdal/lib/asn1/hash_132.o)
                                   000000c0 .text    R_RBR    [12]    .hashtabnew
 ._lomp_AutoParallel_Loop  [148]   ER PR ../source4/heimdal/lib/roken/rtbl.c(default/source4/heimdal/lib/roken/rtbl_5.o)
                                   00000558 .text    R_RBR    [24]    .rtbl_new_row
 ._lomp_AutoParallel_Loop  [44]    ER PR ../source4/heimdal/lib/roken/ct.c(default/source4/heimdal/lib/roken/ct_5.o)
                                   000001a8 .text    R_RBR    [12]    .ct_memcmp
ER: The return code is 8.
Comment 1 Björn Jacke 2022-02-11 00:11:08 UTC
I don't think this is a problem any more. I can build on AIX with xlc without running into this.