[mod_python] relocation error with Apache 1.3 on solaris 8

john spurling synec at viscous.org
Wed Sep 3 17:21:43 EST 2003


On Wed, Sep 03, 2003 at 08:17:18AM +0200, Marco Vezzoli wrote:
> Hi all,
> I'm evaluating mod_python for our intranet site; we are using
> 
> solaris 8
> gcc 3.0.1
> apache 1.3.19
> python 2.1.1
> mod_python 2.7.8 compiled with DSO 
> 
> Compilation and basic tests run good.
> I use the mod_python.publisher module for deploy but some modules can't
> be imported because there is some name resolution error (messages
> follows).
> I googled whitout success for this problem (many ask nobody answer).
> Thanks in advance for any help.
> 		Marco

Marco,

this isn't a mod_python problem; it's a psycopg/postgresql problem. in
case you're not familiar, psycopg is a python module used to access a
postgresql database.

it looks to me like psycopg was linked against a different version of
libpq than the one that the runtime linker is using, but that's just a
guess.

you can find more information on psycopg on its website:
http://initd.org/software/psycopg

good luck,
john spurling


> -----------------------------------
> Mod_python error: "PythonHandler mod_python.publisher"
> 
> Traceback (most recent call last):
> 
>   File "/usr/local/lib/python2.1/site-packages/mod_python/apache.py",
> line 193, in Dispatch
>     result = object(req)
> 
>   File "/usr/local/lib/python2.1/site-packages/mod_python/publisher.py",
> line 128, in handler
>     module = apache.import_module(module_name, _req, [path])
> 
>   File "/usr/local/lib/python2.1/site-packages/mod_python/apache.py",
> line 335, in import_module
>     module = imp.load_module(mname, f, p, d)
> 
>   File "/hype/cgi-bin/PyDataAnalysis/EWSSearchProcess.py", line 7, in ?
>     import EWS
> 
>   File "/hype/cgi-bin/PyDataAnalysis/EWS.py", line 1, in ?
>     from psycopg import *
> 
> ImportError: ld.so.1: /HTTP-Server/build/apache/bin/httpd: fatal:
> relocation error: file /usr/local/lib/libpq.so.2: symbol main:
> referenced symbol not found
> -----------------------------------
> 
> -- 
> Marco Vezzoli	   tel. +39 039 603 6852
> STMicroelectronics fax. +39 039 603 5055
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.modpython.org/pipermail/mod_python/attachments/20030903/53baa3a5/attachment-0003.bin


More information about the Mod_python mailing list