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

Summary: configure check for libpng/libtiff missing -lz
Product: SDL_image Reporter: Christian Walther <cwalther>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.6   
Hardware: PowerPC   
OS: Windows (All)   
Attachments: patch for configure.in

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.