On 27 October 2010 14:09, Tam Tam <[email protected]> wrote: > What steps will reproduce the problem? > 1.download Apache/2.2.17 (Unix),install to '/si/usr/me/sys/apache',and then > run 'bin/httpd -t', it words. > 2.download mod_wsgi-3.3, configure/make/make install, yes, everything is > fine, a so had created: /si/usr/me/sys/apache/modules/mod_wsgi.so'. > 3.append 'LoadModule wsgi_module modules/mod_wsgi.so' to 'conf/httpd.conf', > and then run 'bin/httpd -t', i got error msg follow: > > httpd: Syntax error on line 414 of /si/usr/me/sys/apache2/conf/httpd.conf: > Cannot load /si/usr/me/sys/apache2/modules/mod_wsgi.so into server: > rtld: 0712-001 Symbol ap_cleanup_scoreboard was referenced > from module /si/usr/me/sys/apache2/modules/mod_wsgi.so(), but a > runtime definition > of the symbol was not found. > rtld: 0712-001 Symbol ap_accept_lock_mech was referenced > from module /si/usr/me/sys/apache2/modules/mod_wsgi.so(), but a > runtime definition > of the symbol was not found. > > there are many mod_xxx.so in 'modules/', all of them works well, why > 'mod_wsgi.so' not work? > i had google this for three days, but it seens that i can fix my problems, > can somebody help me? > > aix 5.3.0.0 + gcc 4.2.0 > > $ pwd > /si/usr/me/sys/apache/bin > $ httpd -V > Server version: Apache/2.2.17 (Unix) > Server built: Oct 26 2010 12:11:42 > Server's Module Magic Number: 20051115:25 > Server loaded: APR 1.4.2, APR-Util 1.3.10 > Compiled using: APR 1.4.2, APR-Util 1.3.10 > Architecture: 32-bit > Server MPM: Worker > threaded: yes (fixed thread count) > forked: yes (variable process count) > Server compiled with.... > -D APACHE_MPM_DIR="server/mpm/worker" > -D APR_HAS_SENDFILE > -D APR_HAS_MMAP > -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) > -D APR_USE_SYSVSEM_SERIALIZE > -D APR_USE_PTHREAD_SERIALIZE > -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT > -D APR_HAS_OTHER_CHILD > -D AP_HAVE_RELIABLE_PIPED_LOGS > -D DYNAMIC_MODULE_LIMIT=128 > -D HTTPD_ROOT="/si/usr/me/sys/apache" > -D SUEXEC_BIN="/si/usr/me/sys/apache/bin/suexec" > -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" > -D DEFAULT_ERRORLOG="logs/error_log" > -D AP_TYPES_CONFIG_FILE="conf/mime.types" > -D SERVER_CONFIG_FILE="conf/httpd.conf" > $ httpd -l > Compiled in modules: > core.c > worker.c > http_core.c > mod_so.c
Grep through Apache mpm.h include file from installation area for 'AP_MPM_WANT_SET_ACCEPT_LOCK_MECH'. Eg. $ grep AP_MPM_WANT_SET_ACCEPT_LOCK_MECH /usr/include/apache2/mpm.h #define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH Is it specified in the header file. Run nm on Apache executable to see if symbols defined. $ nm /usr/sbin/httpd | grep ap_accept_lock_mech 000000010004e388 D _ap_accept_lock_mech $ nm /usr/sbin/httpd | grep ap_cleanup_scoreboard 0000000100018149 T _ap_cleanup_scoreboard In mod_wsgi source code, run: make clean make Capture all the output from latter make and post it here. Graham -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
