alihalabyah / modwsgi

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

Building against python 2.6 on Mac doesn't work #264

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried to compile mod_wsgi-3.3 against python 2.6 on Mac OSX but it build the 
module for Python 2.7

I used the follow line to configure:

$ ./configure --with-python=/usr/bin/python2.6
checking for apxs2... no
checking for apxs... /usr/sbin/apxs
checking Apache version... 2.2.21
configure: creating ./config.status
config.status: creating Makefile

and make:

$ make
/usr/sbin/apxs -c 
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 
-DENABLE_DTRACE -DMACOSX -DNDEBUG -DNDEBUG -DENABLE_DTRACE  -Wc,'-arch x86_64' 
-Wc,'-arch i386' mod_wsgi.c -Wl,-F/System/Library/Frameworks -framework Python 
-u _PyMac_Error /System/Library/Frameworks/  -arch x86_64 -arch i386 -ldl  
-framework CoreFoundation  
/usr/share/apr-1/build-1/libtool --silent --mode=compile gcc    -DDARWIN 
-DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include -I/usr/include/apache2  
-I/usr/include/apr-1   -I/usr/include/apr-1  -arch x86_64 -arch i386 
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 
-DENABLE_DTRACE -DMACOSX -DNDEBUG -DNDEBUG -DENABLE_DTRACE  -c -o mod_wsgi.lo 
mod_wsgi.c && touch mod_wsgi.slo
/usr/share/apr-1/build-1/libtool --silent --mode=link gcc -o mod_wsgi.la  
-rpath /usr/libexec/apache2 -module -avoid-version    mod_wsgi.lo 
-Wl,-F/System/Library/Frameworks -framework Python -u _PyMac_Error 
/System/Library/Frameworks/ -arch x86_64 -arch i386 -ldl -framework 
CoreFoundation
warning: no debug symbols in executable (-arch x86_64)
warning: no debug symbols in executable (-arch i386)

Then when I verify the lib it shows it's build for Python 2.7:

$ otool -L .libs/mod_wsgi.so
.libs/mod_wsgi.so:
    /System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.1)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 635.19.0)

Original issue reported on code.google.com by dmmartins on 23 Apr 2012 at 5:22

GoogleCodeExporter commented 9 years ago
Is this MacOS X 10.7 Lion?

Try:

./configure --with-python=/usr/bin/python2.6 --disable-framework

Original comment by Graham.Dumpleton@gmail.com on 23 Apr 2012 at 8:28

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you!
It should be nice to have something about this on MacOSX install guide[1]

[1] http://code.google.com/p/modwsgi/wiki/InstallationOnMacOSX

Original comment by dmmartins on 23 Apr 2012 at 9:42

GoogleCodeExporter commented 9 years ago
Closing as various build issues like this were addressed in subsequent release.

Original comment by Graham.Dumpleton@gmail.com on 16 Sep 2014 at 6:59