Bug 54350 - rpm-python compilation problems with non-gcc compilers
rpm-python compilation problems with non-gcc compilers
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm-python (Show other bugs)
i386 Linux
low Severity low
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2001-10-04 13:26 EDT by Gary Benson
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-12-09 13:38:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Gary Benson 2001-10-04 13:26:21 EDT
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
Comment 1 Jeff Johnson 2002-06-05 14:40:53 EDT
Done, changes should be in rpm-4.1-0.23.

Reopen this bug if there are other portability problems.

Note You need to log in before you can comment on or make changes to this bug.