[Python-Dev] zlib module doesn't build - inflateCopy() not found

Guido van Rossum guido at python.org
Fri May 19 23:31:42 CEST 2006

I'm having trouble getting the zlib module to build (SVN HEAD). The error is:

building 'zlib' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -I. -I/home/guido/projects/python/trunk/./Include
-I../Include -I. -I/usr/local/include
-I/home/guido/projects/python/trunk/linux -c
/home/guido/projects/python/trunk/Modules/zlibmodule.c -o
/home/guido/projects/python/trunk/Modules/zlibmodule.c: In function
/home/guido/projects/python/trunk/Modules/zlibmodule.c:723: warning:
implicit declaration of function `inflateCopy'
gcc -pthread -shared build/temp.linux-i686-2.5/zlibmodule.o
-L/usr/local/lib -lz -o build/lib.linux-i686-2.5/zlib.so
*** WARNING: renaming "zlib" since importing it failed:
build/lib.linux-i686-2.5/zlib.so: undefined symbol: inflateCopy

It seems I have libz 1.1.4. Is this no longer supported?

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list