haroldyong / modwsgi

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

OSX10.9.xctoolchain does not exist #312

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When trying to compile modwsgi on Mavericks (OS X 10.9) I get the following 
error:

$ make
/usr/sbin/apxs -c 
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 
-DENABLE_DTRACE -DMACOSX -DNDEBUG -DNDEBUG -DENABLE_DTRACE  -Wc,-g -Wc,-O2  
-Wc,'-arch x86_64' mod_wsgi.c wsgi_apache.c wsgi_convert.c wsgi_validate.c 
-Wl,-F/System/Library/Frameworks -framework Python -u _PyMac_Error 
/System/Library/Frameworks/  -arch x86_64 -ldl  -framework CoreFoundation  
/usr/share/apr-1/build-1/libtool --silent --mode=compile 
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bi
n/cc    -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include 
-I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1  -g -O2 
-arch x86_64 
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 
-DENABLE_DTRACE -DMACOSX -DNDEBUG -DNDEBUG -DENABLE_DTRACE  -c -o mod_wsgi.lo 
mod_wsgi.c && touch mod_wsgi.slo
env: 
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bi
n/cc: No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1

Original issue reported on code.google.com by t...@sinnerschrader-mobile.com on 25 Nov 2013 at 10:40

GoogleCodeExporter commented 8 years ago
Apple in MacOS X 10.8 and 10.9 breaks the ability to compile Apache modules.

Try going to:

/Applications/Xcode.app/Contents/Developer/Toolchains/

and do:

ln -s XcodeDefault.xctoolchain OSX10.9.xctoolchain

There has been a suggestion that they have broken something related to 
/usr/include in Mac OS X 10.9, but the description of the fix didn't seem right 
so am not sure I believe that one.

Try the above first.

It will need to be fixed every time that Xcode is update.

Original comment by Graham.Dumpleton@gmail.com on 25 Nov 2013 at 10:49

GoogleCodeExporter commented 8 years ago
Thanks for the quick reply, Graham.

I followed your instructions and created this symbolic link:

$ sudo ln -s 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ 
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain

Afterwards, make terminated without errors. However, it did end with a repeated 
warning:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/ranlib: file: .libs/mod_wsgi.a(wsgi_apache.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/ranlib: file: .libs/mod_wsgi.a(wsgi_apache.o) has no symbols

Is this important or can I just ignore this message?

Original comment by t...@sinnerschrader-mobile.com on 25 Nov 2013 at 12:36

GoogleCodeExporter commented 8 years ago
Those warnings can be ignored.

Original comment by Graham.Dumpleton@gmail.com on 25 Nov 2013 at 10:52

GoogleCodeExporter commented 8 years ago
It worked! Thank you!

Original comment by isc.migu...@gmail.com on 30 Jun 2014 at 4:10

GoogleCodeExporter commented 8 years ago
If you use mod_wsgi 4.1+ you shouldn't need to mess with the symlink any more.

So if using an older mod_wsgi 3.X version, upgrade to the new version.

https://github.com/GrahamDumpleton/mod_wsgi/releases

Original comment by Graham.Dumpleton@gmail.com on 30 Jun 2014 at 4:19

GoogleCodeExporter commented 8 years ago
Shouldn't be an issue with more recent mod_wsgi versions, closing.

Original comment by Graham.Dumpleton@gmail.com on 31 Aug 2014 at 2:25