10 Replies Latest reply: Jun 4, 2013 3:58 PM by Todd Little-Oracle RSS

    Tuxedo Service Compile Errors

    RedKoolAid
      Hello,

      I am trying to compile old tuxedo 6.5 code on AIX 5.3, but am getting alot of symbol errors. Any idea on what I am missing?

      Thanks
      Casey



      tuxedo @ testdev01:/home/tuxedo/src/projects/nni/src/nniread > gmake
      Building NNIREAD Server...
      PATH /home/tuxedo/product/Tux6.5/SDK/bin:/home/tuxedo/product/Tux6.5/bin:/home/oracle/product/9.2.0.7/bin:/home/tuxedo/product/Tux6.5/SDK/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin:.:/home/tuxedo/src/projects/tools/unix:/home/tuxedo/src/projects/tools/sqlscript:/home/tuxedo/src/projects/lib:/home/tuxedo/admin/bin:/usr/vac/bin:.:/usr/local/bin
      CC cc
      CFLAGS -g -D_AIX_SOURCE -Daix=1 -L. -L/home/tuxedo/src/projects/nni/lib -L/home/tuxedo/src/projects/lib -L/home/tuxedo/src/projects/hers/lib -L/home/oracle/product/9.2.0.7/precomp/lib32 -L/home/oracle/product/9.2.0.7/lib32 -L/home/tuxedo/product/Tux6.5/SDK/lib -L/usr/ldap/lib
      INCDIRS -I. -I/home/tuxedo/src/projects/nni/include -I/home/tuxedo/src/projects/hers/include -I/home/tuxedo/src/projects/a1asn1/include -I/home/oracle/product/9.2.0.7/precomp/public -I/home/oracle/product/9.2.0.7/precomp/public -I/home/tuxedo/product/Tux6.5/SDK/include -I/usr/ldap/include
      READ_OBJS nnirdtux.o version.o
      NNIREADLIBS -l "-lnni -l3masn -lsutil -lsrv -lserve -lddfun -ltime -ltzdst -lKCC-eh" -l " -lsrv -lsutil -lusr -lclntsh -lxti -lm "
      CFLAGS -g -D_AIX_SOURCE -Daix=1 -L. -L/home/tuxedo/src/projects/nni/lib -L/home/tuxedo/src/projects/lib -L/home/tuxedo/src/projects/hers/lib -L/home/oracle/product/9.2.0.7/precomp/lib32 -L/home/oracle/product/9.2.0.7/lib32 -L/home/tuxedo/product/Tux6.5/SDK/lib -L/usr/ldap/lib
      /home/tuxedo/product/Tux6.5/SDK/bin/buildserver \
      -s NNIREAD \
      -s NNIREADUPDATE \
      -o NNIREAD \
      -f "nnirdtux.o version.o " \
      -l "-lnni -l3masn -lsutil -lsrv -lserve -lddfun -ltime -ltzdst -lKCC-eh" -l " -lsrv -lsutil -lusr -lclntsh -lxti -lm "
      ld: 0711-224 WARNING: Duplicate symbol: .DayOfWeek
      ld: 0711-224 WARNING: Duplicate symbol: .DayOfYear
      ld: 0711-224 WARNING: Duplicate symbol: .trimspecial
      ld: 0711-224 WARNING: Duplicate symbol: .trimCR
      ld: 0711-224 WARNING: Duplicate symbol: .shiftstring
      ld: 0711-224 WARNING: Duplicate symbol: .rmemcpy
      ld: 0711-224 WARNING: Duplicate symbol: .strset
      ld: 0711-224 WARNING: Duplicate symbol: .trimall
      ld: 0711-224 WARNING: Duplicate symbol: .iMmiSpecialError
      ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
      ld: 0711-317 ERROR: Undefined symbol: ._Znwm
      ld: 0711-317 ERROR: Undefined symbol: .__cxa_allocate_exception
      ld: 0711-317 ERROR: Undefined symbol: ZTVN10_cxxabiv117__class_type_infoE
      ld: 0711-317 ERROR: Undefined symbol: .__cxa_throw
      ld: 0711-317 ERROR: Undefined symbol: ._Unwind_Resume
      ld: 0711-317 ERROR: Undefined symbol: .__cxa_begin_catch
      ld: 0711-317 ERROR: Undefined symbol: .__cxa_end_catch
      ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
      ld: 0711-317 ERROR: Undefined symbol: ._ZdlPv
      ld: 0711-317 ERROR: Undefined symbol: .__cxa_call_unexpected
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSaIcEC1Ev
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSsC1EPKcRKSaIcE
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSaIcED1Ev
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSsC1Ev
      ld: 0711-317 ERROR: Undefined symbol: ._ZNKSs4sizeEv
      ld: 0711-317 ERROR: Undefined symbol: ._ZNKSs6substrEmm
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSsaSERKSs
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSsD1Ev
      ld: 0711-317 ERROR: Undefined symbol: ._ZNKSs5c_strEv
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSsixEm
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSs3endEv
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSt18basic_stringstreamIcSt11char_traitsIcESaIcEEC1ESt13_Ios_Openmode
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSt9basic_iosIcSt11char_traitsIcEE4fillEc
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSs5beginEv
      ld: 0711-317 ERROR: Undefined symbol: ._ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c
      ld: 0711-317 ERROR: Undefined symbol: ._ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
      ld: 0711-317 ERROR: Undefined symbol: ._ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKSbIS4_S5_T1_E
      ld: 0711-317 ERROR: Undefined symbol: ._ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSolsEl
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSolsEi
      ld: 0711-317 ERROR: Undefined symbol: ._ZNKSt18basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSt18basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSsC1ERKSs
      ld: 0711-317 ERROR: Undefined symbol: ._ZNKSs4copyEPcmm
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSsaSEPKc
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSs6appendEPKc
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSs7reserveEm
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSs6appendERKSs
      ld: 0711-317 ERROR: Undefined symbol: ._ZNKSs7_M_iendEv
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSs7replaceEN9__gnu_cxx17__normal_iteratorIPcSsEES2_PKcS4_
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSt8ios_base4InitC1Ev
      ld: 0711-317 ERROR: Undefined symbol: ._ZNSt8ios_base4InitD1Ev
      CMDTUX_CAT:1832: ERROR: can't execute cc -g -D_AIX_SOURCE -Daix=1 -L. -L/home/tuxedo/src/projects/nni/lib -L/home/tuxedo/src/projects/lib -L/home/tuxedo/src/projects/hers/lib -L/home/oracle/product/9.2.0.7/precomp/lib32 -L/home/oracle/product/9.2.0.7/lib32 -L/home/tuxedo/product/Tux6.5/SDK/lib -L/usr/ldap/lib -I$TUXDIR/include -o NNIREAD BS-c60ae.c -L${TUXDIR}/lib nnirdtux.o version.o -ltux -lbuft -ltux2 -lfml -lfml32 -lgp -lnni -l3masn -lsutil -lsrv -lserve -lddfun -ltime -ltzdst -lKCC-eh -lsrv -lsutil -lusr -lclntsh -lxti -lm
      gmake: *** [NNIREAD] Error 8
      tuxedo @ testdev01:/home/tuxedo/src/projects/nni/src/nniread >
        • 1. Re: Tuxedo Service Compile Errors
          Todd Little-Oracle
          Hi Casey,

          Well what you posted below is just the linking step as the inputs to the compiler were .o files. Is there a reason you aren't using the buildserver command? The buildserver command ensures that you get the right flags and libraries passed to the C compiler. Also, which C compiler are you using? Tuxedo only supports the IBM XL C compiler on AIX.

          Regards,
          Todd Little
          Oracle Tuxedo Chief Architect
          • 2. Re: Tuxedo Service Compile Errors
            RedKoolAid
            Todd

            Thanks for taking the time to monitor this forum. I am using the buildserver command. It's a few lines down. The top few lines are echoes from the make file. I want to say yes, i am using xlc compiler. I am using the $CC in the make file and that references cc. When I type cc on the command line it opens the slc man page. From /usr/vac/bin directory.

            Any ideas on if these missing symbols are a tux or I'd lib?

            Thx
            Casey
            • 3. Re: Tuxedo Service Compile Errors
              Todd Little-Oracle
              Hi Casey,

              I'm not sure where you are coming from, i.e., what version of Tuxedo and AIX your application last was built on. My suggestion would be to build from source instead of object files, although maybe you are doing that. Many of the missing symbols appear to be missing C++ libraries, so perhaps you are missing some libraries in your LD_LIBRARY_PATH or buildserver command line?

              Regards,
              Todd Little
              Oracle Tuxedo Chief Architect
              • 4. Re: Tuxedo Service Compile Errors
                RedKoolAid
                Todd,

                I am using the xlc compiler, so that is good. These might have been compiled somewhere AIX 4.3 and AIX 5.3. In my googling, I am seeing this as libstdc++.a - but they are from a freeware package. Do you have a list of required IBM packages that need to be installed? Tuxedo 6.5 docs do not mention any.

                Thanks
                Casey
                • 5. Re: Tuxedo Service Compile Errors
                  RedKoolAid
                  Todd,

                  The SA loaded a package in /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2.

                  If i use `nm -pBC libstdc++.a` - I am able to see that this file has the symbols that the compiler needs. I add this directory to LIBPATH, as the build server doc says LD_LIBRARY_PATH is for COBAL, but I still get the same errors?

                  Any ideas on how to get buildserver to see this .a file to pick up the symbols?

                  Thanks
                  Casey
                  • 6. Re: Tuxedo Service Compile Errors
                    Todd Little-Oracle
                    Hi Casey,

                    That library might work, but I'd be very suspect of it as it is a GCC library. Maybe it will work, but I would look for a library from IBM. When XL C was installed on your system, it should have installed the necessary libraries I believe.

                    Also, LD_LIBARY_PATH is not just for COBOL contrary to what our documentation implies, sigh. It is used by the standard linker. My guess is you just need to set LD_LIBRARY_PATH to the correct directory where the XL C libraries are located.

                    Regards,
                    Todd Little
                    Oracle Tuxedo Chief Architect
                    • 7. Re: Tuxedo Service Compile Errors
                      RedKoolAid
                      Todd,

                      Thanks for your continued help on this issue. Is there a known list of packages that I need to install for IBM AIX 5.3 and xlc?

                      Casey
                      • 8. Re: Tuxedo Service Compile Errors
                        Todd Little-Oracle
                        Hi Casey,

                        I'm not aware of any particular libraries needed other than the standard libraries installed with the xLC compiler. My guess is the only problem is related to environment variables and making sure they point to the location of the xLC installation. IBM should also be able to help you with this.

                        Regards,
                        Todd Little
                        Oracle Tuxedo Chief Architect
                        • 9. Re: Tuxedo Service Compile Errors
                          RedKoolAid
                          Todd,

                          I had my SA open a SR with IBM on this issue. One last question, how do I know if my buildserver is 32bit or 64bit?

                          Thanks for your continured help,
                          Casey
                          • 10. Re: Tuxedo Service Compile Errors
                            Todd Little-Oracle
                            Hi Casey,

                            Well buildserver is part of Tuxedo, so whatever installer you used, i.e., 32 or 64 bit, will be the type of Tuxedo installation. I believe AIX supports the "file" command, so you could use that on the buildserver executable to see if it is a 32 or 64 bit binary.

                            Regards,
                            Todd Little
                            Oracle Tuxedo Chief Architect