jvandal / modwsgi

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

Error running Make on Sun #122

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  ./configure --with-apxs=/usr/local/apache_2.2.4/bin/apxs --with-
python=/opt/loca
l/src/Python-2.5.1/python
2.make 
3.

What is the expected output? What do you see instead?
 export PATH=/opt/local/src/Python-2.5.1/include:$PATH
root@riker:/opt/local/src/mod_wsgi-2.3 93 ./configure --with-
apxs=/usr/local/apache_2.2.4/bin/apxs --with-python=/opt/local
/src/Python-2.5.1/python 
checking Apache version... 2.2.4
configure: creating ./config.status
config.status: creating Makefile
root@riker:/opt/local/src/mod_wsgi-2.3 94 make
/usr/local/apache_2.2.4/bin/apxs -c -I/usr/local/include/python2.5 -DNDEBUG   
mod_wsgi.c -L/usr/local/lib/python2.5/config -lpython2.5 -lresolv -lsocket 
-lnsl -lrt -ldl
/usr/local/apr/build-1/libtool --silent --mode=compile gcc -prefer-pic   -
DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -
g -O2 -pthreads -I/usr/local/apache_2.2.4/include  -
I/usr/local/apr/include/apr-1   -I/usr/local/apr/include/apr-1 -
I/opt/local/openldap/include/ -I/usr/local/include -
I/usr/local/include/python2.5 -DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c && 
touch mod_wsgi.slo
mod_wsgi.c:113:20: Python.h: No such file or directory
mod_wsgi.c:114:21: compile.h: No such file or directory
mod_wsgi.c:115:18: node.h: No such file or directory
mod_wsgi.c:116:20: osdefs.h: No such file or directory
mod_wsgi.c:119:2: #error Sorry, mod_wsgi requires at least Python 2.3.0.
mod_wsgi.c:123:2: #error Sorry, mod_wsgi requires that Python supporting 
thread.
mod_wsgi.c:140: error: parse error before "Auth_Type"
mod_wsgi.c:140: warning: data definition has no type or storage class
mod_wsgi.c:1006: error: parse error before "Dispatch_Type"
mod_wsgi.c:1006: warning: data definition has no type or storage class
mod_wsgi.c:1009: error: parse error before "PyObject_HEAD"
mod_wsgi.c:1009: warning: no semicolon at end of struct or union
mod_wsgi.c:1014: error: parse error before '}' token
mod_wsgi.c:1014: warning: data definition has no type or stor

What version of the product are you using? On what operating system?

Python 2.5.1
mod_wsgi 2.3
gcc -dumpversion 3.3.2
LD_LIBRARY_PATH=/usr/local/lib:/opt/local/src/Python-2.5.1
LD_RUN_PATH=/opt/local/src/Python-2.5.1

Please provide any additional information below.

Original issue reported on code.google.com by thrillspots@gmail.com on 7 Jan 2009 at 4:10

GoogleCodeExporter commented 8 years ago
You only have Python runtime installed and not full development package. There 
are supposed to be Python 
header files in /usr/local/include/python2.5, but above suggests there aren't. 
Install a full copy of Python.

Original comment by Graham.Dumpleton@gmail.com on 7 Jan 2009 at 7:52

GoogleCodeExporter commented 8 years ago
Actually, your whole Python package possibly appears to be a bit messed up. You 
are saying:

  --with-python=/opt/local/src/Python-2.5.1/python

Is '/opt/local/src/Python-2.5.1/python' actually a binary. If it is it has been 
moved into non traditional location 
relative to where its lib directories probably are, this would mess things up a 
bit. This is possibly why it then seems 
to think it is actually installed under /usr/local instead.

If it is not a binary, and is a symlink, where does the symlink point?

Did you compile this Python installation yourself?

Original comment by Graham.Dumpleton@gmail.com on 7 Jan 2009 at 7:59

GoogleCodeExporter commented 8 years ago
Appeared to be an environment issue and not a mod_wsgi issue.

Original comment by Graham.Dumpleton@gmail.com on 6 Feb 2009 at 7:46