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.
'Informix > informix troubleshooting' 카테고리의 다른 글
Userthread flag values in IDS onstat -u output (0) | 2013.03.20 |
---|---|
System Monitor Interface query to find idle time for sessions (0) | 2013.03.20 |
INSUFFICIENT FREE HUGE PAGES ... (0) | 2013.03.08 |
Unloading around table corruption (0) | 2013.03.08 |
Is there an alternate way to install IBM Informix Dynamic Server? (0) | 2013.03.02 |