php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33509 configure fails on detecting libpng
Submitted: 2005-06-29 20:07 UTC Modified: 2005-07-07 01:00 UTC
From: bofh at null-route dot org Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.4.0RC1 OS: Linux 2.6.11
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bofh at null-route dot org
New email:
PHP Version: OS:

 

 [2005-06-29 20:07 UTC] bofh at null-route dot org
Description:
------------
./configure is run with "--with-png-dir=/usr" as an option.

succeeds on:
checking for png_write_image in -lpng... yes

FAILS on:
checking for png_create_info_struct in -lpng... no

Stringing libpng.so and grep'ing for info_struct shows that it exists.
# strings /usr/lib/libpng.so | grep info_struct
png_create_info_struct
png_destroy_info_struct

png.h has the appropriate includes:
# strings /usr/include/png.h | grep [create|destroy]_info_struct
extern PNG_EXPORT(png_infop,png_create_info_struct)
extern PNG_EXPORT(void,png_destroy_info_struct) PNGARG((png_structp png_ptr,

ldconfig verifies that it knows where to find libpng.
# ldconfig -p | grep png
        libpng10.so.0 (libc6) => /usr/lib/libpng10.so.0
        libpng10.so (libc6) => /usr/lib/libpng10.so
        libpng.so.3 (libc6) => /usr/lib/libpng.so.3
        libpng.so (libc6) => /usr/lib/libpng.so

I have tried PHP versions:
4.3.10, 4.3.11, and 4.4.0RC1.
All give the same error.

I have also tried libpng versions:
1.0.17, 1.0.18, 1.2.7 and 1.2.8 with each of the above PHP versions.  Same thing each time.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-29 20:09 UTC] bofh at null-route dot org
Whups, left out the "bail" line:

checking for png_create_info_struct in -lpng... no
configure: error: libpng not found!
 [2005-06-29 20:14 UTC] tony2001@php.net
Put your config.log somewher in the Net and give us the link, plz.
 [2005-07-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Sep 20 07:00:01 2025 UTC