Message29175
Using Misc/RPM/python-2.5.spec, Python 2.5b2 fails to
compile into an RPM on my machine (SuSE 10.1, AMD64,
gcc 4.1). Unlike with b1, I get loads of errors saying:
"ld: cannot find -lpython2.5"
The funny thing is that it continues to build and only
fails at the end when collecting the files for the RPM.
I use
configure --enable-shared --enable-unicode=ucs4 \
--enable-ipv6 --with-pymalloc --prefix=/usr \
--libdir=/usr/lib64
The shared library is correctly built before these
errors come up. The error appear on the "sharedmods"
target. I also tried setting LD_LIBRARY_PATH by hand,
although the build script sets it before starting to
build the modules - no help.
What *does* help is adding "-L." to the LDFLAGS in
Makefile.pre.in:
sed -e '/DIR=.*lib$/ s|/lib$|/%{libdirname}| ; \
/LDFLAGS/ s|LDFLAGS=|LDFLAGS= -L. |' \
./Makefile.pre.in.old >Makefile.pre.in
The "DIR=" is for an x86_64 bug that installs Python to
the wrong directory (/usr/lib instead of /usr/lib64).
I tried building Py2.5 by hand (configure/make) and
that also works nicely.
I attached a patch that fixes the problems I encountered.
|
|
Date |
User |
Action |
Args |
2007-08-23 14:41:21 | admin | link | issue1522046 messages |
2007-08-23 14:41:21 | admin | create | |
|