Informix Upgrade : Compilation Problems
Posted in 2004
Topics: Installation, Setup & Upgrades, Error Codes & Troubleshooting, Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues, Versions, Editions & End-of-Life
Gurus - We are migrating from IDS 7.20UD2 to 7.32FC2, Solaris 2.6 to Solaris 2.8 64 bit, Sun Workshop C compiler from 5.0 to 5.5, Informix 9.30 to 9.40. I am tryng to recompile the same programs in the new envirnoment. However I come across the following errors in compiling. Has someone faced the same problem before and solved it ? What could be the problem here ? snapshot of the error : ___________________________________ ld: warning: file /apps01/xyz/dev/src/tools/datefun.a(holiday.o): wrong ELF class: ELFCLASS32 Undefined first referenced symbol in file checksum info_pldg.o soundex arbcase.o reverse_ascii /apps01/xyz/dev/src/tools/xyzlib.a(ban ner_help.o) load_holiday_array /apps01/xyz/dev/src/tools/xyzlib.a(crt ools.o) validate_date /apps01/xyz/dev/src/tools/xyzlib.a(val idate.o) ld: fatal: Symbol referencing errors. No output written to case_local *** Error code 1 The following command caused the error: c4gl -O case_local.o info_pldg.o info_legl.o close.o defic.o consol.o notes.o arbcase.o /apps01/xyz/dev/src/tools/xyzlib.a /apps01/xyz/dev/src/tools /datefun.a /apps01/xyz/dev/src/tools/xyzdb.a -o case_local make: Fatal error: Command failed for target `case_local' _________________________ The 'Undefined symbols' in the error message are actually C functions in the library. my LD_LIBRARY_PATH has $INFORMIXDIR/lib, esql, lib/tools, incl/tools, and also /usr/lib. The program obviously compiled well in my previous versions... Don't know whether it is a linking problem . Hopefully I get some help and answers. Thanks a lot in Advance! Bkr
Bkr wrote: > We are migrating from IDS 7.20UD2 to 7.32FC2, Solaris 2.6 to > Solaris 2.8 64 bit, Sun Workshop C compiler from 5.0 to 5.5, > Informix 9.30 to 9.40. I am tryng to recompile the same programs in > the new envirnoment. I assume you mean I4GL (c-code) 7.20.UD2 to 7.32.FC2 - if you meant the former version of IDS, you're years overdue to upgrade, and the second version doesn't exist. And the 9.30 to 9.40 comment supports this hypothesis. > However I come across the following errors in compiling. > Has someone faced the same problem before and solved it ? What could > be the problem here ? > snapshot of the error : > ___________________________________ > ld: warning: file /apps01/xyz/dev/src/tools/datefun.a(holiday.o): > wrong ELF > class: ELFCLASS32 So, at the very least, you need to recompile the holiday.o file in the datefun.a library with the 64-bit flags -- you can't link 32-bit ELF files with 64-bit ELF files. Most likely, you need to rebuild that whole library. > Undefined first referenced > symbol in file > checksum info_pldg.o > soundex arbcase.o > reverse_ascii > /apps01/xyz/dev/src/tools/xyzlib.a(ban > ner_help.o) Dunno about these - they don't look very much like date functions. > load_holiday_array > /apps01/xyz/dev/src/tools/xyzlib.a(crt > ools.o) > validate_date > /apps01/xyz/dev/src/tools/xyzlib.a(val > idate.o) These two do look like date functions. > ld: fatal: Symbol referencing errors. No output written to case_local > *** Error code 1 > The following command caused the error: > c4gl -O case_local.o info_pldg.o info_legl.o close.o defic.o > consol.o notes.o > arbcase.o /apps01/xyz/dev/src/tools/xyzlib.a /apps01/xyz/dev/src/tools > /datefun.a /apps01/xyz/dev/src/tools/xyzdb.a -o case_local > make: Fatal error: Command failed for target `case_local' > _________________________ > > The 'Undefined symbols' in the error message are actually C functions > in the library. Which of the three libraries you list? > my LD_LIBRARY_PATH has $INFORMIXDIR/lib, esql, lib/tools, incl/tools, > and also /usr/lib. > > The program obviously compiled well in my previous versions... > Don't know whether it is a linking problem . Hopefully I get some help > and answers. Looks like 'insufficiently complete recompilation' to me. -- Jonathan Leffler #include <disclaimer.h> Email: jleffler@earthlink.net, jleffler@us.ibm.com Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/