[mod_python] relocation error with Apache 1.3 on solaris 8

Marco Vezzoli marco.vezzoli at st.com
Wed Sep 3 08:17:18 EST 2003

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
I googled whitout success for this problem (many ask nobody answer).
Thanks in advance for any help.

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

More information about the Mod_python mailing list