From: Michał S. <mi...@sa...> - 2011-01-26 00:05:18
|
Dnia 2011-01-25, wto o godzinie 17:46 -0600, Robert Boehne pisze: > This symbol is defined by the ct library from Sybase, in your case > you're replacing that with the freetds version. > So, you may not have linked to freetds properly, or you may just need > to add the directory where your freetds binaries are to > LD_LIBRARY_PATH. I suppose the linking's wrong - libct.so iBs missing: > $ ldd /usr/local/lib/python2.6/dist-packages/python_sybase-0.40pre1-py2.6-linux-i686.egg/sybasect.so > linux-gate.so.1 => (0xffffe000) > libpthread.so.0 => /lib/libpthread.so.0 (0xb8017000) > libc.so.6 => /lib/libc.so.6 (0xb7ed1000) > /lib/ld-linux.so.2 (0xb8053000) But that suggests it's a problem in setup.py, no? here's a log from build_ext: > $ python setup.py build_ext -DHAVE_FREETDS > running build_ext > building 'sybasect' extension > creating build > creating build/temp.linux-i686-2.6 > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c blk.c -o build/temp.linux-i686-2.6/blk.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c databuf.c -o build/temp.linux-i686-2.6/databuf.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c cmd.c -o build/temp.linux-i686-2.6/cmd.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c conn.c -o build/temp.linux-i686-2.6/conn.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c ctx.c -o build/temp.linux-i686-2.6/ctx.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c datafmt.c -o build/temp.linux-i686-2.6/datafmt.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c iodesc.c -o build/temp.linux-i686-2.6/iodesc.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c locale.c -o build/temp.linux-i686-2.6/locale.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c msgs.c -o build/temp.linux-i686-2.6/msgs.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c numeric.c -o build/temp.linux-i686-2.6/numeric.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c money.c -o build/temp.linux-i686-2.6/money.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c datetime.c -o build/temp.linux-i686-2.6/datetime.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c date.c -o build/temp.linux-i686-2.6/date.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DWANT_BULKCOPY -DHAVE_DATETIME -DHAVE_DECIMAL -DHAVE_FREETDS=1 -I/opt/sybase/SYBSsa9/include -I/usr/include/python2.6 -c sybasect.c -o build/temp.linux-i686-2.6/sybasect.o > creating build/lib.linux-i686-2.6 > gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.6/blk.o build/temp.linux-i686-2.6/databuf.o build/temp.linux-i686-2.6/cmd.o build/temp.linux-i686-2.6/conn.o build/temp.linux-i686-2.6/ctx.o build/temp.linux-i686-2.6/datafmt.o build/temp.linux-i686-2.6/iodesc.o build/temp.linux-i686-2.6/locale.o build/temp.linux-i686-2.6/msgs.o build/temp.linux-i686-2.6/numeric.o build/temp.linux-i686-2.6/money.o build/temp.linux-i686-2.6/datetime.o build/temp.linux-i686-2.6/date.o build/temp.linux-i686-2.6/sybasect.o -L/opt/sybase/SYBSsa9/lib -o build/lib.linux-i686-2.6/sybasect.so Or maybe it's Debian's fault for mixing stuff up into /usr/lib/pyshared etc.? -- Michał Sawicz <mi...@sa...> |