Problems compiling with FreeTDS current

"hopfgartner" <[email protected]>
Newsgroups gmane.comp.python.sybase
Message-ID <[email protected]>
Dear David,

while trying to look at the issue of strored procedures, I
tried to compile with a current (downloaded today, 28
November) FreeTDS version.

FreeTDS was compiled with:
./configure --prefix=/usr/local/freetds --enable-msdblib
--enable-threadsafe --with-tdsver=8.0

Setting SYBASE:
export SYBASE=/usr/local/freetds

and trying to compile the Python Sybase Connector:
python2.3 setup.py build_ext -D HAVE_FREETDS -U
WANT_BULKCOPY

I get:

bonobo@bonobo:~/devel/sybase-0.36pre1$ python2.3 setup.py
build_ext -D HAVE_FREETDS -U WANT_BULKCOPY
running build_ext
building 'sybasect' extension
creating build
creating build/temp.linux-i686-2.3
gcc-3.2 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-DWANT_BULKCOPY -DHAVE_FREETDS=1 -UWANT_BULKCOPY
-I/usr/local/freetds/include -I/usr/include/python2.3 -c
iodesc.c -o build/temp.linux-i686-2.3/iodesc.o
In file included from sybasect.h:18,
                 from iodesc.c:9:
freetds.h:82:1: warning: "CS_CLEAR" redefined
In file included from sybasect.h:10,
                 from iodesc.c:9:
/usr/local/freetds/include/cspublic.h:417:1: warning: this
is the location of the previous definition
In file included from sybasect.h:18,
                 from iodesc.c:9:
freetds.h:114: conflicting types for `ct_command'
/usr/local/freetds/include/ctpublic.h:43: previous
declaration of `ct_command'
error: command 'gcc-3.2' failed with exit status 1


I will still try with other options and let you know.

Thank you for your attention,

Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.