linking error with CSDK 2.81 and 4GL 7.32
Posted in 2005
Hi, We just upgraded to CSDK2.81 and 4GL 7.32UC2 (RDS version), now one program in our application failed to compile (luckily the rest of the application are OK). The same make file works all fine under ESQL 7.24.UC4 and 4GL RDS 7.20.UD6 Pcode Version 602. The program involves C module (where the main() is), ESQL/C module. Some C module has 4GL interface functions so we use c4glgo to link them. We use "gcc" to compile ".c" modules to produce the ".o" We use "esql" to compile ".ec" modules to produce the ".o". Then we use "cfglgo" to link them: rm -f trn_test ; /mis/dev/utopia/config/informixdir/bin/cfglgo -api trn_test.c fgiusr.o netmgr.o y2k_utils.o b24_utils.o b24_cfg.o com_utils.o crypt_api.o libdes.a ccard_utils.o log_utils.o env_utils.o invoice_utils.o adj_utils.o dtime_utils.o credit_utils.o md5.o trn_server_utils.o ddebit_utils.o crc_util.o proc_utils.o mutils.o -o trn_test -lxnet We got the following error message: Undefined first referenced symbol in file stquit_flag /mis/dev/utopia/config/informixdir/lib/tools/lib4io.a(efsignal.o ) fvaldata /mis/dev/utopia/config/informixdir/lib/tools/lib4io.a(efrstrto.o ) rowtodata /mis/dev/utopia/config/informixdir/lib/esql/libiffgisql.so stint_flag /mis/dev/utopia/config/informixdir/lib/tools/lib4io.a(efsignal.o ) fgi_esqlc_flag /mis/dev/utopia/config/informixdir/lib/esql/libiffgisql.so fdataval /mis/dev/utopia/config/informixdir/lib/tools/lib4io.a(efattr.o) ld: fatal: Symbol referencing errors. No output written to trn_test collect2: ld returned 1 exit status The versions that produced this error: > fglpc -V IBM INFORMIX-4GL Version 7.32.UC2 Pcode Version 732 > esql -V IBM Informix CSDK Version 2.81, IBM Informix-ESQL Version 9.53.UC3 > uname -a SunOS osun9073 5.8 Generic_117350-21 sun4u sparc SUNW,Ultra-80 Any help is appreciated! Regards, Carl Wu