Copterfly / modwsgi

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

Error compiling mod_wsgi 2 on OS X 10.5 with macports python 2.4.4 #68

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ./configure
2. make
3.

What is the expected output? What do you see instead?
/usr/sbin/apxs -c -
I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 
-DNDEBUG 
-Wc,'-arch ppc7400' -Wc,'-arch ppc64' -Wc,'-arch i386' -Wc,'-arch x86_64' 
mod_wsgi.c -arch 
ppc7400 -arch ppc64 -arch i386 -arch x86_64 -Wl,-F/opt/local/Library/Frameworks 
-
framework Python -u _PyMac_Error  -ldl
/usr/share/apr-1/build-1/libtool --silent --mode=compile gcc    -DDARWIN -
DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/usr/include/apache2  -
I/usr/include/apr-1   -I/usr/include/apr-1  -arch ppc7400 -arch ppc64 -arch 
i386 -arch 
x86_64 
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 
-
DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
In file included from 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Py
thon.h:55
,
                 from mod_wsgi.c:112:
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/py
port.h:62
9:2: error: #error "LONG_BIT definition appears wrong for platform (bad 
gcc/glibc config?)."
In file included from 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Py
thon.h:55
,
                 from mod_wsgi.c:112:
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/py
port.h:62
9:2: error: #error "LONG_BIT definition appears wrong for platform (bad 
gcc/glibc config?)."
lipo: can't figure out the architecture type of: /var/folders/DQ/DQ8iYT1BHxes1-
nQvJacO++++TI/-Tmp-//ccwEuHQ7.out
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1

What version of the product are you using? On what operating system?
I'm using mod_wsgi-2.0c4 on OS X 10.5 on ppc with MacPorts python 2.4.4

Please provide any additional information below.

Original issue reported on code.google.com by sasha%th...@gtempaccount.com on 9 Mar 2008 at 8:04

GoogleCodeExporter commented 8 years ago
This would appear to be a problem with MacPorts Python 2.4 and not mod_wsgi. 
Consider asking on MacPorts 
lists.

I'd also suggest you try and build any C extension module for Python against 
that version of Python. Based on 
above it should fail, showing that it is nothing to do with mod_wsgi. If you do 
this and the C extension module 
does compile, then perhaps take the discussion to Google group for mod_wsgi. 
Link for this on mod_wsgi home 
page.

Original comment by Graham.Dumpleton@gmail.com on 9 Mar 2008 at 8:26

GoogleCodeExporter commented 8 years ago
Closing due to no further feedback indicating it was actually a problem with 
mod_wsgi.

Original comment by Graham.Dumpleton@gmail.com on 13 Mar 2008 at 11:14

GoogleCodeExporter commented 8 years ago
I got this on a Macbook Pro (Leopard), and got around it by taking out the non 
i386
references in CFLAG, but then got the 'no suitable image found' error.

Original comment by ala...@gmail.com on 3 Mar 2009 at 12:48

GoogleCodeExporter commented 8 years ago
For all the MacOS X issues see:

  http://code.google.com/p/modwsgi/wiki/InstallationOnMacOSX

Original comment by Graham.Dumpleton@gmail.com on 3 Mar 2009 at 12:52