On Dec 16, 2008, at 1:15 AM, Graham Dumpleton wrote: > > 2008/12/16 Reed O'Brien <[email protected]>: >> On Dec 15, 2008, at 5:59 PM, Graham Dumpleton wrote: >> >> >> Can you try with mod_wsgi source code direct from subversion? >> >> http://code.google.com/p/modwsgi/source/checkout >> >> I was remiss not mentioning that I tried: >> http://modwsgi.googlecode.com/svn/trunk/mod_wsgi >> >> which didn't build an ld error. I don't have the details with me >> but I can >> get them to you tomorrow if you are interested. > > Yes please. :-)
At the bottom of this... > > >> So I switched to: >> http://modwsgi.googlecode.com/svn/branches/mod_wsgi-2.X/ >> >> Which I assume has some things backported. I built it and receive >> the same >> error. > > Haven't back ported that change at this point. I did the tmp_pool ==> pool change you suggested and trumpets blared, angels sang... I need to do some more testing and make extra sure; but it appears to work (works for me™). I just need to make sure it works for others, too. Any chance of a 2.4-release? I would be happy to help with whatever you need: version string prep, tag, bump branch for 2.5 devel, update wiki... If you are short on time... ~ro +++++++++++++++ trunk build failure +++++++++++++++ The platform is RHEL 5.2. I also will need to make sure it builds on a mac but not today. following is output form both a trunk failure and successful 2.4 builds. below is: configure options trunk failure 2.4-branch success patches I am applying to them. configure options for both are: configure-options = CFLAGS="-fPIC -L/usr/lib64 -I${python:location}/include -L$ {python:location}/lib" CXXFLAGS="-L/usr/lib64 -I${python:location}/include -L$ {python:location}/lib" LDFLAGS="-Wl,-L${python:location}/lib -F${python:location} - Wl,-rpath,${python:location}/lib/python2.5/config/" --with-apxs=${apache:location}/bin/apxs --with-python=${python:location}/bin/python this is likely an issue with my LDFLAGS, but I need them to work as such... Not working - Trunk ====================== Installing mod-wsgi. mod-wsgi: Using local source directory: /usr/local/src/stacr/ mod_wsgi_trunk mod-wsgi: Executing pre-configure-hook mod-wsgi: Updated LD_LIBRARY_PATH with: /usr/local/stacr/parts/python/ lib checking Apache version... 2.2.11 configure: creating ./config.status config.status: creating Makefile /usr/local/stacr/parts/apache/bin/apxs -c -I/usr/local/stacr/parts/ python/include/python2.5 -DNDEBUG mod_wsgi.c -Wl,-Wl,-L/usr/local/ stacr/parts/\ python/lib -Wl,-F/usr/local/stacr/parts/python -Wl,-Wl,-rpath,/usr/ local/stacr/parts/python/lib/python2.5/config/ -Wl,-L/usr/local/stacr/ parts/pyth\ on/lib/python2.5/config -Wl,-lpython2.5 -Wl,-lpthread -Wl,-ldl -Wl,- lutil -Wl,-lm /usr/local/stacr/parts/apache/build/libtool --silent --mode=compile gcc -prefer-pic -L/usr/lib64 -I/usr/local/stacr/parts/python/include - L/usr/loc\ al/stacr/parts/python/lib -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE - pthread -I/usr/local/stacr/parts/apache/include -I/usr/local/stacr/ parts/apache/i\ nclude -I/usr/local/stacr/parts/apache/include -I/usr/local/stacr/ parts/openldap/include -I/usr/local/stacr/parts/python/include/ python2.5 -DNDEB\ UG -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo /usr/local/stacr/parts/apache/build/libtool --silent --mode=link gcc - o mod_wsgi.la -rpath /usr/local/stacr/parts/apache/modules -module - avoid-ve\ rsion mod_wsgi.lo -Wl,-Wl,-L/usr/local/stacr/parts/python/lib -Wl,- F/usr/local/stacr/parts/python -Wl,-Wl,-rpath,/usr/local/stacr/parts/ python/l\ ib/python2.5/config/ -Wl,-L/usr/local/stacr/parts/python/lib/python2.5/ config -Wl,-lpython2.5 -Wl,-lpthread -Wl,-ldl -Wl,-lutil -Wl,-lm /usr/bin/ld: unrecognized option '-Wl' /usr/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status apxs:Error: Command failed with rc=65536 . make: *** [mod_wsgi.la] Error 1 mod-wsgi: Error executing command: make mod-wsgi: Compilation error. The package is left as is at /usr/local/ src/stacr/mod_wsgi_trunk where you can inspect what went wrong While: Installing mod-wsgi. Working 2.4-BRANCH ===================== Installing mod-wsgi. mod-wsgi: Using local source directory: /usr/local/src/stacr/mod_wsgi mod-wsgi: Executing pre-configure-hook mod-wsgi: Updated LD_LIBRARY_PATH with: /usr/local/stacr/parts/python/ lib checking Apache version... 2.2.11 configure: creating ./config.status config.status: creating Makefile make: Nothing to be done for `all'. /usr/local/stacr/parts/apache/bin/apxs -i -S LIBEXECDIR=/usr/local/ stacr/parts/apache/modules -n 'mod_wsgi' mod_wsgi.la /usr/local/stacr/parts/apache/build/instdso.sh SH_LIBTOOL='/usr/local/ stacr/parts/apache/build/libtool' mod_wsgi.la /usr/local/stacr/parts/ apache/m\ odules /usr/local/stacr/parts/apache/build/libtool --mode=install cp mod_wsgi.la /usr/local/stacr/parts/apache/modules/ cp .libs/mod_wsgi.so /usr/local/stacr/parts/apache/modules/mod_wsgi.so cp .libs/mod_wsgi.lai /usr/local/stacr/parts/apache/modules/mod_wsgi.la PATH="$PATH:/sbin" ldconfig -n /usr/local/stacr/parts/apache/modules ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/stacr/parts/apache/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- chmod 755 /usr/local/stacr/parts/apache/modules/mod_wsgi.so mod-wsgi: Executing post-make-hook mod-wsgi: Updating ldconfig mod-wsgi: Checking if dynamic libraries are up to date mod-wsgi: dyn load already configured mod-wsgi: Finished with mod_wsgi One last note I run a patch to pass USER_AGENT to the auth hooks: For 2.[3-4]-BRANCH it is like so: --- mod_wsgi.c 2008-03-25 02:38:06 +0000 +++ mod_wsgi.c 2008-03-25 02:50:13 +0000 @@ -10064,6 +10064,10 @@ vars = PyDict_New(); + object = PyString_FromString(apr_table_get(r->headers_in, "User- Agent")); + PyDict_SetItemString(vars, "HTTP_USER_AGENT", object); + Py_DECREF(object); + object = PyString_FromString(ap_psignature("", r)); PyDict_SetItemString(vars, "SERVER_SIGNATURE", object); Py_DECREF(object); for trunk I modified and it is like: Index: mod_wsgi.c =================================================================== --- mod_wsgi.c (revision 1126) +++ mod_wsgi.c (working copy) @@ -11090,6 +11090,14 @@ } #if PY_MAJOR_VERSION >= 3 + object = PyUnicode_FromString(apr_table_get(r->headers_in, "User- Agent")); +#else + object = PyString_FromString(apr_table_get(r->headers_in, "User- Agent")); +#endif + PyDict_SetItemString(vars, "HTTP_USER_AGENT", object); + Py_DECREF(object); + +#if PY_MAJOR_VERSION >= 3 object = PyUnicode_FromString(ap_psignature("", r)); #else object = PyString_FromString(ap_psignature("", r)); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
