[DB-SIG] Errors building Sybase module.

Alex Rodioukov simuran@shaw.ca
29 Jan 2003 21:16:19 -0700


--=-YYVW+KxgBw9H/VUM7BFy
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi All,

I have a bit of problem compiling python Sybase module on Linux. Here's
the relevant info:

Red Hat 7.3
Python 2.1 (from source)
freetds-current (21122002)
sybase-0.35 and sybase-0.36pre3

freetds build:

$ ./configure --with-tdsver=3D7.0 --prefix=3D/usr/local/freetds
# make && make install


sybase build (both 0.35 and 0.36pre3):

$ export SYBASE=3D/usr/local/freetds=20
# python setup.py build_ext -D WANT_THREADS -D HAVE_FREETDS -U
WANT_BULKCOPY
running build_ext
building 'sybasect' extension
creating build
creating build/temp.linux-i686-2.1
gcc -g -O2 -D_FILE_OFFSET_BITS=3D64 -DHAVE_LARGEFILE_SUPPORT -fPIC
-DWANT_BULKCOPY -DHAVE_FREETDS=3D1 -UWANT_BULKCOPY
-I/usr/local/freetds/include -I/usr/include/python2.1 -c blk.c -o
build/temp.linux-i686-2.1/blk.o
In file included from sybasect.h:18,
                 from blk.c:9:
freetds.h:68: redefinition of `CS_BIT'
/usr/local/freetds/include/cspublic.h:57: `CS_BIT' previously declared
here
freetds.h:69: redefinition of `CS_USHORT'
/usr/local/freetds/include/cspublic.h:56: `CS_USHORT' previously
declared here
freetds.h:70: redefinition of `CS_BINARY'
/usr/local/freetds/include/cspublic.h:55: `CS_BINARY' previously
declared here
freetds.h:71: conflicting types for `CS_LONG'
/usr/local/freetds/include/cspublic.h:54: previous declaration of
`CS_LONG'
freetds.h:72: redefinition of `CS_LONGCHAR'
/usr/local/freetds/include/cspublic.h:53: `CS_LONGCHAR' previously
declared here
freetds.h:73: redefinition of `CS_LONGBINARY'
/usr/local/freetds/include/cspublic.h:52: `CS_LONGBINARY' previously
declared here
freetds.h:74: redefinition of `CS_TEXT'
/usr/local/freetds/include/cspublic.h:51: `CS_TEXT' previously declared
here
freetds.h:75: redefinition of `CS_IMAGE'
/usr/local/freetds/include/cspublic.h:50: `CS_IMAGE' previously declared
here
freetds.h:76: redefinition of `CS_DECIMAL'
/usr/local/freetds/include/cspublic.h:49: `CS_DECIMAL' previously
declared here
freetds.h:112: conflicting types for `ct_command'
/usr/local/freetds/include/ctpublic.h:43: previous declaration of
`ct_command'
error: command 'gcc' failed with exit status 1

If anyone has any clues on why the build traps I'll appreciate your
help. I have a feeling that freetds version might be a bit 'too current'
:) and whoever compiled sybase successfully please let me know against
which snapshot (date) the build was attempted so I might try to get that
version from freetds's CVS.

TIA,
  Alex.

--=-YYVW+KxgBw9H/VUM7BFy
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQA+OKcTtcqPUfyOrDQRAjbpAKCbotjVogl6cG1JsYp77wH7l6V+ZgCg5lja
C0tco5S7yHeNjHlmRIV8j6k=
=sOpO
-----END PGP SIGNATURE-----

--=-YYVW+KxgBw9H/VUM7BFy--