We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 541 - configure check for libpng/libtiff missing -lz
Summary: configure check for libpng/libtiff missing -lz
Status: RESOLVED FIXED
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: 1.2.6
Hardware: PowerPC Windows (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-13 07:59 UTC by Christian Walther
Modified: 2009-09-26 01:43 UTC (History)
0 users

See Also:


Attachments
patch for configure.in (851 bytes, patch)
2008-01-13 08:00 UTC, Christian Walther
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Walther 2008-01-13 07:59:42 UTC
I'm trying to build a set of static SDL_* libraries in my Mingw cross-compilation setup on Mac OS X. I have only static (no dynamic) versions of libpng and libtiff installed and configure SDL_image using

cross-configure.sh --prefix=/usr/local/cross-tools/i386-mingw32 --disable-shared --disable-jpg-shared --disable-png-shared --disable-tif-shared

In this invocation, the checks for libpng and libtiff fail (even though the libraries are there, and are found) because of missing symbols from zlib. I can fix this using the attached patch. I assume this shouldn't interfere in the case that dynamic png/tiff libraries are around, but I'm reluctant to try it, and I'm not very familiar with autoconf in general. Perhaps someone who is can advise if this is the right thing to do...
Comment 1 Christian Walther 2008-01-13 08:00:33 UTC
Created attachment 245 [details]
patch for configure.in
Comment 2 Patrice Mandin 2008-12-13 06:51:28 UTC
I also encountered it on a different platform, where the only option is static linking. It fails to find the -lz dependency for libpng and libtiff the same way, and found the same fix :). Would be nice to have it commited.
Comment 3 Sam Lantinga 2009-09-26 01:43:02 UTC
Thanks, this is committed to subversion.