728x90

Problem(Abstract)

Compilation of C-ISAM program fails on AIX 5.x 64-bits

Symptom

When we try to compile a C-Isam program on AIX 5.x 64-bit platform using the following simple compilation command:

$ cc program.c -lisam -o program.o 

We get errors such as:

ld : 0711-317 ERROR : Undefined symbol : .isclose 
ld : 0711-317 ERROR : Undefined symbol : .isrewrite 
ld : 0711-317 ERROR : Undefined symbol : iserrno 
ld : 0711-317 ERROR : Undefined symbol : .stchar 
ld : 0711-317 ERROR : Undefined symbol : .isread 
ld : 0711-317 ERROR : Undefined symbol : .isopen 
ld : 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

Cause

The compilation command syntax is not correct and requires some additional options.

Environment

Product Name: C-ISAM
Product Version(s): 7.26.FC2
Hardware Vendor: AIX
Operating System: UNIX

Resolving the problem

To avoid the errors you need to use the following syntax at the compilation command line:

$ cc program.c -lisam -L/$INFORMIXDIR/lib -I/$INFORMIXDIR/include -lm -q64 -program.o 

The -q64 option is required to have a successful compilation.

Take note that the -lm option also might be required.

$INFORMIXDIR is the directory where Informix c-isam is installed.

If this don't help please open a support call.



728x90

+ Recent posts