Re: informix esql
Posted in 1998
tolga9633@my-dejanews.com wrote: > > Hi Everybody, > > 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 > but compile occurs.this message does not interrupt the compile process. Check with Informix tech support but I believe that you cannot share any function that calls the Informix data conversion library (ie deccomp, etc) because they rely on static memory strings for local data manipulations and this is incompatible with being an object in a shared library. This may have been fixed in the threadable versions after 7.23. Art S. Kagel