Problem
I am trying to compile my Informix 4GL application on OpenServer 6.0.0. I have set the path to:
PATH=/osr5/usr/bin:$PATH
export PATHbut when I compile I get the error:
UX:ld: ERROR: cannot open file /u/informix/lib/tools/nettlistub.a for reading: No such file or directory
Cause
The compile script c4gl is not configured correctly to work on OpenServer 6.0.0.
Solution
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"
andTLILIB="/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#127096 "UX:ld: ERROR: lib4gl.a(fglesql.o): cannot link OpenServer object into Intel iABI (UDK ABI) target" 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?