From: iODBC M. <io...@op...> - 2004-08-18 23:05:52
|
HI Prasanna, > > When we build iODBC 3.51.1 using source, it generates > iodbc/.libs/libiodbc.so > and iodbcinst/.libs/libiodbcinst.so. > > But the binary distribution includes only libiodbc.so > -rwxr-xr-x 1 opl_port dba 491296 Oct 6 2003 > odbcsdk/lib/libiodbc.so.2.1.8 > lrwxrwxrwx 1 opl_port dba 0 Oct 6 2003 > odbcsdk/lib/libiodbc.so.2 symbolic link to libiodbc.so.2.1.8 > lrwxrwxrwx 1 opl_port dba 0 Oct 6 2003 > odbcsdk/lib/libiodbc.so symbolic link to libiodbc.so.2.1.8 > > 1. Does the binary distribution combine libiodbcinst functions in > libiodbc.so itself. No it does not. I believe you may have a problem with the version of libtool installed on your machine. There is a libtool script in the main directory of iODBC. Please perform the following command: ./libtool --version and let me know the outcome. You should have at least version 1.4.3. Next you need to capture the complete output of the make install command like this (if you are running with /bin/sh or bash): make 2>&1 | tee make.output If you examine the output you will see that there is a libtool relink command that fails thereby not installing the appropriate libraries into your $PREFIX/lib directory. The latest version of iODBC 3.51.2 has some fixes in the makefile ordering which should help. I suggest you download the latest code from: http://www.iodbc.org/ This archive builds out-of-the box on the Solaris 2.8 machine i have access to. > 2. When we build applications to link with iodbc Driver Manager, should we > link with both libiodbc.so and libiodbcinst.so. > libiodbcinst.so when built from source includes > SQLGetPrivateProfileString routines > that are used from libiodbc.so operations. Yes, as a convenience you can use the iodbc-config program to get the right compiler and linker flags to use in your application: iodbc-config --help gives a list of all the various arguments you can use like: iodbc-config --cflags to get a list of compiler flags iodbc-config --libs to get a list of linker flags Please let me know if this information resolves your problem, otherwise send me the libtool version info and the make.out file and i will have a look at them to see if i can help fix the problem. -- Patrick van Kleef Email : <io...@op...> Maintainer iODBC Web : <http://www.iodbc.com> OpenLink Software Universal Data Access & Data Integration Technology Providers |