Bug #77876 [NEW]: PHP linked with system version of libpng
From: mrskman at gmail dot com
Operating system: Linux (Ubuntu 12.04)
PHP version: 7.1.28
Package: *Compile Issues
Bug Type: Bug
Bug description:PHP linked with system version of libpng
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 bug report at https://bugs.php.net/bug.php?id=77876&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77876&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77876&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77876&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77876&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77876&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77876&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77876&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77876&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77876&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77876&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77876&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77876&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77876&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77876&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77876&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77876&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77876&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77876&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77876&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77876&r=mysqlcfg
Thread (10 messages)
- mrskman at gmail dot com