[Python-Dev] Unable to build old version from hg.python.org
Vinay Sajip
vinay_sajip at yahoo.co.uk
Mon Mar 7 12:40:04 CET 2011
I want to maintain several working copies, as sometimes I have to make bugfix
changes across several revisions. Since we are supposed to use forward-porting,
I tried to set up a 2.5 clone, but building from it fails with a "Fatal Python
error: subversion keywords missing".
What I did (in ~/projects/python):
hg clone ssh://hg@hg.python.org/cpython default
hg clone default 2.5
cd 2.5
hg update 2.5
./configure
make
Failing command:
-------------------------------------
gcc -pthread -Xlinker -export-dynamic -o python \
Modules/python.o \
libpython2.5.a -lpthread -ldl -lutil -lm
libpython2.5.a(posixmodule.o): In function `posix_tmpnam':
/home/vinay/projects/python/2.5/./Modules/posixmodule.c:6858: warning: the use
of `tmpnam_r' is dangerous, better use `mkstemp'
libpython2.5.a(posixmodule.o): In function `posix_tempnam':
/home/vinay/projects/python/2.5/./Modules/posixmodule.c:6813: warning: the use
of `tempnam' is dangerous, better use `mkstemp'
case $MAKEFLAGS in \
*-s*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g
-fwrapv -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
esac
Fatal Python error: subversion keywords missing
Aborted
-------------------------------------
BTW, this is happening on my Ubuntu Jaunty machine which I have been using for
many months with the Subversion repository.
Am I doing something wrong?
Regards,
Vinay Sajip
More information about the Python-Dev
mailing list