[Sybase module] Erich Franz Stocker please read

Dave Cole djc at object-craft.com.au
Wed Dec 19 05:10:41 EST 2001


It looks like our ISP has been added to some sort of SPAM offender
database so I cannot reply via email (bummer)...

[snip]

   ----- The following addresses had permanent fatal errors -----
<Erich.F.Stocker at gsfc.nasa.gov>
    (reason: 550 This network disallowed due to SPAM attempts)

   ----- Transcript of session follows -----
... while talking to funhouse.gsfc.nasa.gov.:
>>> MAIL From:<djc at object-craft.com.au>
<<< 550 This network disallowed due to SPAM attempts
554 5.0.0 Service unavailable

[snip]

> I'm trying to see if I can get your sybase module installed on an
> SGI where all the libraries on built using the SGI n32
> format. Looking at the setup.py module, I'm assuming that that it
> uses gcc whose modules are not usable with an sgi one.

I think that distutils uses the same compiler which was used to build
Python.  I have never looked too deeply into things but I suspect
that it works that way.

> We used the python setup.py install option to put your module in
> place and it did build it successfully (I"m assuming with gcc) and
> installed it in the correct place.
> 
> However, when I run a test script, I get the run error:
> 
> /develop/people/stocker{303}>python sypthon.pl
> Traceback (most recent call last):
>    File "sypthon.pl", line 3, in ?
>      import Sybase
>    File "/usr/local/lib/python2.1/site-packages/Sybase.py", line 7, in ?
>      from sybasect import *
> ImportError: 6550135:python: rld: Fatal Error: unresolvable symbol in
> /usr/local/lib/python2.1/site-packages/sybasect.so: srv__get_xdrrecv
> 
> When I look into sybasect.c I don't even see a direct call to
> srv__get_xdrrecv.

You might need to include some extra libraries in the syb_libs list in
setup.py.  I have not received reports of people using the module on
SGI as yet so you could be the first...

Look in the Sybase documentation and samples to see which libraries
are used to build programs on SGI.  There should be sample/ctlibrary
directory somewhere in your Sybase installation.

> I thought I would try to build the so object with the SGI c compiler
> but you don't have a make file for the c files making up this so.
> Do all the .o just get linked together into the sybasect.so module?

I am fairly sure that the problem is not that obscure.  It looks like
we just have to find out an extra library to place in the syb_libs
variable in setup.py.

- Dave

-- 
http://www.object-craft.com.au



More information about the Python-list mailing list