CLI interface on AIX
Posted in 2000
Topics: Connectivity: ODBC / JDBC / .NET, Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues, Internationalization & Character Sets
I am trying to build a custom database driver on IBM AIX 4.3 based on Informix CLI (NOT esql/c) that utilizes Informix's shared libraries. The problem is that my application terminates abnormally in the database connect. I have tried to use the demo programs that are located in /usr/informix/demo/cli but they do not work properly either. The only thing that does seem to work is to compile a demo program (transact) and link it using the static libraries. If I link using the shared libraries, I get the same behavior as with my application. Here is a call stack of my abnormally terminated application: (I am using Informix SDK V2.40.UC1-2). Incidentally, I can compile and run the same code on Windows NT with no problem at all. GetCSNum(??, ??) at 0xdd7483d4 _OdbcLoadGls(??, ??) at 0x20158dd4 _OdbcConnect(??, ??) at 0x2013a600 _OdbcSqlConnect(??, ??, ??, ??, ??, ??, ??, ??) at 0x20064774 SQLConnect(??, ??, ??, ??, ??, ??, ??) at 0x20065c00 connect(const AsString&,const AsString&,const AsString&,int)(0x20021968, 0x2ff21ab0, 0x2ff21ab8, 0x2ff21ac0, 0x0), line 387 in "dbifcli.cpp" connect__10AsDatabaseFRC12basic_stringXTcT16char_traits_charT9allocatorXTc__ RC12basic_stringXTcT16char_traits_charT9allocatorXTc__RC12basic_stringXTcT16 char_traits_charT9allocatorXTc__(0x2ff21cd0, 0x2ff21c28, 0x2ff21bf8, 0x2ff21c10) at 0xde334614 AsMain__FiPPc(0x4, 0x2ff21e24) at 0x10001854 main(0x4, 0x2ff21e24) at 0x1000101c Please help! Matt
Make sure that the $INFORMIXDIR/lib/cli and $INFORMIXDIR/lib directories are in the LD_LIBRARY_PATH. What does ldd report? If there are unresolved libraries or libraries being picked up from an older $INFORMIXDIR tree then this is the problem. Also be careful NOT to set LD_RUN_PATH since it will set the search path at compile time and you will not be able to install the iConnect (or other runtime) in a different location on the clients. Art S. Kagel Munich wrote: > > I am trying to build a custom database driver on IBM AIX 4.3 based on > Informix CLI (NOT esql/c) that utilizes Informix's shared libraries. The > problem is that my application terminates abnormally in the database > connect. I have tried to use the demo programs that are located in > /usr/informix/demo/cli but they do not work properly either. The only thing > that does seem to work is to compile a demo program (transact) and link it > using the static libraries. If I link using the shared libraries, I get the > same behavior as with my application. Here is a call stack of my abnormally > terminated application: (I am using Informix SDK V2.40.UC1-2). > Incidentally, I can compile and run the same code on Windows NT with no > problem at all. > > GetCSNum(??, ??) at 0xdd7483d4 > _OdbcLoadGls(??, ??) at 0x20158dd4 > _OdbcConnect(??, ??) at 0x2013a600 > _OdbcSqlConnect(??, ??, ??, ??, ??, ??, ??, ??) at 0x20064774 > SQLConnect(??, ??, ??, ??, ??, ??, ??) at 0x20065c00 > connect(const AsString&,const AsString&,const AsString&,int)(0x20021968, > 0x2ff21ab0, 0x2ff21ab8, 0x2ff21ac0, 0x0), line 387 in "dbifcli.cpp" > connect__10AsDatabaseFRC12basic_stringXTcT16char_traits_charT9allocatorXTc__ > RC12basic_stringXTcT16char_traits_charT9allocatorXTc__RC12basic_stringXTcT16 > char_traits_charT9allocatorXTc__(0x2ff21cd0, 0x2ff21c28, 0x2ff21bf8, > 0x2ff21c10) at 0xde334614 > AsMain__FiPPc(0x4, 0x2ff21e24) at 0x10001854 > main(0x4, 0x2ff21e24) at 0x1000101c > > Please help! > > Matt