Problem
I am trying to compile my Informix 4GL application on OpenServer 6.0.0. I have successfully installed the Informix Database, the Informix 4GL but when I run a compile similar to:
c4gl test_prog.4gl -o test_prog.4geI get the errors:UX:ld: ERROR: lib4gl.a(fglesql.o): cannot link OpenServer object into Intel iABI (UDK ABI) target To build using existing OpenServer objects, compile and link using -Kosr option Or to convert to UDK ABI, recompile OpenServer sources with (default) -Kudk option
Cause
Your Informix objects are OpenServer 5 objects. You cannot link OpenServer 5 and OpenServer 6 (SVR5/UDK ABI) objects to create an executable.
Solution
To solve the problem you need to use the OpenServer 5 development tools included with the OpenServer 6 Development System to compile your Informix 4GL application.
So you will need to install the SCO OpenServer 6.0.0 Development System on your server, if it is not already installed, and then set your path as follows:
PATH=/osr5/usr/bin:$PATH
export PATHYou will also need to edit the file:
$INFORMIXDIR/bin/c4glusing your favourite editor and change:SYSNLIB="-lnsl_s -lprot -lsocket -lx -lcurses -lm -lcrypt_i" to SYSNLIB="-lnsl -lprot -lsocket -lx -lcurses -lm -lcrypt_i" and TLILIB="/usr/lib/libnsl_s.a" to TLILIB="/osr5/usr/lib/libnsl.so"
Save the changes and you will now be able to compile your application.
See also
TA#127097 "UX:ld: ERROR: cannot open file /u/informix/lib/tools/nettlistub.a for reading: No such file or directory" TA#127098 "I get UX:ld: ERROR: library not found: -lnsl_s when compiling my Informix application on OpenServer 6.0.0" TA#127099 "I get "internal conversion of COFF file to ELF" messages when compiling my Informix 4GL application on OpenServer 6.0.0" TA#127003 "How can I install a legacy OpenServer 5 Informix Database on my OpenServer 6.0.0 system?" TA#127100 "How can I install the INFORMIX-4GL Version 7.20.UE2 on my OpenServer 6.0.0 system?