Closed GoogleCodeExporter closed 8 years ago
same thing when using the download version mod_wsgi-2.5
/usr/sbin/apxs -c
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -DNDEBUG
-Wc,'-arch
ppc7400' -Wc,'-arch ppc64' -Wc,'-arch i386' -Wc,'-arch x86_64' mod_wsgi.c -
L/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config -arch
ppc7400 -arch ppc64 -arch i386 -arch
x86_64 -lpython2.5 -ldl
/usr/share/apr-1/build-1/libtool --silent --mode=compile gcc -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -no-
cpp-precomp -I/usr/include/apache2 -I/usr/include/apr-1
-I/usr/include/apr-1 -arch ppc7400 -arch ppc64 -arch i386
-arch x86_64
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -DNDEBUG
-c -o mod_wsgi.lo
mod_wsgi.c && touch mod_wsgi.slo
mod_wsgi.c:34:19: error: httpd.h: No such file or directory
mod_wsgi.c:37:29: error: missing binary operator before token "("
mod_wsgi.c:53: error: parse error before 'apr_pool_t'
... etc
lipo: can't figure out the architecture type of: /var/tmp//ccrHzanC.out
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1
Original comment by crucialf...@gmail.com
on 12 Jul 2009 at 7:15
Have you installed XCode from the MacOS X installation CDs?
What do you get when you run:
which gcc
gcc -v
Since it is trying to use Apple provided Apache and the Apache header files are
missing, looks like you don't
have XCode installed.
Original comment by Graham.Dumpleton@gmail.com
on 12 Jul 2009 at 11:05
Original comment by Graham.Dumpleton@gmail.com
on 12 Jul 2009 at 11:05
sure, I had XCode 2.5. installed XCode 3 now, same situation.
cruxnu:mod_wsgi crucial$ gcc -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /var/tmp/gcc/gcc-5370~2/src/configure --disable-checking
-enable-werror --prefix=/usr --
mandir=/share/man --enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-
4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=powerpc-apple-darwin8 --
with-arch=nocona --with-tune=generic --program-prefix=
--host=i686-apple-darwin8 --target=i686-apple-
darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5370)
I did install apache 2 myself, but just upgraded to Leopard so I guess its
switched to the apple provided one.
cruxnu:mod_wsgi crucial$ locate httpd.h
/Developer/SDKs/MacOSX10.3.9.sdk/usr/include/httpd/httpd.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/httpd/httpd.h
/usr/include/httpd/httpd.h
/usr/local/apache2/include/httpd.h
sudo make
Password:
/usr/sbin/apxs -c
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -DNDEBUG
-Wc,'-
arch ppc7400' -Wc,'-arch ppc64' -Wc,'-arch i386' -Wc,'-arch x86_64' mod_wsgi.c
-Wl,-F/Library/Frameworks -
framework Python -u _PyMac_Error -arch ppc7400 -arch ppc64 -arch i386 -arch
x86_64 -ldl
/usr/share/apr-1/build-1/libtool --silent --mode=compile gcc -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK
-no-cpp-precomp -I/usr/include/apache2 -I/usr/include/apr-1
-I/usr/include/apr-1 -arch ppc7400 -arch
ppc64 -arch i386 -arch x86_64
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -
DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
mod_wsgi.c:34:19: error: httpd.h: No such file or directory
mod_wsgi.c:37:29: error: missing binary operator before token "("
mod_wsgi.c:55: error: parse error before 'apr_pool_t'
mod_wsgi.c:55: warning: data definition has no type or storage class
mod_wsgi.c:57:22: error: ap_ctype.h: No such file or directory
mod_wsgi.c:58:22: error: ap_alloc.h: No such file or directory
mod_wsgi.c:70: error: parse error before 'apr_array_header_t'
mod_wsgi.c:70: warning: data definition has no type or storage class
mod_wsgi.c:71: error: parse error before 'apr_table_t'
mod_wsgi.c:71: warning: data definition has no type or storage class
mod_wsgi.c:72: error: parse error before 'apr_table_entry_t'
....
do you want to see the full dump ? very long, many errors.
in the above command that is run I see this: -I/usr/include/apache2
which does not exist
I have this /usr/local/apache2/include/
thanks Graham !
Original comment by crucialf...@gmail.com
on 13 Jul 2009 at 12:31
In 10.5 (Leopard), you should have:
$ ls -las /usr/include/apache2/
total 1664
0 drwxr-xr-x 98 root wheel 3332 5 Jul 21:52 .
0 drwxr-xr-x 267 root wheel 9078 5 Jul 21:53 ..
8 -rw-r--r-- 1 root wheel 1075 27 Jun 2008 ap_compat.h
24 -rw-r--r-- 1 root wheel 9446 27 Jun 2008 ap_config.h
16 -rw-r--r-- 1 root wheel 6918 27 Jun 2008 ap_config_auto.h
8 -rw-r--r-- 1 root wheel 2888 27 Jun 2008 ap_config_layout.h
16 -rw-r--r-- 1 root wheel 4167 27 Jun 2008 ap_listen.h
16 -rw-r--r-- 1 root wheel 7482 27 Jun 2008 ap_mmn.h
24 -rw-r--r-- 1 root wheel 8287 27 Jun 2008 ap_mpm.h
8 -rw-r--r-- 1 root wheel 3086 27 Jun 2008 ap_provider.h
16 -rw-r--r-- 1 root wheel 5143 27 Jun 2008 ap_regex.h
24 -rw-r--r-- 1 root wheel 9124 27 Jun 2008 ap_regkey.h
8 -rw-r--r-- 1 root wheel 2803 27 Jun 2008 ap_release.h
80 -rw-r--r-- 1 root wheel 40950 27 Jun 2008 http_config.h
16 -rw-r--r-- 1 root wheel 5565 27 Jun 2008 http_connection.h
48 -rw-r--r-- 1 root wheel 22351 27 Jun 2008 http_core.h
32 -rw-r--r-- 1 root wheel 13160 27 Jun 2008 http_log.h
8 -rw-r--r-- 1 root wheel 2481 27 Jun 2008 http_main.h
48 -rw-r--r-- 1 root wheel 23661 27 Jun 2008 http_protocol.h
32 -rw-r--r-- 1 root wheel 14053 27 Jun 2008 http_request.h
8 -rw-r--r-- 1 root wheel 3927 27 Jun 2008 http_vhost.h
128 -rw-r--r-- 1 root wheel 63939 27 Jun 2008 httpd.h
8 -rw-r--r-- 1 root wheel 2436 27 Jun 2008 mod_auth.h
8 -rw-r--r-- 1 root wheel 2672 27 Jun 2008 mod_cgi.h
8 -rw-r--r-- 1 root wheel 3121 27 Jun 2008 mod_core.h
176 -rw-r--r-- 1 root wheel 89997 27 Jun 2008 mod_dav.h
8 -rw-r--r-- 1 root wheel 3720 27 Jun 2008 mod_dbd.h
8 -rw-r--r-- 1 root wheel 3933 27 Jun 2008 mod_include.h
8 -rw-r--r-- 1 root wheel 2492 27 Jun 2008 mod_log_config.h
16 -rw-r--r-- 1 root wheel 6763 27 Jun 2008 mod_perl.h
64 -rw-r--r-- 1 root wheel 29811 27 Jun 2008 mod_proxy.h
8 -rw-r--r-- 1 root wheel 2411 27 Jun 2008 mod_ssl.h
8 -rw-r--r-- 1 root wheel 2441 27 Jun 2008 mod_status.h
8 -rw-r--r-- 1 root wheel 1376 27 Jun 2008 modperl_apache_compat.h
8 -rw-r--r-- 1 root wheel 1117 27 Jun 2008 modperl_apache_includes.h
16 -rw-r--r-- 1 root wheel 4112 27 Jun 2008 modperl_apr_compat.h
8 -rw-r--r-- 1 root wheel 1074 27 Jun 2008 modperl_apr_includes.h
8 -rw-r--r-- 1 root wheel 2297 27 Jun 2008 modperl_apr_perlio.h
8 -rw-r--r-- 1 root wheel 849 27 Jun 2008 modperl_bucket.h
8 -rw-r--r-- 1 root wheel 2731 27 Jun 2008 modperl_callback.h
8 -rw-r--r-- 1 root wheel 1385 27 Jun 2008 modperl_cgi.h
16 -rw-r--r-- 1 root wheel 4930 27 Jun 2008 modperl_cmd.h
8 -rw-r--r-- 1 root wheel 921 27 Jun 2008 modperl_common_includes.h
8 -rw-r--r-- 1 root wheel 1659 27 Jun 2008 modperl_common_log.h
8 -rw-r--r-- 1 root wheel 840 27 Jun 2008 modperl_common_types.h
8 -rw-r--r-- 1 root wheel 2663 27 Jun 2008 modperl_common_util.h
16 -rw-r--r-- 1 root wheel 5769 27 Jun 2008 modperl_config.h
8 -rw-r--r-- 1 root wheel 1055 27 Jun 2008 modperl_const.h
8 -rw-r--r-- 1 root wheel 805 27 Jun 2008 modperl_constants.h
8 -rw-r--r-- 1 root wheel 995 27 Jun 2008 modperl_debug.h
16 -rw-r--r-- 1 root wheel 5674 27 Jun 2008 modperl_directives.h
8 -rw-r--r-- 1 root wheel 1908 27 Jun 2008 modperl_env.h
8 -rw-r--r-- 1 root wheel 1791 27 Jun 2008 modperl_error.h
16 -rw-r--r-- 1 root wheel 4953 27 Jun 2008 modperl_filter.h
48 -rw-r--r-- 1 root wheel 23491 27 Jun 2008 modperl_flags.h
8 -rw-r--r-- 1 root wheel 2773 27 Jun 2008 modperl_global.h
8 -rw-r--r-- 1 root wheel 2448 27 Jun 2008 modperl_gtop.h
8 -rw-r--r-- 1 root wheel 3460 27 Jun 2008 modperl_handler.h
8 -rw-r--r-- 1 root wheel 2691 27 Jun 2008 modperl_hooks.h
8 -rw-r--r-- 1 root wheel 4014 27 Jun 2008 modperl_interp.h
8 -rw-r--r-- 1 root wheel 2541 27 Jun 2008 modperl_io.h
8 -rw-r--r-- 1 root wheel 1750 27 Jun 2008 modperl_io_apache.h
8 -rw-r--r-- 1 root wheel 369 27 Jun 2008 modperl_largefiles.h
8 -rw-r--r-- 1 root wheel 1759 27 Jun 2008 modperl_log.h
8 -rw-r--r-- 1 root wheel 1864 27 Jun 2008 modperl_mgv.h
8 -rw-r--r-- 1 root wheel 1076 27 Jun 2008 modperl_module.h
8 -rw-r--r-- 1 root wheel 1074 27 Jun 2008 modperl_options.h
8 -rw-r--r-- 1 root wheel 2184 27 Jun 2008 modperl_pcw.h
8 -rw-r--r-- 1 root wheel 1440 27 Jun 2008 modperl_perl.h
8 -rw-r--r-- 1 root wheel 2607 27 Jun 2008 modperl_perl_global.h
8 -rw-r--r-- 1 root wheel 4081 27 Jun 2008 modperl_perl_includes.h
8 -rw-r--r-- 1 root wheel 1097 27 Jun 2008 modperl_perl_pp.h
8 -rw-r--r-- 1 root wheel 1166 27 Jun 2008 modperl_perl_unembed.h
8 -rw-r--r-- 1 root wheel 1592 27 Jun 2008 modperl_svptr_table.h
8 -rw-r--r-- 1 root wheel 901 27 Jun 2008 modperl_sys.h
8 -rw-r--r-- 1 root wheel 1456 27 Jun 2008 modperl_time.h
8 -rw-r--r-- 1 root wheel 3238 27 Jun 2008 modperl_tipool.h
16 -rw-r--r-- 1 root wheel 4825 27 Jun 2008 modperl_trace.h
16 -rw-r--r-- 1 root wheel 6907 27 Jun 2008 modperl_types.h
16 -rw-r--r-- 1 root wheel 5525 27 Jun 2008 modperl_util.h
40 -rw-r--r-- 1 root wheel 19495 27 Jun 2008 modperl_xs_sv_convert.h
8 -rw-r--r-- 1 root wheel 2242 27 Jun 2008 modperl_xs_typedefs.h
16 -rw-r--r-- 1 root wheel 6798 27 Jun 2008 modperl_xs_util.h
8 -rw-r--r-- 1 root wheel 2035 27 Jun 2008 mpm.h
32 -rw-r--r-- 1 root wheel 12647 27 Jun 2008 mpm_common.h
8 -rw-r--r-- 1 root wheel 2176 27 Jun 2008 mpm_default.h
8 -rw-r--r-- 1 root wheel 1535 27 Jun 2008 os.h
24 -rw-r--r-- 1 root wheel 8244 27 Jun 2008 scoreboard.h
8 -rw-r--r-- 1 root wheel 3742 27 Jun 2008 unixd.h
8 -rw-r--r-- 1 root wheel 3025 27 Jun 2008 util_cfgtree.h
8 -rw-r--r-- 1 root wheel 1692 27 Jun 2008 util_charset.h
8 -rw-r--r-- 1 root wheel 2310 27 Jun 2008 util_ebcdic.h
48 -rw-r--r-- 1 root wheel 24231 27 Jun 2008 util_filter.h
32 -rw-r--r-- 1 root wheel 14995 27 Jun 2008 util_ldap.h
8 -rw-r--r-- 1 root wheel 2402 27 Jun 2008 util_md5.h
16 -rw-r--r-- 1 root wheel 6045 27 Jun 2008 util_script.h
8 -rw-r--r-- 1 root wheel 3134 27 Jun 2008 util_time.h
8 -rw-r--r-- 1 root wheel 1398 27 Jun 2008 util_xml.h
These are the header files for Apple Apache installation provided with the
operating system. That you don't
have them means something has got screwed up with your system when it was
upgraded. If you have
'/usr/include/httpd', it almost looks like that it didn't replace the existing
Apache 1.3 from Tiger properly, as
that other include directory is from older Apache 1.3 from Tiger.
If you have installed your own Apache anyway, you can ignore this and just make
sure that when you run
'configure' for mod_wsgi, that you point at apxs for your Apache installation.
So, try again with:
make disctlean
./configure --with-apxs=/usr/local/apache2/bin/apxs
make
Original comment by Graham.Dumpleton@gmail.com
on 13 Jul 2009 at 12:38
No further followup or indication by user what final problem was so closing
issue.
Original comment by Graham.Dumpleton@gmail.com
on 18 Nov 2009 at 6:31
Original issue reported on code.google.com by
crucialf...@gmail.com
on 12 Jul 2009 at 7:11