简体   繁体   中英

using python 2.3 on ubuntu 10.04

i need to run some old python programs on a ubuntu 10.04 system. it seems, that there are no python 2.3 packages for ubuntu 10.04 available. so i got python 2.3 directly from python.org: http://www.python.org/download/releases/2.3/

but "make" python fails with a buffer overflow.

has anyone suggestions how to get python 2.3 to work on ubuntu 10.04?

This appears to be an old bug in Python 2.3. From here: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/286334

The solution is to run configure with BASECFLAGS=-U_FORTIFY_SOURCE.

./configure BASECFLAGS=-U_FORTIFY_SOURCE

Then run make as you usually would.

You could decompile your python compiled files back to source. That way they will work in any python version up to 2.7+, probably unchanged.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM