Apache Mod-Python - Commented: (MODPYTHON-78) No support for Apache 2.2 yet

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > January 2006 > Commented: (MODPYTHON-78) No support for Apache 2.2 yet





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Commented: (MODPYTHON-78) No support for Apache 2.2 yet
Jim Gallacher (JIRA)

2006-01-31, 6:33 pm

[ http://issues.apache.org/jira/brows...action_12364729 ]

Jim Gallacher commented on MODPYTHON-78:
----------------------------------------

Running mod_python 3.2.6 and earlier with Apache 2.2 fails with the following error:

httpd: Syntax error on line 414 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/mod_python.so into server:
/usr/local/apache2/modules/mod_python.so:
undefined symbol: APR_STATUS_IS_SUCCESS

Apache 2.2 now uses apr 1.x (Apache 2.0 used 0.9x) from which APR_STATUS_IS_SUCCESS.

This was discussed by Greg Stein and Ryan Bloom on the httpd dev mailing list
http://www.mail-archive.com/dev@htt.../msg21757.html.

The macro was eliminated from apr/trunk in revision 65292.

The suggested fix is to replace the APR_STATUS_IS_SUCCESS(s) test with (s == APR_SUCCESS), but there is a possible unresolved Win32 issue that was left hanging. Roughly speaking the relevant lines of code in the old apr_errno.h look like this:

#if defined(OS2) && !defined(DOXYGEN)
#define APR_STATUS_IS_SUCCESS(s) ((s) == APR_SUCCESS \
|| (s) == APR_OS_START_SYSERR + NO_ERROR)

#elif defined(WIN32) && !defined(DOXYGEN) /* !defined(OS2) */
#define APR_STATUS_IS_SUCCESS(s) ((s) == APR_SUCCESS \
|| (s) == APR_OS_START_SYSERR + ERROR_SUCCESS)

#elif defined(NETWARE) && !defined(DOXYGEN) /* !defined(OS2) && !defined(WIN32) */
#define APR_STATUS_IS_SUCCESS(s) ((s) == APR_SUCCESS)

#else /* !defined(NETWARE) && !defined(OS2) && !defined(WIN32) */
#define APR_STATUS_IS_SUCCESS(s) ((s) == APR_SUCCESS)
#endif


> No support for Apache 2.2 yet
> -----------------------------
>
> Key: MODPYTHON-78
> URL: http://issues.apache.org/jira/browse/MODPYTHON-78
> Project: mod_python
> Type: Bug
> Components: core
> Versions: 3.2
> Reporter: Nicolas Lehuen
> Fix For: 3.3


>
> See http://article.gmane.org/gmane.comp...thon.devel/1425 for some remarks by Jorey Bump, raised during the 3.2.1-BETA tests.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com