Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106916 - Please add ~amd64 to dev-python/mod_python-2.7.11
Summary: Please add ~amd64 to dev-python/mod_python-2.7.11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords: TESTED
Depends on:
Blocks:
 
Reported: 2005-09-22 12:47 UTC by Mathieu Malaterre
Modified: 2006-06-28 03:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (mod_python.patch,643 bytes, patch)
2005-09-23 08:41 UTC, Mathieu Malaterre
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Malaterre 2005-09-22 12:47:32 UTC
I cannot get dev-python/mod_python-2.7.11 to build on my amd64 machine. I have
to use apache-1.3, and therefore have to use mod_python-2.7 branch. But it is
not keyworded for amd64. 

The build process is not fine, it require a patch for passing -fPIC:

# ebuild mod_python-2.7.11.ebuild install
...
Compiling for DSO. For static, do "make static"

/usr/sbin/apxs
-I/var/tmp/portage/mod_python-2.7.11/work/mod_python-2.7.11/src/include
-I/usr/include/apache -I/usr/include/python2.3 -c mod_python.o _apachemodule.o
requestobject.o tableobject.o util.o serverobject.o connobject.o  -lm 
/usr/lib/python2.3/config/libpython2.3.a   -lpthread -ldl  -lutil   -lm        
 -L/lib64 -lz
gcc -shared -o mod_python.so mod_python.o _apachemodule.o requestobject.o
tableobject.o util.o serverobject.o connobject.o -lm
/usr/lib/python2.3/config/libpython2.3.a -lpthread -ldl -lutil -lm -L/lib64 -lz
-L/usr/lib -lm -lcrypt -ldb-4.2 -lmm -lexpat -lgdbm -lgdbm_compat -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
mod_python.o: relocation R_X86_64_32 against `a local symbol' can not be used
when making a shared object; recompile with -fPIC
mod_python.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
apxs:Break: Command failed with rc=1
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory
`/var/tmp/portage/mod_python-2.7.11/work/mod_python-2.7.11/src'
make: *** [do_dso] Error 2

!!! ERROR: dev-python/mod_python-2.7.11 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-22 13:42:12 UTC
Uhm? We can't add keywords to something that does not even compile... 
Comment 2 Mathieu Malaterre 2005-09-22 20:27:02 UTC
I was just following this:

There used to be issues with the lack of -fPIC being specified when building
shared objects, the reasoning is in this mailing list post: Porting to Hammer --
scan down to "Shared libraries must be compiled with -fPIC". If you find any
packages that complain about needing -fPIC to run/link properly, please notify
us immediately, as we need to update that package. Please do not specify -fPIC
in your global CFLAGS as that is not an acceptable solution and just a workaround.

http://www.gentoo.org/proj/en/base/amd64/technotes/index.xml?part=1&chap=3#doc_chap9

Please fix this bug, thanks.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-09-22 21:39:33 UTC
Which bug? mod_python-2.7.x is not marked amd64 at all. Reopen if you have a
patch, otherwise this cannot be keyworded amd64 because it does not compile. 
Comment 4 Mathieu Malaterre 2005-09-23 08:40:25 UTC
It was just a matter of adding -fPIC in the CFLAGS, this is done in 3.x branch
of python.

Attaching patch.
Comment 5 Mathieu Malaterre 2005-09-23 08:41:01 UTC
Created attachment 69085 [details, diff]
patch

Attaching patch
Comment 6 Simon Stelling (RETIRED) gentoo-dev 2005-10-04 14:16:21 UTC
we're currently testing a new alias system, sorry for the bugspam
Comment 7 Martin Mokrejš 2006-01-21 09:43:54 UTC
Why don't you try the current mod_python-3.2.5b, actually in few days upcoming 3.2 final release? It works excellent for me on x86, though.
Comment 8 Bryan Østergaard (RETIRED) gentoo-dev 2006-01-21 10:05:04 UTC
(In reply to comment #7)
> Why don't you try the current mod_python-3.2.5b, actually in few days upcoming
> 3.2 final release? It works excellent for me on x86, though.
> 

mod_python-3.x doesn't work with apache-1.3.x.
Comment 9 Martin Mokrejš 2006-01-24 01:51:43 UTC
Try http://www.modpython.org/dist/mod_python-3.2.6.tgz
Comment 10 Michael Weyershäuser 2006-06-26 14:49:24 UTC
Compiles and works fine for me with the proposed patch. Since the package is only building a shared library and no executables simply adding -fPIC to the global CFLAGS seems acceptable to me...
Comment 11 Simon Stelling (RETIRED) gentoo-dev 2006-06-28 03:59:32 UTC
thanks everybody, this is InCVS