Bug #77876 [Opn->Nab]: PHP linked with system version of libpng
Edit report at https://bugs.php.net/bug.php?id=77876&edit=1
ID: 77876
Updated by: cmb@php.net
Reported by: mrskman at gmail dot com
Summary: PHP linked with system version of libpng
-Status: Open
+Status: Not a bug
Type: Bug
Package: *Compile Issues
Operating System: Linux (Ubuntu 12.04)
PHP Version: 7.1.28
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
PHP 7.1 no longer receives fixes for regular bugs (only security fixes).
Previous Comments:
------------------------------------------------------------------------
[2019-04-11 07:40:35] mrskman at gmail dot com
Description:
------------
It looks like PHP is linking with wrong version of libpng if you use another version using
--with-png-dir and a system version of the library is installed.
I built PHP with --with-png-dir=/opt/httpd/2.4.39/build and during some testing I was getting this
error:
libpng warning: Application was compiled with png.h from libpng-1.6.35
libpng warning: Application is running with png.c from libpng-1.2.46
Segmentation fault (core dumped)
Then I found that PHP was linked with the system version of libpng:
ldd /opt/httpd/2.4.39/build/bin/php7 | grep png
libpng12.so.0 => /usr/lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f38e84fb000)
After removing libpng12-dev from my system I recompiled PHP with the same command and it is OK now:
ldd /opt/httpd/2.4.39/build/bin/php7 | grep png
libpng16.so.16 => /opt/httpd/2.4.39/build/lib/libpng16.so.16 (0x00007f884dd54000)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77876&edit=1
Thread (10 messages)