[mod_python] Solaris 8 and ld errors

Cherry, Erskin (ACF) (CTR) Erskin.Cherry at ACF.hhs.gov
Tue May 22 08:30:21 EDT 2007

Howdy folks. First off, I'd like to thank you for
helping, or even just being available to help. I
really appreciate it.

That said, I'm having some troubles getting
mod_python going as a DSO with Apache 1.3.31 and
Python 2.5 on a Solaris 8 box.

The configure script is given the location of
apxs and (as was later discovered might help)
specifically told to --enable-libgcc

I'm using gcc 3.4.6 and the Solaris ld.

Everything compiles cleanly and installs, but
after adding only the basic lines to the httpd.conf:

	LoadModule python_module    libexec/mod_python.so

and then: 

	AddModule mod_python.c

and the rest of the modules, things get hairy.

[root at machine mod_python-2.7.11]# /usr/local/apache/bin/apachectl
Syntax error on line 60 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_python.so into server:
ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/mod_python.so: symbol __muldi3: referenced
symbol not found

Some Google work has indicated that this might have something to do with
the differences between GNU ld and the Solaris ld, and the libgcc
library. This was what led me to add the --enable-libgcc configure
option, but that doesn't change the problem.

Other searching suggested that using GNU ld exclusively might fix this,
but I'm less comfortable doing that, since I don't know what things it
might break. I've also considered trying a static module, but would
rather not have to recompile Apache for business control reasons.

I should mention that while I can type ./configure, make, make install
with the best of them, and understand the basic theory behind what ld is
doing, I could very easily be making a basic error here, (such as
needing to pass another flag somewhere) as I know much more in theory
than in practice.

Any ideas?
Erskin L. Cherry - Web Developer
Administration for Children and Families - Office of Administration
Contractor through Encore Management Corporation
202-260-4645 (office) - 808-387-3173 (cellular)

More information about the Mod_python mailing list