Technical article 127096

UX:ld: ERROR: lib4gl.a(fglesql.o): cannot link OpenServer object into Intel iABI (UDK ABI) target

OpenServer 6.0.0

Written · Last revised

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.4ge
I 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 PATH

You will also need to edit the file:

$INFORMIXDIR/bin/c4gl
using 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?

From the Xinuos technical article database, record 127096. Reproduced with permission. The original is at www.sco.com/ta/127096, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.