Specifically what includes did you change?

The issue of Apple screwing up the Apache httpd build system configuration
as to location of the developer tools is known, but beyond that it isn't
clear what you are saying is the problem.

One thing I do note is that:

/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7

is wrong if using the Apple supplied Python 2.7.

This leads me to believe you are trying to use a separately installed
Python 2.7 which is under /Library and not /System/Library.

Generally I would recommend staying clear of third party Python
installations for MacOSX unless you have a very good need.

That said, even if you do use a separately installed one, you should not
need to modify the Makefile manually. If you use the --with-python option
when running configure for mod_wsgi it should pick up the include files and
the framework library from the correct location. If it doesn't, then your
third party Python installation is possibly broken, or you have given
--with-python an incorrect argument.

By manually changing the include path, if that is what you did, you have
potentially opened yourself up for problems, as it would still link in the
Python framework library for the Apple one, but using potentially using
header files that do not match. In other words, you would have need to have
changed flags in LDFLAGS as well.

On top of that, you possibly also would have needed to use the
--disable-framework option to configure for mod_wsgi as otherwise for some
people the third party Python framework library still isn't always used
properly and that option forces -L/-l style linking which generally
resolves the problem.

So how about backing up and explaining the problem rather than suggesting a
solution which on face value appears wrong in various ways.

Thanks.

Graham



On 17 March 2013 02:32, Ignace Suy <[email protected]> wrote:

> I build and deployed the mod_wsgi module successfully on a macbook air osx
> 10.8.2, xcode 4.6.1 installed.
>
> I first had to symlink (as described also in another post:
> cd /Applications/Xcode.app/Contents/Developer/Toolchains/
> sudo ln -s XcodeDefault.xctoolchain  OSX10.8.xctoolchain
>
> then modify the generated Makefile with the following includes (should be
> a single line):
> CPPFLAGS
> =-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/apr-1
> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/apache2
> -DNDEBUG
>
> The module builds fine (some warnings),
> The sudo make install runs fine.
> After this the apache config can be done and the 'hello world' example
> works fine.
>
> Hope this helps other people trying to get it done.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
>
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to