Skip to Content.
Sympa Menu

freetds - RE: [freetds] Error: FreeTDS+WINE

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Rainer" <sourceforge AT powered.net>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Error: FreeTDS+WINE
  • Date: Tue, 23 Sep 2003 13:53:01 -0300 (BRT)

...
> This patch should solve the problem. However I don't understand why a
> ODBC3 client should use a ODBC2 only attribute...
>
> I hope the attach will arrive...
>
> freddy77

Freddy,

Thanks for the patch.
After applying it, I get this error during compilation:

gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-I/usr/local/iodbc/include -D_FREETDS_LIBRARY_SOURCE -DIODBC -DMSDBLIB
-D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes
-Wmissing-prototypes -g -O2 -c odbc.c -MT odbc.lo -MD -MP -MF
.deps/odbc.TPlo -fPIC -DPIC -o .libs/odbc.lo
odbc.c: In function `odbc_col_setname':
odbc.c:158: warning: unused variable `resinfo'
odbc.c: In function `_SQLGetStmtAttr':
odbc.c:2924: duplicate case value
odbc.c:2923: previously used here
odbc.c: In function `_SQLSetStmtAttr':
odbc.c:4744: duplicate case value
odbc.c:4743: previously used here
make[3]: ** [odbc.lo] Error 1

Also, regarding the libiodbcinst.so linking issue, the error persists
after the patch you applied to configure.in yesterday... here is what
happens:

/bin/sh ../../libtool --mode=link gcc -g -O2 -L/usr/local/iodbc/lib -o
libtds.la -rpath /usr/local/freetds-iodbc-cvs/lib -version-info 2:0:0
libtds_objects.la -lnsl -liodbcinst ../replacements/libreplacements.la
rm -fr .libs/libtds.la .libs/libtds.* .libs/libtds.*
gcc -shared -Wl,--whole-archive ./.libs/libtds_objects.al
../replacements/.libs/libreplacements.al -Wl,--no-whole-archive
-Wl,--rpath -Wl,/usr/local/iodbc/lib -Wl,--rpath -Wl,/usr/local/iodbc/lib
-L/usr/local/iodbc/lib -lnsl /usr/local/iodbc/lib/libiodbcinst.so
-Wl,-soname -Wl,libtds.so.2 -o .libs/libtds.so.2.0.0

#$ ldd ~/src/cvs/freetds/src/odbc/.libs/libtdsodbc.so.0.0.0
libnsl.so.1 => /lib/libnsl.so.1 (0x40060000)
libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
libdl.so.2 => /lib/libdl.so.2 (0x40076000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Regards,
Rainer





Archive powered by MHonArc 2.6.24.

Top of Page