LI78854: LINK ERROR WITH IPA FOR JAVA OBJECTS/LIBRARIES
A fix is available
Closed as program error.
When explicitly adding -Bdynamic /lib/ld.so.1, the compiler issues the following error message: /opt/ibmcmp/vac/12.1/bin/.orig/xlc_r: 1501-218 (W) file /lib/ld.so.1 contains an incorrect file suff ix /usr/bin/ld: attempted static link of dynamic object `/lib/ld.so.1' 1586-347 (U) An error occurred during linking of the object produced by the IPA Link step. The link return code was 1. The above error message should not be normally produced.
USERS AFFECTED: Clients who specifically add -Bdynamic /lib/ld.so.1 to their IPA link step along with shared objects built with -qmkshrobj may be affected by this issue. PROBLEM DESCRIPTION: Since the link command -Bdynamic /lib/ld.so.1 is to bind a shared library built with the -qmkshrobj option, the XLC driver did not add /lib/ld.so.1. On the other hand, some of the object files have references to symbol __tls_get_addr which is exported from /lib/ld.so.1. IPA instead generated -Bstatic and -Bdynamic around /lib/ld.so.1; which is incorrect ie similar to the following: -Bstatic,/usr/lib/gcc/ppc64-redhat-linux/4.4.7/../../../../lib/c rti.o,/usr/lib/gcc/ppc64-redhat-linux/4.4.7/32/crtbeginS.o,/lib/ ld.so.1,./libfoo.a,/lib/rhel6/libxlopt.a,/opt/ibmcmp/vac/12.1/li b/libxl.a,-Bdynamic,
The compiler has been fixed by removing /lib/ld.so.1 from the compiler configuation file.
Reported component name
XL C/C++ FOR LI
Reported component ID
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fixed component name
XL C/C++ FOR LI
Fixed component ID
Applicable component levels