[mod_python] Can't find symbol

Jesper Hedin jesper.hedin at gmail.com
Wed Dec 8 11:55:07 EST 2004


Hello. I am getting this error when i try to start apache with mod_python:

$ ./apachectl configtest
Syntax error on line 270 of /usr/local/apache2/conf/httpd.conf:
Can't locate API module structure `pyhton_module' in file
/usr/local/apache2/modules/mod_python.so: ld.so.1:
/usr/local/apache2/bin/httpd: fatal: pyhton_module: can't find symbol

I have searched but can not find any sollution to this problem. I hope
someone ut there can help. Here are some details:

Output of `httpd -V:`

   Server version: Apache/2.0.52 
   Server built:   Oct 12 2004 03:56:01 
   Server's Module Magic Number: 20020903:9
   Architecture:   32-bit
   Server compiled with....
    -D APACHE_MPM_DIR="server/mpm/prefork"
    -D APR_HAS_SENDFILE
    -D APR_HAS_MMAP
    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) 
    -D APR_USE_FCNTL_SERIALIZE
    -D APR_USE_PTHREAD_SERIALIZE
    -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
    -D APR_HAS_OTHER_CHILD
    -D AP_HAVE_RELIABLE_PIPED_LOGS
    -D HTTPD_ROOT="/usr/local/apache2"
    -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
    -D DEFAULT_PIDLOG="logs/httpd.pid"
    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
    -D DEFAULT_LOCKFILE="logs/accept.lock"
    -D DEFAULT_ERRORLOG="logs/error_log"
    -D AP_TYPES_CONFIG_FILE="conf/mime.types"
    -D SERVER_CONFIG_FILE="conf/httpd.conf"

output of `/usr/local/bin/python -V`:

   Python 2.3.3

output of `uname -a`:

   SunOS cvs 5.9 Generic_117171-12 sun4u sparc SUNW,Sun-Fire-V210

output of `cat apache/bin/envvars`:

   LD_LIBRARY_PATH=/usr/local/apache2/lib:/usr/lib:/usr/local/lib:/usr/local/lib/sparcv9:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

output of `grep python /usr/local/apache2/conf/httpd.conf `

   LoadModule pyhton_module modules/mod_python.so

My mod_python is configured and make'd with:

   ./configure --with-apxs=/usr/local/apache2/bin/apxs
   make
   make install (as root)

Output of `gcc -v`:

   Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/specs
   Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls
   Thread model: posix 
   gcc version 3.4.2

The apache package was downloaded from sunfreeware.com, I did not
build it myself. Python was built by me with the following commands:

   ./configure
   make
   make test
   make install (as root)

The make test part resulted in the message:
   226 tests OK.
   29 tests skipped:
       test_aepack test_al test_bsddb185 test_bsddb3 test_cd test_cl
       test_curses test_email_codecs test_gl test_imgfile
       test_linuxaudiodev test_locale test_macfs test_macostools test_mpz
       test_nis test_normalization test_ossaudiodev test_pep277
       test_plistlib test_scriptpackages test_socket_ssl
       test_socketserver test_sunaudiodev test_timeout test_unicode_file
       test_urllibnet test_winreg test_winsound
   3 skips unexpected on sunos5:
       test_sunaudiodev test_locale test_nis


I found no way to  `make test` the mod_python, but I saw no alarming
error messages (I would probably not recognise them if I did see
them).

The file ld.so.1 is the standard solaris version.

I guess that's as much as i can provide at the moment. I really hope
there is someone that can make sense out of this. Thanks in advance.


   ...Jesper


More information about the Mod_python mailing list