[Python-Dev] bz2 module fails to compile on Solaris 8
Fri, 25 Apr 2003 11:27:22 -0500
The bz2 module isn't compiling for me on Solaris 8:
building 'bz2' extension
gcc -g -Wall -Wstrict-prototypes -fPIC -I. -I/export/home/python/dist/src/./Include -I/usr/local/include -I/export/home/python/dist/src/Include -I/export/home/python/dist/src -c /export/home/python/dist/src/Modules/bz2module.c -o build/temp.solaris-2.8-sun4u-2.3/bz2module.o
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
/export/home/python/dist/src/Modules/bz2module.c: In function `Util_CatchBZ2Error':
/export/home/python/dist/src/Modules/bz2module.c:120: `BZ_CONFIG_ERROR' undeclared (first use in this function)
/export/home/python/dist/src/Modules/bz2module.c:120: (Each undeclared identifier is reported only once
This particular machine has a /usr/include/bzlib.h file with a copyright
date of 1998. There are several other BZ_*_ERROR defines, but not
BZ_CONFIG_ERROR. Adding a conditional define for that macro isn't
sufficient to get it to compile. I get lots of "structure has no ..."
Modules/bz2module.c:1521: structure has no member named `total_out_hi32'
Modules/bz2module.c:1521: structure has no member named `total_out_lo32'
Perhaps this version of bz2 lib is too old to use with Gustavo's module?