Error Undefined Symbol Aix
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might
Ld: 0711-317 Error: Undefined Symbol:
have Meta Discuss the workings and policies of this site About "ld: 0711-317 error: undefined symbol:" aix Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
Ld: 0711-345
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Porting to AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol) with Xerces up vote 0 down vote favorite 1 AIX 6.1 Porting an application from AIX 5.3 to AIX 6.1, Where it is building successfully in AIX 5.3. I am getting following errors while trying to build the same in 6.1. Able to compile and create libraries from C and C++ source code While trying to create a run time executable by using libraries the following error occurs Observations Following errros are seems to be while trying call functions from the "libdocxml.a" library, which built successfully with xlC compiler earlier. Compiler used: xlC_r, same compiler used for building all the libraries and application. NOTE: Executables are building properly in 5.3 refering to this library. But the same in 6.1 is giving above errors. This library is related with xml parsers (xercesparser: XML4C and Xerces-C) Please go through the end of the following error description. Actual errors are defined at the end. Any help would be highly appreciated. Thanks in advance. xlC_r -o acbbatch acbbatch.o acbbankserv.o acbbatchmain.o acbdinersclub.o acbmastercard.o acbmoneytransfer.o acbtype.o acbxcept.o acbcats.o -bloadmap:acbbatch.m /nci5d10/prod/c/lib/libti.a /nci5d10/prod/c/lib/libdocxml.a /nci5d10/prod/c/lib/libintxml.a /nci5d10/prod/c/lib/libdatalayer.a /nci5d10/prod/c/lib/libsql.a /nci5d10/prod/c/lib/libshared.a /nci5d10/prod/c/lib/libstatdoc.a /nci5d10/prod/c/lib/libfeeeng.a /oracle/app/oracle/product/11.1.0/lib32/libclntsh.a ld: 0711-224 WARNING: Duplicate symbol: .bcopy ld: 0711-344 See the loadmap file acb
I've come to expect from IBM's compiler - nothing's ever that simple. What did I expect? They don't even provide a man page, and the linker always kicks out thousands of irrelevant warnings by design. The system is running IBM VisualAge 5 on AIX 5.1. I said it was ageing. Always finish with -bdynamic Dynamic linking (-bdynamic) is the default for AIX's xlC compiler. The documentation says that the -bstatic option turns on static linking. OK, http://stackoverflow.com/questions/6103714/porting-to-aix-6-1-ld-0711-317-error-undefined-symbol-with-xerces but try using this option and you get dozens of ‘undefined symbol' errors for symbols that should be defined in libc: ld: 0711-317 ERROR: Undefined symbol: errno ld: 0711-317 ERROR: Undefined symbol: _exit ld: 0711-317 ERROR: Undefined symbol: open Apparently, you can't link libc statically. Here's the relevant quote, hidden away on page 102 of some blasted PDF: http://blog.firetree.net/2005/07/21/static-linking-on-aix/ To avoid possible problems with unresolved linker errors when linking the C library, you must add the -bdynamic option to the end of any compilation sections that use the -bstatic option. Note: Actually the documentation says you can statically link libc, but you might not want to. That said, I've not been able to make it work. See below for the secret. ranlib libz.a I had trouble with linking Zlib of all things. I got these six severe errors: ld: 0711-212 SEVERE ERROR: Symbol .__divus, found in the global symbol table of archive /lib/libz.a, was not defined in archive member libz.so.1. ld: 0711-212 SEVERE ERROR: Symbol __divus, found in the global symbol table of archive /lib/libz.a, was not defined in archive member libz.so.1. ld: 0711-212 SEVERE ERROR: Symbol .__mulh, found in the global symbol table of archive /lib/libz.a, was not defined in archive member libz.so.1. ld: 0711-212 SEVERE ERROR: Symbol __mulh, found in the global symbol table of archive /lib/libz.a, was not defined in archive member libz.so.1. ld: 0711-212 SEVERE ERROR: Symbol .__q
to Milestone Python-Crypto Edit New Undecided Unassigned Edit You need https://bugs.launchpad.net/bugs/1321757 to log in to change this bug's status. Affecting: Python-Crypto Filed here by: Brent S Elmer When: 2014-05-21 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project undefined symbol (Find…) Status Importance New Undecided Assigned to Nobody Me Comment on this change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for series Bug Description I get the following link error when building pycrypto on AIX with ld: 0711-317 error: the xlc compiler: ld: 0711-317 ERROR: Undefined symbol: .rpl_malloc I fix the problem by commenting out the following line in src/config.h /*#define malloc rpl_malloc*/ There should be some way in the configuration to detect this on AIX and comment it out. Add tags Tag help See full activity log To post a comment you must log in. Report a bug This report contains Public information Edit Everyone can see this information. Mark as duplicate Convert to a question Link a related branch Link to CVE You are not directly subscribed to this bug's notifications. Subscribing... Edit bug mail Other bug subscribers Subscribe someone else • Take the tour • Read the guide © 2004-2016 CanonicalLtd. • Terms of use • Contact Launchpad Support • Blog • Careers • System status • r18232 (Get the code!)