Problems compiling on a Red Hat 7.3 based system

Des Dougan des at DouganConsulting.com
Mon Apr 12 02:20:48 EDT 2004


I'm very interested in using Plone; consequently, I downloaded the
source RPM for Python 2.3.3 and ran the rpm --rebuild process. The
compilation failed with:

checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
error: Bad exit status from /var/tmp/rpm-tmp.44328 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.44328 (%build)


I therefore thought I'd try 2.2.3; however, this also failed:

checking for build directories... done
updating cache ./config.cache
creating ./config.status
creating Makefile.pre
creating Modules/Setup.config
creating pyconfig.h
creating Setup
creating Setup.local
creating Makefile
+ make
gcc -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H  -o Modules/python.o Modules/python.c
In file included from /usr/include/errno.h:36,
                 from Include/Python.h:48,
                 from Modules/python.c:3:
/usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory
make: *** [Modules/python.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.72880 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.72880 (%build)

My server runs Mitel SME Server v6.0, which is a Red Hat 7.3 derivative.
The kernel, and kernel sources, are version 2.4.18-5, and the current
python 2 version is python2-2.2.2-11.7.3.

Am I out of luck on this platform, or is there a straightforward way to
have either of these versions compile cleanly (for example, I'm running
glibc 2.2.5, and I'd rather not try to upgrade to 2.3.x)?

Thanks for any help you can provide.

-- 

Des Dougan





More information about the Python-list mailing list