architekt1024 / modwsgi

Automatically exported from code.google.com/p/modwsgi
0 stars 0 forks source link

`AP_MAX_REG_MATCH' undeclared #253

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Trying to install mod_wsgi in a Mac OS Server 10.3.9, I got the following 
compilation error:

**********
SERVIDOR:/Users/funhum/Desktop/Software/mod_wsgi-3.3 root# ./configure
checking for apxs2... no
checking for apxs... /usr/sbin/apxs
checking Apache version... 1.3.33
checking for python... /usr/bin/python
configure: creating ./config.status
config.status: creating Makefile
SERVIDOR:/Users/funhum/Desktop/Software/mod_wsgi-3.3 root# vi README 
SERVIDOR:/Users/funhum/Desktop/Software/mod_wsgi-3.3 root# make
/usr/sbin/apxs -c 
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DNDEBUG  
-Wc,'-arch ppc' mod_wsgi.c -Wl,-F/Library/Frameworks -framework Python -u 
_PyMac_Error   -arch ppc -ldl  -framework CoreFoundation  
gcc -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -Os -pipe 
-DHARD_SERVER_LIMIT=2048 -DEAPI -DSHARED_MODULE -I/usr/include/httpd -arch ppc 
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DNDEBUG  
-c mod_wsgi.c
In file included from 
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:81,
                 from mod_wsgi.c:135:
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/objimpl.h:25
8: warning: use of `long double' type; its size may change in a future release
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/objimpl.h:25
8: warning: (Long double usage is reported only once for each file.
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/objimpl.h:25
8: warning: To disable this warning, use -Wno-long-double.)
mod_wsgi.c: In function `wsgi_hook_intercept':
mod_wsgi.c:8021: error: `AP_MAX_REG_MATCH' undeclared (first use in this 
function)
mod_wsgi.c:8021: error: (Each undeclared identifier is reported only once
mod_wsgi.c:8021: error: for each function it appears in.)
apxs:Break: Command failed with rc=1
make: *** [mod_wsgi.so] Error 1
**********

System:
>Apache 1.33
>gcc 3.3
>python 2.7.2
>Mac OS 10.3.9

Trying to install:
>mod_wsgi 3.3

Similar to this [1] unanswered issue.
[1] 
http://markmail.org/message/5twl2zt6sjrz2fbb#query:+page:1+mid:5twl2zt6sjrz2fbb+
state:results

Thank you very much in advance.

Original issue reported on code.google.com by iamthela...@gmail.com on 12 Dec 2011 at 2:44

GoogleCodeExporter commented 8 years ago
You are using too old of an Apache 1.3 version.

The only way around it would be for you to install Apache 2.2 on the system and 
use it instead of the builtin one provided by Apple.

Even then, am not sure whether it will build properly on such an old MacOS X 
version.

Original comment by Graham.Dumpleton@gmail.com on 13 Dec 2011 at 2:20

GoogleCodeExporter commented 8 years ago
Closing on basis that Mac OS X 10.3.9 is too old to worry about at this point. 
If really needed, could perhaps try and older mod_wsgi version.

Original comment by Graham.Dumpleton@gmail.com on 19 Mar 2012 at 10:36