Topic
  • 13 replies
  • Latest Post - ‏2011-05-26T09:19:57Z by RAAZ123
RAAZ123
RAAZ123
9 Posts

Pinned topic Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

‏2011-05-23T07:54:50Z |
Porting an application from AIX 5.1 to AIX 6.1, Where it is building successfully in AIX 5.1. I am getting following errors while trying to build the same in 6.1.

AIX 6.1
=======
1) Able to compile and create libraries from C and C++ source code

2) While trying to create a run time executable by using libraries the following error occurs

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 acbbatch.m for more information.
ld: 0711-317 ERROR: Undefined symbol: .DOM_NamedNodeMap::DOM_NamedNodeMap()
ld: 0711-317 ERROR: Undefined symbol: .DOMString::DOMString()
ld: 0711-317 ERROR: Undefined symbol: .DOM_NamedNodeMap::operator=(const DOM_NamedNodeMap&)
ld: 0711-317 ERROR: Undefined symbol: .DOMString::operator=(const DOMString&)
ld: 0711-317 ERROR: Undefined symbol: .DOMString::DOMString(const char*)
ld: 0711-317 ERROR: Undefined symbol: .DOMString::~DOMString()
ld: 0711-317 ERROR: Undefined symbol: .DOMString::transcode() const
ld: 0711-317 ERROR: Undefined symbol: .DOMString::length() const
.....
.....
.....
make: The error code from the last command is 8

FROM THE .M FILE
++++++++++++++++

(ld): halt 4
(ld): setopt tmplrename
(ld): setfflag 4
(ld): cdtors 0 all 0 s
(ld): savename acbbatch
(ld): filelist 27 1
(ld): i /lib/crt0.o
(ld): i /lib/crti.o
(ld): i acbbatch.o
(ld): i acbbankserv.o
(ld): i acbbatchmain.o
(ld): i acbdinersclub.o
(ld): i acbmastercard.o
(ld): i acbmoneytransfer.o
(ld): i acbtype.o
(ld): i acbxcept.o
(ld): i acbcats.o
(ld): i /nci5d10/prod/c/lib/libti.a
(ld): i /nci5d10/prod/c/lib/libdocxml.a
(ld): i /nci5d10/prod/c/lib/libintxml.a
(ld): i /nci5d10/prod/c/lib/libdatalayer.a
(ld): i /nci5d10/prod/c/lib/libsql.a
(ld): i /nci5d10/prod/c/lib/libshared.a
(ld): i /nci5d10/prod/c/lib/libstatdoc.a
(ld): i /nci5d10/prod/c/lib/libfeeeng.a
(ld): i /oracle/app/oracle/product/11.1.0/lib32/libclntsh.a
(ld): lib /usr/vac/lib/libxlopt.a
(ld): lib /usr/vac/lib/libxlipa.a
(ld): lib /usr/vac/lib/libxl.a
(ld): lib /usr/vacpp/lib/libC.a
(ld): lib /usr/lib/libpthreads.a
(ld): lib /usr/lib/libm.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object /oracle/app/oracle/product/11.1.0/lib32/libclntsh.ahttp://shr.o: 20863 symbols imported.
LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.ahttp://shr_32.imp: 402
LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.ahttp://shr2_32.imp: 42
LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.ahttp://shr3_32.imp: 34
LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.ahttp://ansi_32.imp: 2441
LIBRARY: Shared object libC.ahttp://ansi_32.o: 2651 symbols imported.
LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.ahttp://shr_64.imp: 0
LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.ahttp://shr2_64.imp: 0
LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.ahttp://shr3_64.imp: 0
LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.ahttp://ansi_64.imp: 0
LIBRARY: Shared object libc.ahttp://pse.o: 8 symbols imported.
LIBRARY: Shared object libc.ahttp://dl.o: 4 symbols imported.
LIBRARY: Shared object libc.ahttp://pty.o: 1 symbols imported.
FILELIST: Number of previously inserted files processed: 27
(ld): resolve
ld: 0711-228 WARNING: Duplicate symbols were found while resolving symbols.
The following duplicates were found:
Symbol Source-File(Object) OR Import-File{Shared-object}

