Red Hat Bugzilla – Bug 54350
rpm-python compilation problems with non-gcc compilers
Last modified: 2008-05-01 11:38:00 EDT
Obviously neither of these affect builds on Red Hat Linux, but it would be
nice to have them fixed.
- none of the C files include config.h. This specifically rpmmodule.c.
- add a #include "system.h" to the top of each C file.
- remove #include <alloca.h> from the top of rpmmodule.c
- PyObject_HEAD should not be followed by a semicolon.
- for i in *module.c; do
mv $i $i.bak
sed "s/PyObject_HEAD;/PyObject_HEAD/g" < $i.bak > $i
Done, changes should be in rpm-4.1-0.23.
Reopen this bug if there are other portability problems.