on running python setup.py build i get
All tests passed, continuing install...
Using existing pyrexc-generated C-code...
running build
running build_py
running build_ext
building 'pygr.cdict' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/python2.4 -c pygr/cdict.c -o build/temp.linux-i686-2.4/pygr/cdict.o
cc1: error: unrecognized command line option "-fstack-protector"
cc1: error: invalid parameter `ssp-buffer-size'
pygr/cdict.c:1: error: bad value (generic) for -mtune= switch
error: command 'gcc' failed with exit status 1
gcc version is gcc version 3.4.2