Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.2 - zlib.pc.in is missing in source tree #53913

Closed
srid mannequin opened this issue Aug 28, 2010 · 5 comments
Closed

3.2 - zlib.pc.in is missing in source tree #53913

srid mannequin opened this issue Aug 28, 2010 · 5 comments
Labels
build The build process and cross-build extension-modules C modules in the Modules dir

Comments

@srid
Copy link
Mannequin

srid mannequin commented Aug 28, 2010

BPO 9704
Nosy @loewis

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2010-08-28.07:48:46.002>
created_at = <Date 2010-08-28.00:32:12.158>
labels = ['extension-modules', 'build']
title = '3.2 - zlib.pc.in is missing in source tree'
updated_at = <Date 2010-08-30.16:37:43.619>
user = 'https://bugs.python.org/srid'

bugs.python.org fields:

activity = <Date 2010-08-30.16:37:43.619>
actor = 'srid'
assignee = 'none'
closed = True
closed_date = <Date 2010-08-28.07:48:46.002>
closer = 'loewis'
components = ['Build', 'Extension Modules']
creation = <Date 2010-08-28.00:32:12.158>
creator = 'srid'
dependencies = []
files = []
hgrepos = []
issue_num = 9704
keywords = []
message_count = 5.0
messages = ['115143', '115144', '115145', '115149', '115227']
nosy_count = 2.0
nosy_names = ['loewis', 'srid']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue9704'
versions = ['Python 3.2']

@srid
Copy link
Mannequin Author

srid mannequin commented Aug 28, 2010

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?

@srid srid mannequin added build The build process and cross-build extension-modules C modules in the Modules dir labels Aug 28, 2010
@loewis
Copy link
Mannequin

loewis mannequin commented Aug 28, 2010

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.

@srid
Copy link
Mannequin Author

srid mannequin commented Aug 28, 2010

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).

@loewis
Copy link
Mannequin

loewis mannequin commented Aug 28, 2010

Ok, I have now added these files in r84332.

@loewis loewis mannequin closed this as completed Aug 28, 2010
@srid
Copy link
Mannequin Author

srid mannequin commented Aug 30, 2010

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!

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build extension-modules C modules in the Modules dir
Projects
None yet
Development

No branches or pull requests

0 participants