My initial thoughts were wrong. It was not due to the -ppc flags. It was due to the Xcode 4 being installed. Must be an issue with compiling with llvm instead of gcc. I was able to make and make install successfully after removing xcode 4 and installing xcode 3.
On Jun 18, 11:30 pm, Stephen Tierney <[email protected]> wrote: > I'm trying to compile mod_wsgi for an XAMPP installation of Apache. > I'm getting some strange errors upon making the files. I suspect it > might be something to with the fact that it's trying to use "-arch > ppc". Any help would be appreciated. I couldn't find any similar > articles online. The terminal output is below. > > Steves-MacBook-Pro:mod_wsgi-3.3 steve$ ./configure --with-apxs=/ > Applications/XAMPP/xamppfiles/bin/apxs > > checking Apache version... 2.2.14 > checking for python... /usr/bin/python > configure: creating ./config.status > config.status: creating Makefile > > Steves-MacBook-Pro:mod_wsgi-3.3 steve$ make > > /Applications/XAMPP/xamppfiles/bin/apxs -c -I/System/Library/ > Frameworks/Python.framework/Versions/2.6/include/python2.6 -DNDEBUG - > DENABLE_DTRACE -Wc,'-arch i386' -Wc,'-arch ppc' mod_wsgi.c -Wl,-F/ > System/Library/Frameworks -framework Python -u _PyMac_Error /System/ > Library/Frameworks/ -arch i386 -arch ppc -ldl > /Applications/XAMPP/xamppfiles/build/libtool --silent --mode=compile > gcc -prefer-pic -I/Applications/XAMPP/xamppfiles/include -L/ > Applications/XAMPP/xamppfiles/lib -mmacosx-version-min=10.4 -arch i386 > -arch ppc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/ > Applications/XAMPP/xamppfiles/include -I/Applications/XAMPP/ > xamppfiles/include -I/Applications/XAMPP/xamppfiles/include -I/ > Applications/XAMPP/xamppfiles/include -arch i386 -arch ppc -I/System/ > Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 - > DNDEBUG -DENABLE_DTRACE -c -o mod_wsgi.lo mod_wsgi.c && touch > mod_wsgi.slo > llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/ > powerpc-apple-darwin10-llvm-gcc-4.2': execvp: No such file or > directory > lipo: can't figure out the architecture type of: /var/folders/Eg/ > EgYRrUNtGNWU9BJhMYk8bE+++TI/-Tmp-//ccJGVWxE.out > apxs:Error: Command failed with rc=65536 > . > make: *** [mod_wsgi.la] Error 1 -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
