Re: Problem with FreeTDS - undefined symbol: cs_dt_info

Hugo Barbosa <[email protected]> Mon, 13 Dec 2004 13:38:19 +0000
Newsgroups gmane.comp.python.sybase
Message-ID <[email protected]>
Sorry, I tried to install again, and now the error is different:

-----------------------
Traceback (most recent call last):
  File "teste.py", line 4, in ?
    import Sybase
  File "/usr/lib/python2.3/site-packages/Sybase.py", line 20, in ?
    from sybasect import *
ImportError: libct.so.2: cannot open shared object file: No such file
or directory
-----------------------

The output for "ldd /usr/lib/python2.3/site-packages/sybasect.so" is:

-----------------------
        libct.so.2 => not found
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00a03000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00374000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00929000)
-----------------------

But the file "libct.so.2" is at "/usr/local/lib/". Here is the output
for "ll /usr/local/lib/libct.so*":

-----------------------
lrwxrwxrwx  1 root root     14 Dez 10 17:20 /usr/local/lib/libct.so ->
libct.so.2.0.0
lrwxrwxrwx  1 root root     14 Dez 10 17:20 /usr/local/lib/libct.so.2
-> libct.so.2.0.0
-rwxr-xr-x  1 root root 792901 Dez 10 17:20 /usr/local/lib/libct.so.2.0.0
-----------------------

Thanks for any help! :)

-- 
Hugo.

---------------------------------------------------------------------------------
"Do rio que tudo arrasta se diz que é violento
 Mas ninguém diz violentas as margens que o oprimem"

                                Bertold Brecht - Sobre a violência
---------------------------------------------------------------------------------

On Mon, 13 Dec 2004 13:08:12 +0000, Hugo Barbosa <[email protected]> wrote:
> Hi there,
> 
> I have just installed FreeTDS and it is working perfectly when I test
> it usign tsql accessing a remote SQL Server 2000. Then I installed the
> python-sybase module. But when I try to test with a python code, it
> returns me an error in the very first command, "import Sybase". The
> error is:
> 
> --------------------------
> Traceback (most recent call last):
>   File "teste.py", line 4, in ?
>     import Sybase
>   File "/usr/lib/python2.3/site-packages/Sybase.py", line 20, in ?
>     from sybasect import *
> ImportError: /usr/lib/python2.3/site-packages/sybasect.so: undefined
> symbol: cs_dt_info
> --------------------------
> 
> The output of the command "ldd /usr/lib/python2.3/site-packages/sybasect.so" is:
> 
> --------------------------
>         libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00f0c000)
>         libc.so.6 => /lib/tls/libc.so.6 (0x00111000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0044a000)
> --------------------------
> 
> Can anybody help me ? Thanks. :)
> 
> --
> Hugo.
> 
> ---------------------------------------------------------------------------------
> "Do rio que tudo arrasta se diz que é violento
>  Mas ninguém diz violentas as margens que o oprimem"
> 
>                                 Bertold Brecht - Sobre a violência
> ---------------------------------------------------------------------------------
>