FTBFS due to libpng (and lesser libjpeg)

Bug #811273 reported by Michael Shadle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Invalid
Low
Unassigned

Bug Description

As described here:
http://www.nigeldunn.com/2011/05/14/ubuntu-11-04-libjpeg-so-libpng-so-php-installation-issues/

There is no proper fix yet for libpng - just manually symlinking, which is bad.

For libjpeg, I was able to use the "libjpeg8-dev" package and that resolved it.

I believe this is a multiarch issue, and I am not sure if Ubuntu can provide a fix (perhaps drop a symlink in the right places through libpng-dev?) or push/suggest the right way for PHP to detect the library location.

Tags: ftbfs libpng
Revision history for this message
Michael Shadle (mshadle) wrote :

It might also be fixed by the same approach used here:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/739977

Working configure string (for PHP 5.3.6, but was the same since PHP 5.3.3)

./configure \
--enable-fpm \
--enable-cli \
--enable-inline-optimization \
--disable-rpath \
--disable-ipv6 \
--enable-mbstring \
--enable-mbregex \
--enable-sqlite-utf8 \
--with-gettext \
--enable-intl \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-curl \
--with-zlib \
--with-freetype-dir \
--enable-shmop \
--with-xsl=shared \
--with-mssql=shared \
--enable-soap=shared \
--enable-sockets \
--enable-pcntl=shared \
--with-mcrypt \
--with-bz2 \
--with-tidy \
--with-pcre-dir \
--with-openssl \
--with-pear \
--with-gmp \
--with-jpeg-dir \
--enable-gd-native-ttf \
--enable-exif

Either of these won't work due to PHP trying to locate libpng.so.

--with-gd
--with-png-dir

Revision history for this message
Michael Shadle (mshadle) wrote :

This could be filed under libpng perhaps, as that seems like the place to put a workaround; not sure.

Revision history for this message
Dave Walker (davewalker) wrote :

Thanks for reporting this bug.

Is this issue when trying to build php5 from upstream source, or from the ubuntu source packages?

Thanks.

Changed in php5 (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Michael Shadle (mshadle) wrote :

Building it from source from php.net. Not Ubuntu source packages.

Revision history for this message
Dave Walker (davewalker) wrote :

As this is built from source and not a rebuild of php5 Ubuntu package, i'm going to mark that task Invalid.

Thanks.

Changed in php5 (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Michael Shadle (mshadle) wrote :

I don't consider that correct. It worked fine prior to 11.04.

I consider this a regression, all that needs to be done is add a symlink in the libpng package and a symlink in libjpeg (possibly depending on version used) and PHP is happy.

Revision history for this message
Ondřej Surý (ondrej) wrote :

Michael,

the 5.3.7 should be OK. The upstream has changed the .m4 macros to check just for headers.

O.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.