Copterfly / modwsgi

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

mod_wsgi fails to compile on Gentoo X64 #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using python 2.4.4 compiled from source installed as 
/usr/local/bin/python2.4, apache 2.2.4 
installed from portage
2. Downloaded mod_wsgi from 1.0 tag in svn
3. ./configure --with-python=/usr/local/bin/python2.4 --prefix=/usr/local
4. make

What is the expected output? What do you see instead?
mod_wsgi.c:5022: warning: passing argument 1 of 'ap_strstr' discards qualifiers 
from pointer 
target type
mod_wsgi.c:5029: warning: passing argument 1 of 'ap_strstr' discards qualifiers 
from pointer 
target type
mod_wsgi.c:5038: warning: passing argument 1 of 'ap_strstr' discards qualifiers 
from pointer 
target type
/usr/bin/libtool --silent --mode=link x86_64-pc-linux-gnu-gcc -o mod_wsgi.la  
-rpath /usr/
lib64/apache2/modules -module -avoid-version    mod_wsgi.lo 
-L/usr/local/lib/python2.4/
config -lpython2.4 -lpthread -ldl -lutil
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: 
/usr/local/
lib/python2.4/config/libpython2.4.a(node.o): relocation R_X86_64_32 against `a 
local symbol' 
can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/python2.4/config/libpython2.4.a: could not read symbols: Bad 
value
collect2: ld returned 1 exit status
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?
mod_wsgi 1.0 (tagged svn)
apache 2.2.4
python 2.4.4
Gentoo Linux on AMD64, running under Xen:
Linux frodo 2.6.16.29-xen #3 SMP Sun Oct 15 13:15:34 BST 2006 x86_64 Dual-Core 
AMD 
Opteron(tm) Processor 2212 HE AuthenticAMD GNU/Linux

Original issue reported on code.google.com by dan.fairs on 11 Sep 2007 at 5:00

GoogleCodeExporter commented 8 years ago
Sorry - GCC version is 4.1.2

Original comment by dan.fairs on 11 Sep 2007 at 5:04

GoogleCodeExporter commented 8 years ago
See sections 'Mixing 32 Bit And 64 Bit Packages' and 'Lack Of Python Shared 
Library' of:

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

Your static libpython is either 32 bit, or you need to reinstall Python with 
shared
library generation enabled. If Python is already built with shared library, you 
need
to add missing symlink in Python 'config' directory which points at the shared
library. The static and shared libraries must appear next to each other in 
'config'
directory or libtool/ld will not use the shared library.

Original comment by Graham.Dumpleton@gmail.com on 11 Sep 2007 at 8:53

GoogleCodeExporter commented 8 years ago
Also see thread:

  http://groups.google.com/group/modwsgi/browse_frm/thread/f3b9e4a78a0bb21

Original comment by Graham.Dumpleton@gmail.com on 11 Sep 2007 at 10:08

GoogleCodeExporter commented 8 years ago
Presumed that this was addressed existing documentation.

Original comment by Graham.Dumpleton@gmail.com on 17 Sep 2007 at 5:41

GoogleCodeExporter commented 8 years ago
Yes - compiling python with --enable-shared and adding the config symlink to 
the shared object fixed my 
problem. Many thanks.

Original comment by dan.fairs on 17 Sep 2007 at 9:00