Compiling 4GL on AIX using gcc.
Posted in 2005
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues, Internationalization & Character Sets
Hello all. Our platform is: Informix 4gl Compiled 7.32 for AIX 4.3.3 32 bits, Informix Dynamic Server 7.31UD8, and gcc 2.95. Does anyone have succeded in using gcc instead of AIX C compiler with Informix 4GL? We are able to compile and link the programs, and if we use -static option with c4gl our test program runs fine. However when we do not use -static we end up with a core dump (when we run the executable). Core dump(Illegal option) We set up some gcc specific options on c4gl. The options generated for gcc with static libraries are: -w -fwritable-strings -D_H_LOCALEDEF -DASIAN -DAIX_43 -Dsigflag=ix_os_sigflag -DTERMINFO -DASIAN -I/informix/product/incl/tools -I/informix/product/incl/esql teste4gl.c -L/informix/product/lib /informix/product/lib/tools/lib4gl.a /informix/product/lib/tools/libnforms.a /informix/product/lib/tools/libfe.a -lcurses /informix/product/lib/esql/libifos.a /informix/product/lib/esql/libifgen.a /informix/ product/lib/esql/libifsql.a /informix/product/lib/libifasf.a /informix/product/lib/esql/libifos.a /informix/product/lib/esql/libifgen.a /informix/product/lib/esql/libifgls.a -lc_r -ldl -ltli_r -lm_r /informix/product/lib/esql/libifglx.a and with shared libraries: -w -fwritable-strings -D_H_LOCALEDEF -DASIAN -DAIX_43 -Dsigflag=ix_os_sigflag -DTERMINFO -DASIAN -I/informix/product/incl/tools -I/informix/product/incl/esql teste4gl.c -L/informix/product/lib -L/informix/product/lib/esql -L/informix/product/lib/tools -lifsql -lifasf -lifgen -lifos -lifgls -lc_r -ldl -ltli_r -lm_r /informix/product/lib/esql/checkapi.o -lifglx -l4gsh -lc -lmsaa -lbsd -ldl -lcurses It is clear that there are different libraries on the two versions, but the we can't figure which libs are correct in the shared case. Since IBM does not support gcc on AIX, I'd really want to know if anyone has succeded in this task. Can anyone help me? Thanks in advance. Reinaldo