From: Iwan V. <iw...@re...> - 2008-11-28 07:28:51
|
Hi Sébastien, I am also trying to use python-sybase with freetds. I have applied your patch (at https://sourceforge.net/mailarchive/message.php?msg_name=48FDC4BF.5020802%40users.sourceforge.net ) (This was done by hand, not using patch.) And successfully did a python setup.py install. However, when I import Sybase in a python interpreter, I get the following error: >>> import Sybase Traceback (most recent call last): File "<stdin>", line 1, in <module> File "build/bdist.linux-x86_64/egg/Sybase.py", line 11, in <module> File "build/bdist.linux-x86_64/egg/sybasect.py", line 7, in <module> File "build/bdist.linux-x86_64/egg/sybasect.py", line 6, in __bootstrap__ ImportError: /home/iwan/.python-eggs/python_sybase-0.39-py2.5-linux-x86_64.egg-tmp/sybasect.so: undefined symbol: blk_alloc >> Any ideas? (I'm on Ubuntu Hardy 64 bit, using freetds-dev 0.63-3.2ubuntu1) I compiled it using these commands: sudo apt-get install gcc python2.5-dev freetds-dev Then, as root: export SYBASE=/usr export LD_LIBRARY_PATH=/usr:${LD_LIBRARY_PATH} export CFLAGS="-DHAVE_FREETDS" python setup.py install Thanks -i |