This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: 3.2 - zlib.pc.in is missing in source tree
Type: compile error Stage:
Components: Build, Extension Modules Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: loewis, srid
Priority: normal Keywords:

Created on 2010-08-28 00:32 by srid, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg115143 - (view) Author: Sridhar Ratnakumar (srid) Date: 2010-08-28 00:32
We, ActiveState, are trying to build Python 3.2 (py3k branch) and get this error:

make: [build_zlib] running 'cd build/pyhg_branches_py3k-linux-x86_64-hgtip32/python/Modules/zlib && CFLAGS="-fPIC" ./configure --prefix=/home/sridharr/as/apy/branches/32a1ssl1/build/pyhg_branches_py3k-linux-x86_64-hgtip32/ExTAcTiVePyThOnPrEfIxExTAcTiVePyThOnPrEfIxExTAcTiVePyThOnPrEfIxExTAcTiVePyThOnPrEfIxExTAcTiVePyThOnPrEfIxExTAcTiVePyThOnPrEfIxExTAcTiVePyThOnPrEfIxExTAcTiVePyThOnPrEfIxExTAcTiVePyThOnPrEfIxExTAcTiVePyThOnPrEfIx && make && make install'
Checking for gcc...
Checking for shared library support...
Tested gcc -w -c -fPIC -fPIC ztest8832.c
Tested gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -fPIC -fPIC -o ztest8832.so ztest8832.o
/usr/bin/ld: cannot open linker script file zlib.map: No such file or directory
collect2: ld returned 1 exit status
No shared library support; try without defining CC and CFLAGS
Building static library libz.a version 1.2.5 with gcc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
cp: cannot stat `zconf.h.in': No such file or directory
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes. 
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
./configure: 596: cannot open zlib.pc.in: No such file
gcc -fPIC -D_LARGEFILE64_SOURCE=1   -c -o example.o example.c
gcc -fPIC -D_LARGEFILE64_SOURCE=1   -c -o adler32.o adler32.c
gcc -fPIC -D_LARGEFILE64_SOURCE=1   -c -o compress.o compress.c
gcc -fPIC -D_LARGEFILE64_SOURCE=1   -c -o crc32.o crc32.c
gcc -fPIC -D_LARGEFILE64_SOURCE=1   -c -o deflate.o deflate.c
make: *** No rule to make target `gzguts.h', needed by `gzclose.o'.  Stop.

Running a ./configure Modules/zlib leads to:

sridharr@whymac:~/code/o/py/py3k/Modules/zlib > ./configure 
Checking for gcc...
Checking for shared library support...
Building shared library libz.1.2.5.dylib with gcc.
Checking for off64_t... No.
Checking for fseeko... Yes.
cp: zconf.h.in: No such file or directory
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
./configure: line 575: zlib.pc.in: No such file or directory

***

Is zlib.pc.in missing by accident?

***

I can run ./configure in Modules/zlib for Python trunk (2.7) though.

Sifting through the changelog, I discovered that this commit must have introduced this bug http://svn.python.org/view/python/branches/py3k/Modules/zlib/configure?r1=56849&r2=83296 

Marin, perhaps you forgot to checkin zlib.pc.in? Have you tried running ./configure (under Modules/zlib) on a OSX or Linux machine?
msg115144 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-08-28 01:08
It certainly builds fine on Linux; I also believe it builds fine on OSX. In either case, it should use the system zlib; the included zlib will be used only on Windows, and on systems that don't have a system zlib.

I certainly didn't include all files from zlib. If you think the specific one is missing, feel free to add it.
msg115145 - (view) Author: Sridhar Ratnakumar (srid) Date: 2010-08-28 01:20
OK - we use Modules/zlib for ActivePython build on all platforms (not just Windows).

When I included the following files from zlib-1.2.5.tar.gz - Modules/zlib builds fine.

gzclose.c  gzguts.h   gzlib.c    gzread.c   gzwrite.c 
zlib.pc.in zlib.map zconf.h.in

We could add these as part of our internal build process, but it would be nice to have these checked into Modules/zlib (I don't have commit access - so I can't add them).
msg115149 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-08-28 07:48
Ok, I have now added these files in r84332.
msg115227 - (view) Author: Sridhar Ratnakumar (srid) Date: 2010-08-30 16:37
On 2010-08-28, at 12:48 AM, Martin v. Löwis wrote:

> 
> Martin v. Löwis <martin@v.loewis.de> added the comment:
> 
> Ok, I have now added these files in r84332.

Thanks!
History
Date User Action Args
2022-04-11 14:57:05adminsetgithub: 53913
2010-08-30 16:37:43sridsetmessages: + msg115227
2010-08-28 07:48:46loewissetstatus: open -> closed
resolution: fixed
messages: + msg115149
2010-08-28 01:20:54sridsetmessages: + msg115145
2010-08-28 01:08:02loewissetmessages: + msg115144
2010-08-28 00:32:12sridcreate