[DB-SIG] Linux & Informix

Anthony M. Ingraldi A.M.INGRALDI@larc.nasa.gov
Fri, 14 Aug 1998 08:16:52 -0400

At 4:57 PM -0600 8/13/98, Bill Anderson wrote:

>I put informix on my machine at home, and tried the informixdb module,
>it compiled, but threw lines after lines of errors when trying to import
>in the interactive shell for testing. Is this known to *not* work on

I don't know about any Linux-specific problems with informixdb, but it
seems that a common import problem is related to how the module is linked
when you build it.  I had to modify the LIBS definition in the Makefile in
order to get a module that would import successfully.

Old LIBS definition:

LIBS=-lasf -lsql -los -lgen

new definition:

LIBS=-lixsql -lixasf -lixgen -lixos -lixgls -lnsl -lsocket -laio -lm
/usr/local/informix/lib/esql/checkapi.o -lixglx

You may need a slightly different definition of LIBS in your environment.
Typing "esql -libs" at a command prompt should give you the necessary
linking information.

Perhaps the Makefile in the distribution should include the following for
the LIBS definition:

LIBS=`esql -libs`

I don't know if the esql command is available in all Informix
installations, so the above definition may not always work.

  Tony Ingraldi                | e-mail: A.M.INGRALDI@LaRC.NASA.GOV
  NASA Langley Research Center |
  Mail Stop 267                | Phone : (757) 864-3039
  Hampton, VA  23681-2199      | Fax   : (757) 864-7892