Re: gcc, esqlc, solaris2.3, link problem
Posted in 1994
From: neil%medcom1@mail.swip.net (neil costigan) writes: > When trying link my (first) esqlc application my > ld ( Software Generation Utilities (SGU) SunOS/ELF (LK-1.3)) > > gives the following > make -f testDbMakefile > > esql -g -c -I. -I/opt/informix/incl -DDEBUG db.ec > > cc: /opt/informix/lib/esql/libsql.a: linker input file unused since linking not > done > [...] > gcc -g -DDEBUG -ansi -pedantic -dn -i dbDriver.o db.o -L /opt/informix/lib/esql > -lsql -lgen -los -o dbDriver.x > > ld: fatal: file /opt/informix/lib/esql/libsql.a: unknown type, unable to process > using elf(3E) libraries > [...] > ld: fatal: File processing errors. No output written to dbDriver.x > make: *** [all] > Error 1 > > Informix suggests my problem is using non-standard compiler (gcc) > but i believe the answer lies elsewhere > > what am i doing wrong ?? > > note gcc and cc are one and the same for my system. > > Please reply direct as I'm not sure is my application > for inclusion on the lis is active I have been able to successfully use gcc on Solaris 2.3 with ESQL/C. However, I would check the following. The error about the elf(3E) libraries. I was able to reproduce this error by copying a libsql.a for my Sun OS 4.1.3 system to my Solaris system and linking. So the first question is, Are you using a version of Informix's ESQL/C product that is specificly for Solaris 2.3? Also if you were using a SS/10(actually it has to do with the chip set) system you probably would also get the error: gcc: language cg92 not recongized But since you didn't get this error I won't bother with the work around for that. -- Daniel Wood daniel@starsight.com The opinions expressed herein are those of myself, my employers, the carriers of this news message or any other messages for that matter, you the reader and any of your relations(whether by birth or chromosome count), all life forms and all inanimate objects.