Obviously neither of these affect builds on Red Hat Linux, but it would be nice to have them fixed. Problem 1: - none of the C files include config.h. This specifically rpmmodule.c. Solution 1: - add a #include "system.h" to the top of each C file. - remove #include <alloca.h> from the top of rpmmodule.c Problem 2: - PyObject_HEAD should not be followed by a semicolon. Solution 2: - for i in *module.c; do mv $i $i.bak sed "s/PyObject_HEAD;/PyObject_HEAD/g" < $i.bak > $i done
Done, changes should be in rpm-4.1-0.23. Reopen this bug if there are other portability problems.