-------------------------------------------------
.bcopy {/oracle/app/oracle/product/11.1.0/lib32/libclntsh.ahttp://shr.o}
** Duplicate ** moveeq.s(/usr/lib/libc.ahttp://moveeq.o)
RESOLVE: 1825 of 85325 symbols were kept.
RESOLVE: The return code is 4.
(ld): addgl /usr/lib/glink.o
ADDGL: Glink code added for 141 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

.__ct__16DOM_NamedNodeMapFv 518 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
00000060 .text R_RBR 149 .__ct__13tDocAttributeFv
.__ct__9DOMStringFv 323 ER PR docerrorreporter.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docerrorreporter.o)
000002a8 .text R_RBR 178 .fatalError__17tDocErrorReporterFRC17SAXParseException
000002bc .text R_RBR 178 .fatalError__17tDocErrorReporterFRC17SAXParseException
00000548 .text R_RBR 191 .error__17tDocErrorReporterFRC17SAXParseException
0000055c .text R_RBR 191 .error__17tDocErrorReporterFRC17SAXParseException
000008c8 .text R_RBR 222 .warning__17tDocErrorReporterFRC17SAXParseException
000008dc .text R_RBR 222 .warning__17tDocErrorReporterFRC17SAXParseException
.__ct__9DOMStringFv 520 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
Please help me in solving this issue.

Thanks in advance.
Updated on 2011-05-26T09:19:57Z at 2011-05-26T09:19:57Z by RAAZ123
  • RAAZ123
    RAAZ123
    9 Posts

    Re: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

    ‏2011-05-23T13:58:08Z  
    I am struggling with these errors from last three days.
    Any help would be highly appreciated.
  • haubi
    haubi
    37 Posts

    Re: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

    ‏2011-05-23T14:22:21Z  
    Do you still have the build environment on your AIX 5.1 available?
    If so: Try to find out which library provides these (now undefined) symbols there.

    HTH,
    /haubi/
  • RAAZ123
    RAAZ123
    9 Posts

    Re: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

    ‏2011-05-23T16:31:46Z  
    NOTE: I am sorry correction it is AIX version 5.3 not the AIX 5.1

    I am still having 5.3 environment, and these are from the "libdocxml.a"
    We are building this library "libdocxml.a"

    And also executables are building properly in 5.3 refering to this library.

    But the same in 6.1 is giving above errors.

    This library is for xml parsers (xercesparser: XML4C and Xerces-C)
  • RAAZ123
    RAAZ123
    9 Posts

    Re: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

    ‏2011-05-23T16:40:34Z  
    Further found that the following files related to the "xercesparser" are found in the /usr/lib/ folder.
    libicuuc.a
    libxerces-c1_5.a
    libicudata.a
    libicuuc.a, libicudata.a are seems to be updated in the AIX 6.1 for the unicode support. This information is placed in the IBM AIX Version 6.1 Differences
    Guide. Not sure whether I am facing this problem because of this.

    Any pointers would be highly appreciated.

    Thanks in advance.
  • haubi
    haubi
    37 Posts

    Re: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

    ‏2011-05-23T16:45:34Z  
    • RAAZ123
    • ‏2011-05-23T16:31:46Z
    NOTE: I am sorry correction it is AIX version 5.3 not the AIX 5.1

    I am still having 5.3 environment, and these are from the "libdocxml.a"
    We are building this library "libdocxml.a"

    And also executables are building properly in 5.3 refering to this library.

    But the same in 6.1 is giving above errors.

    This library is for xml parsers (xercesparser: XML4C and Xerces-C)
    Have you checked that libdocxml.a actually provides these symbols?
    Which object file?

    How exactly do you create libdocxml.a?
    How the object files?
  • haubi
    haubi
    37 Posts

    Re: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

    ‏2011-05-23T16:50:45Z  
    • RAAZ123
    • ‏2011-05-23T16:40:34Z
    Further found that the following files related to the "xercesparser" are found in the /usr/lib/ folder.
    libicuuc.a
    libxerces-c1_5.a
    libicudata.a
    libicuuc.a, libicudata.a are seems to be updated in the AIX 6.1 for the unicode support. This information is placed in the IBM AIX Version 6.1 Differences
    Guide. Not sure whether I am facing this problem because of this.

    Any pointers would be highly appreciated.

    Thanks in advance.
    > Further found that the following files related to the "xercesparser" are found in the /usr/lib/ folder.
    > libxerces-c1_5.a

    On your AIX 5.3: Which libraries does your application use these symbols from?
  • RAAZ123
    RAAZ123
    9 Posts

    Re: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

    ‏2011-05-23T17:26:18Z  
    Yes, I have checked, libdocxml.a provides these symbols.
    I am creating libdocxml as below, where docattributes.cpp, docelement.cpp, docexception.cpp docerrorreporter.cpp docstripwhitespace.cpp docbuildtree.cpp
    docxmlinterface.cpp are provided with the "xercesparser".

    LIBXML=\
    $(LIBDIR)/libdocxml.a(docattributes.o)\
    $(LIBDIR)/libdocxml.a(docelement.o)\
    $(LIBDIR)/libdocxml.a(docexception.o)\
    $(LIBDIR)/libdocxml.a(docerrorreporter.o)\
    $(LIBDIR)/libdocxml.a(docparser.o)\
    $(LIBDIR)/libdocxml.a(docstripwhitespace.o)\
    $(LIBDIR)/libdocxml.a(docbuildtree.o)\
    $(LIBDIR)/libdocxml.a(docprintformattarget.o)\
    $(LIBDIR)/libdocxml.a(docxmlinterface.o)

    All most all components uses this library libdocxml.a in 5.3 successfully, but while trying to access this file we are getting error in AIX 6.1 as shown in the above map file.
  • haubi
    haubi
    37 Posts

    Re: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

    ‏2011-05-24T09:36:39Z  
    • RAAZ123
    • ‏2011-05-23T17:26:18Z
    Yes, I have checked, libdocxml.a provides these symbols.
    I am creating libdocxml as below, where docattributes.cpp, docelement.cpp, docexception.cpp docerrorreporter.cpp docstripwhitespace.cpp docbuildtree.cpp
    docxmlinterface.cpp are provided with the "xercesparser".

    LIBXML=\
    $(LIBDIR)/libdocxml.a(docattributes.o)\
    $(LIBDIR)/libdocxml.a(docelement.o)\
    $(LIBDIR)/libdocxml.a(docexception.o)\
    $(LIBDIR)/libdocxml.a(docerrorreporter.o)\
    $(LIBDIR)/libdocxml.a(docparser.o)\
    $(LIBDIR)/libdocxml.a(docstripwhitespace.o)\
    $(LIBDIR)/libdocxml.a(docbuildtree.o)\
    $(LIBDIR)/libdocxml.a(docprintformattarget.o)\
    $(LIBDIR)/libdocxml.a(docxmlinterface.o)

    All most all components uses this library libdocxml.a in 5.3 successfully, but while trying to access this file we are getting error in AIX 6.1 as shown in the above map file.
    > Yes, I have checked, libdocxml.a provides these symbols.

    Just curious: Which command(s) did you use to check?

    > I am creating libdocxml as below, where docattributes.cpp, docelement.cpp, docexception.cpp docerrorreporter.cpp docstripwhitespace.cpp docbuildtree.cpp
    > docxmlinterface.cpp are provided with the "xercesparser".

    What exactly does it mean within your project for those source files to be "provided with the xercesparser"?

    > LIBXML=\
    > $(LIBDIR)/libdocxml.a(docattributes.o)\
    > $(LIBDIR)/libdocxml.a(docelement.o)\
    > $(LIBDIR)/libdocxml.a(docexception.o)\
    > $(LIBDIR)/libdocxml.a(docerrorreporter.o)\
    > $(LIBDIR)/libdocxml.a(docparser.o)\
    > $(LIBDIR)/libdocxml.a(docstripwhitespace.o)\
    > $(LIBDIR)/libdocxml.a(docbuildtree.o)\
    > $(LIBDIR)/libdocxml.a(docprintformattarget.o)\
    > $(LIBDIR)/libdocxml.a(docxmlinterface.o)

    What is the ar commandline which actually creates the library?
    What is the xlC_r commandline which creates the object files?

    Does it make a difference when you run ranlib libdocxml.a after the ar command?

    Is this 32- or 64-bit? Do you have proper OBJECT_MODE set, or pass -X32_64 or -X64 where necessary?
  • RAAZ123
    RAAZ123
    9 Posts

    Re: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

    ‏2011-05-24T10:33:32Z  
    ar rv" is the commandline is used to creates the library: /usr/bin/ar

    Its is 32 bit.

    xlC_r commandline: buliding xerces library
    ==================

    xlC_r -c -bmaxdata:2147483648 -g -M -qmkshrobj -DM_HASBOOL -q32 -v -I/nci5d10/prod/c/include -I/nci5d10/prod/c/shared/statements/xmlparser
    -I./xml4c3_5_1-AIX43/
    include -I./xerces-c-src1_5_1/include -l./xml4c3_5_1-AIX43/lib/xerces-c1_5 -l./xml4c3_5_1-AIX43/lib/icuuc docattributes.C
    exec: export(export,XL_CONFIG=/etc/vac.cfg.61:xlC_r,NULL)
    exec: export(export,XL_XLCMP_PATH=/usr/vac:/usr/vacpp,NULL)
    exec: export(export,XL_COMPILER=xlc++,NULL)
    exec: export(export,XL_ASMOBJFILES=/tmp/xlcAS--amad,NULL)
    exec: export(export,XL_DIS=/usr/vac/exe/dis -o "docattributes.s" "docattributes.o",NULL)
    exec:
    /usr/vacpp/exe/xlCentry(/usr/vacpp/exe/xlCentry,-qosvar=aix.6.1,-qalias=ansi,-qthreaded,-D_THREAD_SAFE,-D__VACPP_MULTI__,-D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_
    AIX5
    0,-D_AIX51,-D_AIX52,-D_AIX53,-D_AIX61,-D_IBMR2,-D_POWER,-g,-M,-DM_HASBOOL,-q32,-I/nci5d10/prod/c/include,-I/nci5d10/prod/c/shared/statements/xmlparser,-I./xml
    4c3_5_1-AI
    X43/include,-I./xerces-c-src1_5_1/include,-qasm_as=/bin/as,-qcpp_stdinc=/usr/vacpp/include:/usr/include,-qc_stdinc=/usr/vac/include:/usr/include,-MFdocattribu
    tes.u,-odo
    cattributes.o,docattributes.C,/tmp/xlcW0-Zamaa,/tmp/xlcW1--amab,/dev/null,/tmp/xlcL--amaeF.lst,/dev/null,/tmp/xlcW2--amac,NULL)
    exec: export(export,XL_BACKEND=/usr/vac/exe/xlCcode,NULL)
    exec: export(export,XL_LINKER=/bin/ld,NULL)
    exec:
    /usr/vac/exe/xlCcode(/usr/vac/exe/xlCcode,-qalias=ansi,-qthreaded,/tmp/xlcW0-Zamaa,/tmp/xlcW1--amab,docattributes.o,/tmp/xlcL--amaeB.lst,/tmp/xlcW2--amac,NULL
    )
    unlink: /tmp/xlcAS--amad
    unlink: /tmp/xlcL--amae
    unlink: /tmp/xlcW0-Zamaa
    unlink: /tmp/xlcW1--amab
    unlink: /tmp/xlcW2--amac
    ar rv /nci5d10/prod/c/lib/libdocxml.a docattributes.o
    a - docattributes.o
    xlC_r -c -bmaxdata:2147483648 -g -M -qmkshrobj -DM_HASBOOL -q32 -v -I/nci5d10/prod/c/include -I/nci5d10/prod/c/shared/statements/xmlparser
    -I./xml4c3_5_1-AIX43/
    include -I./xerces-c-src1_5_1/include -l./xml4c3_5_1-AIX43/lib/xerces-c1_5 -l./xml4c3_5_1-AIX43/lib/icuuc docelement.C
    exec: export(export,XL_CONFIG=/etc/vac.cfg.61:xlC_r,NULL)
    exec: export(export,XL_XLCMP_PATH=/usr/vac:/usr/vacpp,NULL)
    exec: export(export,XL_COMPILER=xlc++,NULL)
    exec: export(export,XL_ASMOBJFILES=/tmp/xlcAS_pamqd,NULL)
    exec: export(export,XL_DIS=/usr/vac/exe/dis -o "docelement.s" "docelement.o",NULL)
    exec:
    /usr/vacpp/exe/xlCentry(/usr/vacpp/exe/xlCentry,-qosvar=aix.6.1,-qalias=ansi,-qthreaded,-D_THREAD_SAFE,-D__VACPP_MULTI__,-D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_
    AIX5
    0,-D_AIX51,-D_AIX52,-D_AIX53,-D_AIX61,-D_IBMR2,-D_POWER,-g,-M,-DM_HASBOOL,-q32,-I/nci5d10/prod/c/include,-I/nci5d10/prod/c/shared/statements/xmlparser,-I./xml
    4c3_5_1-AI
    X43/include,-I./xerces-c-src1_5_1/include,-qasm_as=/bin/as,-qcpp_stdinc=/usr/vacpp/include:/usr/include,-qc_stdinc=/usr/vac/include:/usr/include,-MFdocelement
    .u,-odocel
    ement.o,docelement.C,/tmp/xlcW0_pamqa,/tmp/xlcW1_pamqb,/dev/null,/tmp/xlcL_vamqeF.lst,/dev/null,/tmp/xlcW2_pamqc,NULL)
  • haubi
    haubi
    37 Posts

    Re: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

    ‏2011-05-24T12:03:07Z  
    • RAAZ123
    • ‏2011-05-24T10:33:32Z
    ar rv" is the commandline is used to creates the library: /usr/bin/ar

    Its is 32 bit.

    xlC_r commandline: buliding xerces library
    ==================

    xlC_r -c -bmaxdata:2147483648 -g -M -qmkshrobj -DM_HASBOOL -q32 -v -I/nci5d10/prod/c/include -I/nci5d10/prod/c/shared/statements/xmlparser
    -I./xml4c3_5_1-AIX43/
    include -I./xerces-c-src1_5_1/include -l./xml4c3_5_1-AIX43/lib/xerces-c1_5 -l./xml4c3_5_1-AIX43/lib/icuuc docattributes.C
    exec: export(export,XL_CONFIG=/etc/vac.cfg.61:xlC_r,NULL)
    exec: export(export,XL_XLCMP_PATH=/usr/vac:/usr/vacpp,NULL)
    exec: export(export,XL_COMPILER=xlc++,NULL)
    exec: export(export,XL_ASMOBJFILES=/tmp/xlcAS--amad,NULL)
    exec: export(export,XL_DIS=/usr/vac/exe/dis -o "docattributes.s" "docattributes.o",NULL)
    exec:
    /usr/vacpp/exe/xlCentry(/usr/vacpp/exe/xlCentry,-qosvar=aix.6.1,-qalias=ansi,-qthreaded,-D_THREAD_SAFE,-D__VACPP_MULTI__,-D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_
    AIX5
    0,-D_AIX51,-D_AIX52,-D_AIX53,-D_AIX61,-D_IBMR2,-D_POWER,-g,-M,-DM_HASBOOL,-q32,-I/nci5d10/prod/c/include,-I/nci5d10/prod/c/shared/statements/xmlparser,-I./xml
    4c3_5_1-AI
    X43/include,-I./xerces-c-src1_5_1/include,-qasm_as=/bin/as,-qcpp_stdinc=/usr/vacpp/include:/usr/include,-qc_stdinc=/usr/vac/include:/usr/include,-MFdocattribu
    tes.u,-odo
    cattributes.o,docattributes.C,/tmp/xlcW0-Zamaa,/tmp/xlcW1--amab,/dev/null,/tmp/xlcL--amaeF.lst,/dev/null,/tmp/xlcW2--amac,NULL)
    exec: export(export,XL_BACKEND=/usr/vac/exe/xlCcode,NULL)
    exec: export(export,XL_LINKER=/bin/ld,NULL)
    exec:
    /usr/vac/exe/xlCcode(/usr/vac/exe/xlCcode,-qalias=ansi,-qthreaded,/tmp/xlcW0-Zamaa,/tmp/xlcW1--amab,docattributes.o,/tmp/xlcL--amaeB.lst,/tmp/xlcW2--amac,NULL
    )
    unlink: /tmp/xlcAS--amad
    unlink: /tmp/xlcL--amae
    unlink: /tmp/xlcW0-Zamaa
    unlink: /tmp/xlcW1--amab
    unlink: /tmp/xlcW2--amac
    ar rv /nci5d10/prod/c/lib/libdocxml.a docattributes.o
    a - docattributes.o
    xlC_r -c -bmaxdata:2147483648 -g -M -qmkshrobj -DM_HASBOOL -q32 -v -I/nci5d10/prod/c/include -I/nci5d10/prod/c/shared/statements/xmlparser
    -I./xml4c3_5_1-AIX43/
    include -I./xerces-c-src1_5_1/include -l./xml4c3_5_1-AIX43/lib/xerces-c1_5 -l./xml4c3_5_1-AIX43/lib/icuuc docelement.C
    exec: export(export,XL_CONFIG=/etc/vac.cfg.61:xlC_r,NULL)
    exec: export(export,XL_XLCMP_PATH=/usr/vac:/usr/vacpp,NULL)
    exec: export(export,XL_COMPILER=xlc++,NULL)
    exec: export(export,XL_ASMOBJFILES=/tmp/xlcAS_pamqd,NULL)
    exec: export(export,XL_DIS=/usr/vac/exe/dis -o "docelement.s" "docelement.o",NULL)
    exec:
    /usr/vacpp/exe/xlCentry(/usr/vacpp/exe/xlCentry,-qosvar=aix.6.1,-qalias=ansi,-qthreaded,-D_THREAD_SAFE,-D__VACPP_MULTI__,-D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_
    AIX5
    0,-D_AIX51,-D_AIX52,-D_AIX53,-D_AIX61,-D_IBMR2,-D_POWER,-g,-M,-DM_HASBOOL,-q32,-I/nci5d10/prod/c/include,-I/nci5d10/prod/c/shared/statements/xmlparser,-I./xml
    4c3_5_1-AI
    X43/include,-I./xerces-c-src1_5_1/include,-qasm_as=/bin/as,-qcpp_stdinc=/usr/vacpp/include:/usr/include,-qc_stdinc=/usr/vac/include:/usr/include,-MFdocelement
    .u,-odocel
    ement.o,docelement.C,/tmp/xlcW0_pamqa,/tmp/xlcW1_pamqb,/dev/null,/tmp/xlcL_vamqeF.lst,/dev/null,/tmp/xlcW2_pamqc,NULL)
    > xlC_r -c ... -qmkshrobj ... docattributes.C

    I'm wondering if the compiled object files are shared objects - or why there is the -qmkshrobj flag.

    So what does this command show:
    
    $ dump -Hov -X32_64 libdocxml.a | grep -E 
    '(^[0-9][ 0-9]|^Flags|^Magic|:$)'
    


    And for the undefined symbols:
    
    $ dump -Ttv -X32_64 libdocxml.a | grep -E 
    '(DOMString|DOM_NamedNodeMap|:$)'
    


    To avoid the forum software interpreting something within the output, attaching as file or pasting between "{code}" tags should do.
  • RAAZ123
    RAAZ123
    9 Posts

    Re: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

    ‏2011-05-24T18:07:18Z  
    Thank you.

    > xlC_r -c ... -qmkshrobj ... docattributes.C

    I just added -qmkshrobj as part of R&D. It doesnt change the output and now i removed it.

    Please find the output of the dump commands.

    $ dump -Hov -X32_64 libdocxml.a | grep -E '(^0-9 0-9|^Flags|^Magic|:$)'

    "{ libdocxml.ahttp://docattributes.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docelement.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docexception.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docerrorreporter.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docparser.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docstripwhitespace.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docbuildtree.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docprintformattarget.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docxmlinterface.o:
    Magic = 0x1df (32-bit XCOFF)
    }"

    FOR :"{ $ dump -Ttv -X32_64 libdocxml.a | grep -E '(DOMString|DOM_NamedNodeMap|:$)'}"

    Please find the attached file.

    And also here including the .m file generated while building the one of executables with errors

    "{
    The following duplicates were found:
    Symbol Source-File(Object) OR Import-File{Shared-object}

    -------------------------------------------------
    .bcopy {/oracle/app/oracle/product/11.1.0/lib32/libclntsh.ahttp://shr.o}
    ** Duplicate ** moveeq.s(/usr/lib/libc.ahttp://moveeq.o)
    .fsav {/oracle/app/oracle/product/11.1.0/lib32/libclntsh.ahttp://shr.o}
    ** Duplicate ** noname(/usr/lib/libc.ahttp://fsavres.o)
    .fres {/oracle/app/oracle/product/11.1.0/lib32/libclntsh.ahttp://shr.o}
    ** Duplicate ** noname(/usr/lib/libc.ahttp://fsavres.o)
    RESOLVE: 8633 of 84474 symbols were kept.
    RESOLVE: The return code is 4.
    (ld): addgl /usr/lib/glink.o
    ADDGL: Glink code added for 230 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

    .__ct__16DOM_NamedNodeMapFv 506 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
    00000060 .text R_RBR 143 .__ct__13tDocAttributeFv
    .__ct__16DOM_NamedNodeMapFv 1983 ER PR docbuildtree.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docbuildtree.o)
    000001c0 .text R_RBR 637 .setupNodeProperties__13tDocBuildTreeFR11tDocElement
    .__ct__16DOM_NamedNodeMapFv 2507 ER PR docxmlinterface.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docxmlinterface.o)
    000020b0 .text R_RBR 891 .obtainAttributeData__16tDocXMLInterfaceFv
    .__ct__9DOMStringFv 299 ER PR docerrorreporter.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docerrorreporter.o)
    000002b0 .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    000002c4 .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    00000550 .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    00000564 .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    000008d0 .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    000008e4 .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    .__ct__9DOMStringFv 508 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
    00000078 .text R_RBR 143 .__ct__13tDocAttributeFv
    00000090 .text R_RBR 143 .__ct__13tDocAttributeFv
    .__ct__9DOMStringFv 2069 ER PR docbuildtree.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docbuildtree.o)
    0000143c .text R_RBR 762 .insertElement__13tDocBuildTreeFb
    00001450 .text R_RBR 762 .insertElement__13tDocBuildTreeFb
    00001464 .text R_RBR 762 .insertElement__13tDocBuildTreeFb
    00001478 .text R_RBR 762 .insertElement__13tDocBuildTreeFb
    00002484 .text R_RBR 925 .insertXMLDeclaration__13tDocBuildTreeFv
    00002498 .text R_RBR 925 .insertXMLDeclaration__13tDocBuildTreeFv
    00002d48 .text R_RBR 974 .setEncoding__13tDocBuildTreeFl
    00004184 .text R_RBR 1176 .findTreeElement__13tDocBuildTreeF8DOM_NodePCc
    00004198 .text R_RBR 1176 .findTreeElement__13tDocBuildTreeF8DOM_NodePCc
    000049e0 .text R_RBR 1266 .setEncodingName__13tDocBuildTreeFPCc
    00005004 .text R_RBR 1343 .addComment__13tDocBuildTreeFPCc
    00005204 .text R_RBR 1355 .addElement__13tDocBuildTreeFv
    00005218 .text R_RBR 1355 .addElement__13tDocBuildTreeFv
    0000522c .text R_RBR 1355 .addElement__13tDocBuildTreeFv
    00005240 .text R_RBR 1355 .addElement__13tDocBuildTreeFv
    00005604 .text R_RBR 1372 .appendElement__13tDocBuildTreeFv
    00005618 .text R_RBR 1372 .appendElement__13tDocBuildTreeFv
    0000562c .text R_RBR 1372 .appendElement__13tDocBuildTreeFv
    00005640 .text R_RBR 1372 .appendElement__13tDocBuildTreeFv
    .__ct__9DOMStringFv 1718 ER PR docparser.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docparser.o)
    00000474 .text R_RBR 637 .parseNextTag__10tDocParserFv
    00000488 .text R_RBR 637 .parseNextTag__10tDocParserFv
    00000998 .text R_RBR 676 .parseFirstTag__10tDocParserFv
    000009ac .text R_RBR 676 .parseFirstTag__10tDocParserFv
    00000edc .text R_RBR 715 .parseInput__10tDocParserFl
    00000ef0 .text R_RBR 715 .parseInput__10tDocParserFl
    000022f8 .text R_RBR 932 .recurseTreeForTag__10tDocParserFR8DOM_NodePCc
    0000230c .text R_RBR 932 .recurseTreeForTag__10tDocParserFR8DOM_NodePCc
    00003664 .text R_RBR 1082 .setSpecificElement__10tDocParserFPCcP11tDocElement
    00003814 .text R_RBR 1094 .getSpecificElement__10tDocParserFlP11tDocElement
    .__ct__9DOMStringFv 2533 ER PR docxmlinterface.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docxmlinterface.o)
    00002518 .text R_RBR 924 .fetchNextElement__16tDocXMLInterfaceFv
    000029f8 .text R_RBR 953 .fetchRootElement__16tDocXMLInterfaceFv
    00002edc .text R_RBR 982 .fetchElement__16tDocXMLInterfaceFl
    000033b8 .text R_RBR 1012 .fetchChildElement__16tDocXMLInterfaceFv
    000038b8 .text R_RBR 1041 .fetchParentElement__16tDocXMLInterfaceFv
    00003d98 .text R_RBR 1070 .fetchElement__16tDocXMLInterfaceFv
    .__ct__9DOMStringFv 620 ER PR docelement.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docelement.o)
    00000050 .text R_RBR 92 .__ct__11tDocElementFPCc
    00000068 .text R_RBR 92 .__ct__11tDocElementFPCc
    000013a8 .text R_RBR 434 .__ct__11tDocElementFv
    000013c0 .text R_RBR 434 .__ct__11tDocElementFv
    .__ct__9DOMStringFv 1087 ER PR docprintformattarget.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docprintformattarget.o)
    00000aa4 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00000ab8 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    000015ac .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    .__as__16DOM_NamedNodeMapFRC16DOM_NamedNodeMap 510 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
    00000164 .text R_RBR 152 .__as__13tDocAttributeFR13tDocAttribute
    00000de4 .text R_RBR 315 .setMap__13tDocAttributeFRC16DOM_NamedNodeMap
    .__as__16DOM_NamedNodeMapFRC16DOM_NamedNodeMap 2005 ER PR docbuildtree.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docbuildtree.o)
    000002e8 .text R_RBR 637 .setupNodeProperties__13tDocBuildTreeFR11tDocElement
    .__as__16DOM_NamedNodeMapFRC16DOM_NamedNodeMap 1830 ER PR docparser.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docparser.o)
    0000272c .text R_RBR 955 .getAttributes__10tDocParserCFR16DOM_NamedNodeMap
    .__as__9DOMStringFRC9DOMString 305 ER PR docerrorreporter.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docerrorreporter.o)
    0000030c .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    00000384 .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    000005ac .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    00000624 .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    0000092c .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    000009a4 .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    .__as__9DOMStringFRC9DOMString 512 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
    0000017c .text R_RBR 152 .__as__13tDocAttributeFR13tDocAttribute
    00000194 .text R_RBR 152 .__as__13tDocAttributeFR13tDocAttribute
    00000220 .text R_RBR 162 .getName__13tDocAttributeFR9DOMString
    000002a0 .text R_RBR 172 .getData__13tDocAttributeFR9DOMString
    0000036c .text R_RBR 182 .setData__13tDocAttributeFPCc
    0000046c .text R_RBR 192 .setName__13tDocAttributeFPCc
    00000bb8 .text R_RBR 295 .getAttribute__13tDocAttributeFl
    00000c08 .text R_RBR 295 .getAttribute__13tDocAttributeFl
    .__as__9DOMStringFRC9DOMString 2047 ER PR docbuildtree.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docbuildtree.o)
    00000c34 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000c8c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000d38 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00004220 .text R_RBR 1176 .findTreeElement__13tDocBuildTreeF8DOM_NodePCc
    00004a4c .text R_RBR 1266 .setEncodingName__13tDocBuildTreeFPCc
    00005034 .text R_RBR 1343 .addComment__13tDocBuildTreeFPCc
    .__as__9DOMStringFRC9DOMString 1726 ER PR docparser.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docparser.o)
    0000054c .text R_RBR 637 .parseNextTag__10tDocParserFv
    00000598 .text R_RBR 637 .parseNextTag__10tDocParserFv
    000006b4 .text R_RBR 637 .parseNextTag__10tDocParserFv
    00000a78 .text R_RBR 676 .parseFirstTag__10tDocParserFv
    00000ac4 .text R_RBR 676 .parseFirstTag__10tDocParserFv
    00000be0 .text R_RBR 676 .parseFirstTag__10tDocParserFv
    00001048 .text R_RBR 715 .parseInput__10tDocParserFl
    00001094 .text R_RBR 715 .parseInput__10tDocParserFl
    00001fe4 .text R_RBR 881 .__as__11tDocElementFRC11tDocElement
    00001ffc .text R_RBR 881 .__as__11tDocElementFRC11tDocElement
    000023f4 .text R_RBR 913 .obtainElementData__16tDocXMLInterfaceFv
    .__as__9DOMStringFRC9DOMString 624 ER PR docelement.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docelement.o)
    000000d4 .text R_RBR 92 .__ct__11tDocElementFPCc
    00000300 .text R_RBR 139 .getName__11tDocElementFR9DOMString
    00000be0 .text R_RBR 327 .getData__11tDocElementFR9DOMString
    0000115c .text R_RBR 403 .setData__11tDocElementFRC9DOMString
    000011fc .text R_RBR 413 .setName__11tDocElementFRC9DOMString
    .__as__9DOMStringFRC9DOMString 1091 ER PR docprintformattarget.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docprintformattarget.o)
    00000b20 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00000b60 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    000011ec .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00001284 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00001318 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00001474 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    000014fc .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00001650 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    .__ct__9DOMStringFPCc 514 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
    00000348 .text R_RBR 182 .setData__13tDocAttributeFPCc
    00000448 .text R_RBR 192 .setName__13tDocAttributeFPCc
    .__ct__9DOMStringFPCc 2023 ER PR docbuildtree.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docbuildtree.o)
    0000066c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000684 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000c1c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000c74 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000d20 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000d6c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    000024c0 .text R_RBR 925 .insertXMLDeclaration__13tDocBuildTreeFv
    00002550 .text R_RBR 925 .insertXMLDeclaration__13tDocBuildTreeFv
    00002570 .text R_RBR 925 .insertXMLDeclaration__13tDocBuildTreeFv
    000026dc .text R_RBR 937 .createDocument__13tDocBuildTreeFlT1
    000026f4 .text R_RBR 937 .createDocument__13tDocBuildTreeFlT1
    000027b0 .text R_RBR 937 .createDocument__13tDocBuildTreeFlT1
    000027d0 .text R_RBR 937 .createDocument__13tDocBuildTreeFlT1
    00002d90 .text R_RBR 974 .setEncoding__13tDocBuildTreeFl
    00002e44 .text R_RBR 974 .setEncoding__13tDocBuildTreeFl
    00004a34 .text R_RBR 1266 .setEncodingName__13tDocBuildTreeFPCc
    0000501c .text R_RBR 1343 .addComment__13tDocBuildTreeFPCc
    00005cb4 .text R_RBR 1425 .createElement__13tDocBuildTreeFPCcPCc
    00005ed8 .text R_RBR 1445 .createElement__13tDocBuildTreeFPCc
    .__ct__9DOMStringFPCc 1724 ER PR docparser.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docparser.o)
    00000534 .text R_RBR 637 .parseNextTag__10tDocParserFv
    00000a60 .text R_RBR 676 .parseFirstTag__10tDocParserFv
    00001030 .text R_RBR 715 .parseInput__10tDocParserFl
    0000367c .text R_RBR 1082 .setSpecificElement__10tDocParserFPCcP11tDocElement
    00004e38 .text R_RBR 1260 .__ct__10tDocParserFRC10tDocParser
    .__ct__9DOMStringFPCc 2527 ER PR docxmlinterface.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docxmlinterface.o)
    000023dc .text R_RBR 913 .obtainElementData__16tDocXMLInterfaceFv
    .__ct__9DOMStringFPCc 622 ER PR docelement.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docelement.o)
    000000b0 .text R_RBR 92 .__ct__11tDocElementFPCc
    .__ct__9DOMStringFPCc 1143 ER PR docprintformattarget.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docprintformattarget.o)
    000016d4 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00001728 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    .__dt__9DOMStringFv 307 ER PR docerrorreporter.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docerrorreporter.o)
    00000324 .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    0000039c .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    0000045c .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    00000474 .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    000005c4 .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    0000063c .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    000006fc .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    00000714 .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    00000838 .text R_RBR 203 .__dftdt__9DOMStringFv
    00000944 .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    000009bc .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    00000a7c .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    00000a94 .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    .__dt__9DOMStringFv 516 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
    00000384 .text R_RBR 182 .setData__13tDocAttributeFPCc
    00000484 .text R_RBR 192 .setName__13tDocAttributeFPCc
    00000bd0 .text R_RBR 295 .getAttribute__13tDocAttributeFl
    00000c20 .text R_RBR 295 .getAttribute__13tDocAttributeFl
    00000c74 .text R_RBR 295 .getAttribute__13tDocAttributeFl
    00000cc8 .text R_RBR 295 .getAttribute__13tDocAttributeFl
    00001160 .text R_RBR 357 .__dt__13tDocAttributeFv
    0000117c .text R_RBR 357 .__dt__13tDocAttributeFv
    00001238 .text R_RBR 368 .__dftdt__9DOMStringFv
    .__dt__9DOMStringFv 1989 ER PR docbuildtree.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docbuildtree.o)
    00000218 .text R_RBR 637 .setupNodeProperties__13tDocBuildTreeFR11tDocElement
    00000268 .text R_RBR 637 .setupNodeProperties__13tDocBuildTreeFR11tDocElement
    00000850 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000868 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000a74 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000a8c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000b2c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000b44 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000c4c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000ca4 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000d50 .text R_RBR

    }"
  • haubi
    haubi
    37 Posts

    Re: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

    ‏2011-05-25T07:04:27Z  
    • RAAZ123
    • ‏2011-05-24T18:07:18Z
    Thank you.

    > xlC_r -c ... -qmkshrobj ... docattributes.C

    I just added -qmkshrobj as part of R&D. It doesnt change the output and now i removed it.

    Please find the output of the dump commands.

    $ dump -Hov -X32_64 libdocxml.a | grep -E '(^0-9 0-9|^Flags|^Magic|:$)'

    "{ libdocxml.ahttp://docattributes.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docelement.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docexception.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docerrorreporter.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docparser.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docstripwhitespace.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docbuildtree.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docprintformattarget.o:
    Magic = 0x1df (32-bit XCOFF)
    libdocxml.ahttp://docxmlinterface.o:
    Magic = 0x1df (32-bit XCOFF)
    }"

    FOR :"{ $ dump -Ttv -X32_64 libdocxml.a | grep -E '(DOMString|DOM_NamedNodeMap|:$)'}"

    Please find the attached file.

    And also here including the .m file generated while building the one of executables with errors

    "{
    The following duplicates were found:
    Symbol Source-File(Object) OR Import-File{Shared-object}

    -------------------------------------------------
    .bcopy {/oracle/app/oracle/product/11.1.0/lib32/libclntsh.ahttp://shr.o}
    ** Duplicate ** moveeq.s(/usr/lib/libc.ahttp://moveeq.o)
    .fsav {/oracle/app/oracle/product/11.1.0/lib32/libclntsh.ahttp://shr.o}
    ** Duplicate ** noname(/usr/lib/libc.ahttp://fsavres.o)
    .fres {/oracle/app/oracle/product/11.1.0/lib32/libclntsh.ahttp://shr.o}
    ** Duplicate ** noname(/usr/lib/libc.ahttp://fsavres.o)
    RESOLVE: 8633 of 84474 symbols were kept.
    RESOLVE: The return code is 4.
    (ld): addgl /usr/lib/glink.o
    ADDGL: Glink code added for 230 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

    .__ct__16DOM_NamedNodeMapFv 506 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
    00000060 .text R_RBR 143 .__ct__13tDocAttributeFv
    .__ct__16DOM_NamedNodeMapFv 1983 ER PR docbuildtree.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docbuildtree.o)
    000001c0 .text R_RBR 637 .setupNodeProperties__13tDocBuildTreeFR11tDocElement
    .__ct__16DOM_NamedNodeMapFv 2507 ER PR docxmlinterface.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docxmlinterface.o)
    000020b0 .text R_RBR 891 .obtainAttributeData__16tDocXMLInterfaceFv
    .__ct__9DOMStringFv 299 ER PR docerrorreporter.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docerrorreporter.o)
    000002b0 .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    000002c4 .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    00000550 .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    00000564 .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    000008d0 .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    000008e4 .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    .__ct__9DOMStringFv 508 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
    00000078 .text R_RBR 143 .__ct__13tDocAttributeFv
    00000090 .text R_RBR 143 .__ct__13tDocAttributeFv
    .__ct__9DOMStringFv 2069 ER PR docbuildtree.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docbuildtree.o)
    0000143c .text R_RBR 762 .insertElement__13tDocBuildTreeFb
    00001450 .text R_RBR 762 .insertElement__13tDocBuildTreeFb
    00001464 .text R_RBR 762 .insertElement__13tDocBuildTreeFb
    00001478 .text R_RBR 762 .insertElement__13tDocBuildTreeFb
    00002484 .text R_RBR 925 .insertXMLDeclaration__13tDocBuildTreeFv
    00002498 .text R_RBR 925 .insertXMLDeclaration__13tDocBuildTreeFv
    00002d48 .text R_RBR 974 .setEncoding__13tDocBuildTreeFl
    00004184 .text R_RBR 1176 .findTreeElement__13tDocBuildTreeF8DOM_NodePCc
    00004198 .text R_RBR 1176 .findTreeElement__13tDocBuildTreeF8DOM_NodePCc
    000049e0 .text R_RBR 1266 .setEncodingName__13tDocBuildTreeFPCc
    00005004 .text R_RBR 1343 .addComment__13tDocBuildTreeFPCc
    00005204 .text R_RBR 1355 .addElement__13tDocBuildTreeFv
    00005218 .text R_RBR 1355 .addElement__13tDocBuildTreeFv
    0000522c .text R_RBR 1355 .addElement__13tDocBuildTreeFv
    00005240 .text R_RBR 1355 .addElement__13tDocBuildTreeFv
    00005604 .text R_RBR 1372 .appendElement__13tDocBuildTreeFv
    00005618 .text R_RBR 1372 .appendElement__13tDocBuildTreeFv
    0000562c .text R_RBR 1372 .appendElement__13tDocBuildTreeFv
    00005640 .text R_RBR 1372 .appendElement__13tDocBuildTreeFv
    .__ct__9DOMStringFv 1718 ER PR docparser.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docparser.o)
    00000474 .text R_RBR 637 .parseNextTag__10tDocParserFv
    00000488 .text R_RBR 637 .parseNextTag__10tDocParserFv
    00000998 .text R_RBR 676 .parseFirstTag__10tDocParserFv
    000009ac .text R_RBR 676 .parseFirstTag__10tDocParserFv
    00000edc .text R_RBR 715 .parseInput__10tDocParserFl
    00000ef0 .text R_RBR 715 .parseInput__10tDocParserFl
    000022f8 .text R_RBR 932 .recurseTreeForTag__10tDocParserFR8DOM_NodePCc
    0000230c .text R_RBR 932 .recurseTreeForTag__10tDocParserFR8DOM_NodePCc
    00003664 .text R_RBR 1082 .setSpecificElement__10tDocParserFPCcP11tDocElement
    00003814 .text R_RBR 1094 .getSpecificElement__10tDocParserFlP11tDocElement
    .__ct__9DOMStringFv 2533 ER PR docxmlinterface.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docxmlinterface.o)
    00002518 .text R_RBR 924 .fetchNextElement__16tDocXMLInterfaceFv
    000029f8 .text R_RBR 953 .fetchRootElement__16tDocXMLInterfaceFv
    00002edc .text R_RBR 982 .fetchElement__16tDocXMLInterfaceFl
    000033b8 .text R_RBR 1012 .fetchChildElement__16tDocXMLInterfaceFv
    000038b8 .text R_RBR 1041 .fetchParentElement__16tDocXMLInterfaceFv
    00003d98 .text R_RBR 1070 .fetchElement__16tDocXMLInterfaceFv
    .__ct__9DOMStringFv 620 ER PR docelement.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docelement.o)
    00000050 .text R_RBR 92 .__ct__11tDocElementFPCc
    00000068 .text R_RBR 92 .__ct__11tDocElementFPCc
    000013a8 .text R_RBR 434 .__ct__11tDocElementFv
    000013c0 .text R_RBR 434 .__ct__11tDocElementFv
    .__ct__9DOMStringFv 1087 ER PR docprintformattarget.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docprintformattarget.o)
    00000aa4 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00000ab8 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    000015ac .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    .__as__16DOM_NamedNodeMapFRC16DOM_NamedNodeMap 510 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
    00000164 .text R_RBR 152 .__as__13tDocAttributeFR13tDocAttribute
    00000de4 .text R_RBR 315 .setMap__13tDocAttributeFRC16DOM_NamedNodeMap
    .__as__16DOM_NamedNodeMapFRC16DOM_NamedNodeMap 2005 ER PR docbuildtree.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docbuildtree.o)
    000002e8 .text R_RBR 637 .setupNodeProperties__13tDocBuildTreeFR11tDocElement
    .__as__16DOM_NamedNodeMapFRC16DOM_NamedNodeMap 1830 ER PR docparser.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docparser.o)
    0000272c .text R_RBR 955 .getAttributes__10tDocParserCFR16DOM_NamedNodeMap
    .__as__9DOMStringFRC9DOMString 305 ER PR docerrorreporter.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docerrorreporter.o)
    0000030c .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    00000384 .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    000005ac .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    00000624 .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    0000092c .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    000009a4 .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    .__as__9DOMStringFRC9DOMString 512 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
    0000017c .text R_RBR 152 .__as__13tDocAttributeFR13tDocAttribute
    00000194 .text R_RBR 152 .__as__13tDocAttributeFR13tDocAttribute
    00000220 .text R_RBR 162 .getName__13tDocAttributeFR9DOMString
    000002a0 .text R_RBR 172 .getData__13tDocAttributeFR9DOMString
    0000036c .text R_RBR 182 .setData__13tDocAttributeFPCc
    0000046c .text R_RBR 192 .setName__13tDocAttributeFPCc
    00000bb8 .text R_RBR 295 .getAttribute__13tDocAttributeFl
    00000c08 .text R_RBR 295 .getAttribute__13tDocAttributeFl
    .__as__9DOMStringFRC9DOMString 2047 ER PR docbuildtree.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docbuildtree.o)
    00000c34 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000c8c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000d38 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00004220 .text R_RBR 1176 .findTreeElement__13tDocBuildTreeF8DOM_NodePCc
    00004a4c .text R_RBR 1266 .setEncodingName__13tDocBuildTreeFPCc
    00005034 .text R_RBR 1343 .addComment__13tDocBuildTreeFPCc
    .__as__9DOMStringFRC9DOMString 1726 ER PR docparser.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docparser.o)
    0000054c .text R_RBR 637 .parseNextTag__10tDocParserFv
    00000598 .text R_RBR 637 .parseNextTag__10tDocParserFv
    000006b4 .text R_RBR 637 .parseNextTag__10tDocParserFv
    00000a78 .text R_RBR 676 .parseFirstTag__10tDocParserFv
    00000ac4 .text R_RBR 676 .parseFirstTag__10tDocParserFv
    00000be0 .text R_RBR 676 .parseFirstTag__10tDocParserFv
    00001048 .text R_RBR 715 .parseInput__10tDocParserFl
    00001094 .text R_RBR 715 .parseInput__10tDocParserFl
    00001fe4 .text R_RBR 881 .__as__11tDocElementFRC11tDocElement
    00001ffc .text R_RBR 881 .__as__11tDocElementFRC11tDocElement
    000023f4 .text R_RBR 913 .obtainElementData__16tDocXMLInterfaceFv
    .__as__9DOMStringFRC9DOMString 624 ER PR docelement.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docelement.o)
    000000d4 .text R_RBR 92 .__ct__11tDocElementFPCc
    00000300 .text R_RBR 139 .getName__11tDocElementFR9DOMString
    00000be0 .text R_RBR 327 .getData__11tDocElementFR9DOMString
    0000115c .text R_RBR 403 .setData__11tDocElementFRC9DOMString
    000011fc .text R_RBR 413 .setName__11tDocElementFRC9DOMString
    .__as__9DOMStringFRC9DOMString 1091 ER PR docprintformattarget.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docprintformattarget.o)
    00000b20 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00000b60 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    000011ec .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00001284 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00001318 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00001474 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    000014fc .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00001650 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    .__ct__9DOMStringFPCc 514 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
    00000348 .text R_RBR 182 .setData__13tDocAttributeFPCc
    00000448 .text R_RBR 192 .setName__13tDocAttributeFPCc
    .__ct__9DOMStringFPCc 2023 ER PR docbuildtree.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docbuildtree.o)
    0000066c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000684 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000c1c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000c74 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000d20 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000d6c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    000024c0 .text R_RBR 925 .insertXMLDeclaration__13tDocBuildTreeFv
    00002550 .text R_RBR 925 .insertXMLDeclaration__13tDocBuildTreeFv
    00002570 .text R_RBR 925 .insertXMLDeclaration__13tDocBuildTreeFv
    000026dc .text R_RBR 937 .createDocument__13tDocBuildTreeFlT1
    000026f4 .text R_RBR 937 .createDocument__13tDocBuildTreeFlT1
    000027b0 .text R_RBR 937 .createDocument__13tDocBuildTreeFlT1
    000027d0 .text R_RBR 937 .createDocument__13tDocBuildTreeFlT1
    00002d90 .text R_RBR 974 .setEncoding__13tDocBuildTreeFl
    00002e44 .text R_RBR 974 .setEncoding__13tDocBuildTreeFl
    00004a34 .text R_RBR 1266 .setEncodingName__13tDocBuildTreeFPCc
    0000501c .text R_RBR 1343 .addComment__13tDocBuildTreeFPCc
    00005cb4 .text R_RBR 1425 .createElement__13tDocBuildTreeFPCcPCc
    00005ed8 .text R_RBR 1445 .createElement__13tDocBuildTreeFPCc
    .__ct__9DOMStringFPCc 1724 ER PR docparser.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docparser.o)
    00000534 .text R_RBR 637 .parseNextTag__10tDocParserFv
    00000a60 .text R_RBR 676 .parseFirstTag__10tDocParserFv
    00001030 .text R_RBR 715 .parseInput__10tDocParserFl
    0000367c .text R_RBR 1082 .setSpecificElement__10tDocParserFPCcP11tDocElement
    00004e38 .text R_RBR 1260 .__ct__10tDocParserFRC10tDocParser
    .__ct__9DOMStringFPCc 2527 ER PR docxmlinterface.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docxmlinterface.o)
    000023dc .text R_RBR 913 .obtainElementData__16tDocXMLInterfaceFv
    .__ct__9DOMStringFPCc 622 ER PR docelement.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docelement.o)
    000000b0 .text R_RBR 92 .__ct__11tDocElementFPCc
    .__ct__9DOMStringFPCc 1143 ER PR docprintformattarget.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docprintformattarget.o)
    000016d4 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    00001728 .text R_RBR 581 .__ls__FR7ostreamP21tDocPrintFormatTarget
    .__dt__9DOMStringFv 307 ER PR docerrorreporter.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docerrorreporter.o)
    00000324 .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    0000039c .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    0000045c .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    00000474 .text R_RBR 168 .fatalError__17tDocErrorReporterFRC17SAXParseException
    000005c4 .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    0000063c .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    000006fc .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    00000714 .text R_RBR 181 .error__17tDocErrorReporterFRC17SAXParseException
    00000838 .text R_RBR 203 .__dftdt__9DOMStringFv
    00000944 .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    000009bc .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    00000a7c .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    00000a94 .text R_RBR 212 .warning__17tDocErrorReporterFRC17SAXParseException
    .__dt__9DOMStringFv 516 ER PR docattributes.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docattributes.o)
    00000384 .text R_RBR 182 .setData__13tDocAttributeFPCc
    00000484 .text R_RBR 192 .setName__13tDocAttributeFPCc
    00000bd0 .text R_RBR 295 .getAttribute__13tDocAttributeFl
    00000c20 .text R_RBR 295 .getAttribute__13tDocAttributeFl
    00000c74 .text R_RBR 295 .getAttribute__13tDocAttributeFl
    00000cc8 .text R_RBR 295 .getAttribute__13tDocAttributeFl
    00001160 .text R_RBR 357 .__dt__13tDocAttributeFv
    0000117c .text R_RBR 357 .__dt__13tDocAttributeFv
    00001238 .text R_RBR 368 .__dftdt__9DOMStringFv
    .__dt__9DOMStringFv 1989 ER PR docbuildtree.C(/nci5d10/prod/c/lib/libdocxml.ahttp://docbuildtree.o)
    00000218 .text R_RBR 637 .setupNodeProperties__13tDocBuildTreeFR11tDocElement
    00000268 .text R_RBR 637 .setupNodeProperties__13tDocBuildTreeFR11tDocElement
    00000850 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000868 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000a74 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000a8c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000b2c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000b44 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000c4c .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000ca4 .text R_RBR 690 .modifyAttributes__13tDocBuildTreeFPCcPCcb
    00000d50 .text R_RBR

    }"
    > FOR :"{ $ dump -Ttv -X32_64 libdocxml.a | grep -E '(DOMString|DOM_NamedNodeMap|:$)'}"
    >
    > Please find the attached file.

    > ld: 0711-318 ERROR: Undefined symbols were found.
    > The following symbols are in error:
    > Symbol
    > ---
    > .__ct__16DOM_NamedNodeMapFv
    > .__ct__9DOMStringFv
    > .__as__16DOM_NamedNodeMapFRC16DOM_NamedNodeMap
    > .__as__9DOMStringFRC9DOMString
    > .__ct__9DOMStringFPCc
    > .__dt__9DOMStringFv

    Searching in the dump -Ttv output gives just "undef" and "debug" for the undefined symbols, nothing real ".text" or ".data":
    
    $ grep -E 
    '(__as__16DOM_NamedNodeMapFRC16DOM_NamedNodeMap|__as__9DOMStringFRC9DOMString|__ct__16DOM_NamedNodeMapFv|__ct__9DOMStringFPCc|__ct__9DOMStringFv|__dt__9DOMStringFv)' dump_ttv.txt
    


    So these symbols really are undefined within this library.

    Next question:
    Are these symbols found as ".text" or ".data" within this library on AIX 5.3?
    (use dump -Ttv along with grep to inspect)

    If no:
    Which library provides the symbols there?
    (inspect the libraries used to create your "acbbatch" binary on AIX 5.3)

    If yes:
    We'll try to find out why xlC_r behaves different on AIX 5.3 and 6.1.
  • RAAZ123
    RAAZ123
    9 Posts

    Re: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol)

    ‏2011-05-26T09:19:57Z  
    Next question:
    Are these symbols found as ".text" or ".data" within this library on AIX 5.3?
    (use dump -Ttv along with grep to inspect)

    No, these symbols or with the undef as well in teh AIX 5.3.

    Found the library which provides this symbols, it is libxerces-c1_5.a, libdocxml.a internally using this library.
    Now appliacation is built successfully.

    Thanks for all your support and valuable directions given to find the solution.

    However a new problem occured that once all these binaries are builtin AIX 6.21 we are trying to executing them, Illegal instruction(coredump) and with some binaries
    memory fault (Core dump) occuring. Any pointers..? I will post another thread for this problem.

    Thank you again.