[Python-Dev] py2.4 and gcc4

Anthony Baxter anthony at interlink.com.au
Tue Nov 23 14:19:53 CET 2004

Fedora rawhide now ships with a gcc4 preview package - I thought I'd build
current-cvs with it. 

Readline fails to build with 
gcc4 -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC 
-fno-strict-aliasing -I. -I/home/anthony/src/py/pyhead/dist/src/./Include 
-I/usr/local/include -I/home/anthony/src/py/pyhead/dist/src/Include 
-c /home/anthony/src/py/pyhead/dist/src/Modules/readline.c -o 
/home/anthony/src/py/pyhead/dist/src/Modules/readline.c:97: error: static 
declaration of ‘history_length’ follows non-static declaration
/usr/include/readline/history.h:224: error: previous declaration of 
‘history_length’ was here

test_cfgparser causes a segfault, unfortunately. Since this doesn't
occur with any other compilers that I know of (*) I'm inclined to 
blame gcc4, and not bother too much with it further. I'm pretty 
short of time, but if someone wants to spend time figuring out
why, let me know and I'll dump a SF bugreport with the stack
trace &c...


(*) Ok - the HP compiler on HP/UX on Itanium causes segfaults and
random breakages _everywhere_ but that's because of the platform.

More information about the Python-Dev mailing list