Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 185819

Summary: games-arcade/bub-n-bros does not build with python-2.5
Product: Gentoo Linux Reporter: Santiago M. Mola (RETIRED) <coldwind>
Component: New packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: enhancement CC: metalgod, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 148333    
Attachments: python2.5 compile fix

Description Santiago M. Mola (RETIRED) gentoo-dev 2007-07-19 00:25:09 UTC
f_nlocals, f_ncells, f_nfreevars, f_stack_size and f_restricted are deprecated in Python 2.5.
Those belong to /usr/include/python2.4/frameobject.h

This error happens both on bub-n-bros-1.1 and 1.5.

running build_ext
building 'statesaver' extension
creating build
creating build/temp.linux-i686-2.5
/usr/lib/ccache/bin/gcc -fno-strict-aliasing -march=pentium4 -O2 -pipe -fPIC -I/usr/include/python2.5 -c statesaver.c -o build/temp.linux-i686-2.5/statesaver.o
statesaver.c: En la función ‘genbuild’:
statesaver.c:47: error: ‘PyFrameObject’ no tiene un miembro llamado ‘f_nfreevars’
statesaver.c:47: error: ‘PyFrameObject’ no tiene un miembro llamado ‘f_ncells’
statesaver.c: En la función ‘gencopy’:
statesaver.c:98: error: ‘PyFrameObject’ no tiene un miembro llamado ‘f_stacksize’
statesaver.c:98: error: ‘PyFrameObject’ no tiene un miembro llamado ‘f_stacksize’
statesaver.c: En la función ‘key_richcmp’:
statesaver.c:184: error: ‘PyCmp_EQ’ no se declaró aquí (primer uso en esta función)
statesaver.c:184: error: (Cada identificador no declarado solamente se reporta una vez
statesaver.c:184: error: ara cada funcion en la que aparece.)
error: command '/usr/lib/ccache/bin/gcc' failed with exit status 1
Comment 1 Luis Medinas (RETIRED) gentoo-dev 2007-07-23 03:34:19 UTC
ok i build a patch to fix this issue... aparently it works please give it a try. If it works as expected i'll submit upstream
Comment 2 Luis Medinas (RETIRED) gentoo-dev 2007-07-23 03:35:13 UTC
Created attachment 125717 [details, diff]
python2.5 compile fix
Comment 3 Luis Medinas (RETIRED) gentoo-dev 2007-08-09 04:56:56 UTC
ping on this ? can we get this done ?
Comment 4 Santiago M. Mola (RETIRED) gentoo-dev 2007-08-13 19:14:27 UTC
Fixed, thanks Luis.