Re: Informix esql problem
Posted in 1998
On Wed, 2 Sep 1998 tolga9633@my-dejanews.com wrote: > I have a problem with informix online 7.22 UC1 and esqlc 7.22 UC1 on > SUN 2.5.1 operating system.When i run the programs,(after compiling by > using esqlc compiler with dynamic library option),my program crashes at > some point.(core dump occurs).The program crashes at informix function > calls such deccomp,select etc.(My LD_LIBRARY_PATH is set). > Here, the esql command line string: > > 1. > file name=compnec ( this file first creates object files then copies > them into the lib directory.) > esql -ansi -xopen -c -g -KPIC $1..ec > -I/home/finsoft/unix/include > cp $1.o ../lib > 2. > file name=filelist (this file creates a shared library by the object > files that are created by compnec) > cd ../lib > sh createlib > 3. createlib file: > ld -G -B dynamic file1.o file2.o .......... -o > libfinsoft.so > > During the compile process i have the following messages: > ucbcc: invalid input file name /home/informix/lib/esql/checkapi.o Step 1 - get a decent compiler. The compiler /usr/ucb/cc (aka ucbcc) is not a decent compiler. It is probably adequate to allow you to build GCC, which is free, if you can't or won't afford a SUNWspro compiler. Step 2 - ensure that you always link with the -xopen options; that changes the libraries. If you have some code compiled with -xopen and some code without, then those bits of code disagree on some fundamental issues about the encoding of type information -- disagree fundamentally enough that it is probable that core dumps would occur. > but compile occurs.this message does not interrupt the compile process. > > Can you help me about this matter? Yours, Jonathan Leffler (jleffler@informix.com) #include <witticism.h> Guardian of DBD::Informix v0.60 -- http://www.perl.com/CPAN Informix IDN for D4GL & Linux -- http://www.informix.com/idn