Looks to be an issue with your Apache apxs installation rather than mod_wsgi.
I'll think about it, but not sure right now what to suggest as apxs is
a horrible perl script.
What do you get if you run:
/usr/bin/apxs -q CFLAGS
Ie., does it even run properly.
Also, do you have Sun C compiler installed. Your apxs is set up to
require it. Can't have just gcc.
Graham
If you truly don't have /opt/SUNWspro/bin/cc available, it isn't as
simple as changing stuff in mod_wsgi Makefile. This is because all the
compiler information specific to Sun C compiler is defined within apxs
configuration.
I have had to do it before, so can work, but necessary to copy apxs
script as well as the directory where its configuration is. Then
modify your apxs copy to point at your copy of the configuration. Then
hack on the copy of the configuration to change it to use gcc and
replace any Sun C specific compiler options with gcc equivalents.
I have to run out the door right now, but when get a chance I'll try
and explain the actual changes you need to make.
Graham