Troubleshooting
Problem
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 | Product Version(s) | Hardware Vendor | Operating System |
C-ISAM | 7.26.FC2 | AIX | 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.
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21246949