Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545952 - dev-lang/php-5.6.7 fails to compile with media-libs/libvpx-1.4.0
Summary: dev-lang/php-5.6.7 fails to compile with media-libs/libvpx-1.4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-08 10:34 UTC by Paweł Hajdan, Jr. (RETIRED)
Modified: 2015-05-25 19:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (dev-lang:php-5.6.7:20150408-101810.log.gz,24.97 KB, application/gzip)
2015-04-08 10:34 UTC, Paweł Hajdan, Jr. (RETIRED)
Details
proposed patch (libvpx.patch,959 bytes, patch)
2015-04-10 14:47 UTC, Cănărău Constantin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2015-04-08 10:34:33 UTC
Created attachment 400822 [details]
build.log.gz

/bin/sh /var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/libtool --silent --preserve-dup-deps --mode=compile x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/ext/gd/libgd -DHAVE_LIBPNG -DHAVE_LIBVPX -DHAVE_LIBJPEG -Iext/gd/ -I/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/ext/gd/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/include -I/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/main -I/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli -I/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/ext/date/lib -I/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/ext/ereg/regex -I/usr/include/libxml2 -I/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/ext/mbstring/libmbfl/mbfl -I/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/TSRM -I/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/Zend    -I/usr/include -O2 -march=native -g -pipe  -c /var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/ext/gd/libgd/webpimg.c -o ext/gd/libgd/webpimg.lo
/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/ext/gd/libgd/webpimg.c: In function ‘VPXEncode’:
/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/ext/gd/libgd/webpimg.c:709:24: error: ‘IMG_FMT_I420’ undeclared (first use in this function)
     vpx_img_wrap(&img, IMG_FMT_I420,
                        ^
/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/ext/gd/libgd/webpimg.c:709:24: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/ext/gd/libgd/webpimg.c:711:16: error: ‘PLANE_Y’ undeclared (first use in this function)
     img.planes[PLANE_Y] = (uint8*)(Y);
                ^
/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/ext/gd/libgd/webpimg.c:712:16: error: ‘PLANE_U’ undeclared (first use in this function)
     img.planes[PLANE_U] = (uint8*)(U);
                ^
/var/tmp/portage/dev-lang/php-5.6.7/work/sapis-build/cli/ext/gd/libgd/webpimg.c:713:16: error: ‘PLANE_V’ undeclared (first use in this function)
     img.planes[PLANE_V] = (uint8*)(V);
                ^
Makefile:606: recipe for target 'ext/gd/libgd/webpimg.lo' failed
make: *** [ext/gd/libgd/webpimg.lo] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: dev-lang/php-5.6.7::gentoo failed (compile phase):
 *   emake failed

Portage 2.2.18 (python 2.7.9-final-0, hardened/linux/amd64, gcc-4.9.2, glibc-2.20-r2, 3.13.0-46-generic x86_64)
=================================================================
System uname: Linux-3.13.0-46-generic-x86_64-Intel-R-_Xeon-R-_CPU_E5-2680_v2_@_2.80GHz-with-gentoo-2.2
KiB Mem:    65897496 total,  27624816 free
KiB Swap:   67035132 total,  65763752 free
Timestamp of repository gentoo: Wed, 08 Apr 2015 10:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA @FREE -@EULA -AGPL-3"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -g -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -g -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu"
MAKEOPTS="-j32"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl amd64 berkdb bindist bzip2 clang cli cracklib crypt cxx dri fortran gbm gdbm gudev hardened iconv icu ipv6 justify libav libkms minizip mmx mmxext modules multilib ncurses nls nptl opengl openmp pam pax_kernel pcre qt3support readline session sse sse2 ssl subversion tcpd unicode urandom xa xattr xtpax xvfb zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Cănărău Constantin 2015-04-10 14:47:10 UTC
Created attachment 400968 [details, diff]
proposed patch

constant names were prefixed with VPX_ in latest version
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2015-04-17 04:56:30 UTC
Fixed, thanks for the patch!

  17 Apr 2015; Pawel Hajdan jr php-5.6.7.ebuild,
  +files/php-libvpx.patch:
  Fix build with libvpx-1.4.0, bug #545952. Patch by Canarau Constantin.
Comment 3 Dmitry 2015-05-25 19:11:25 UTC
php-5.5.25 is also needs this patch, because it fails to build with "vpx" USE flag. But with patch all compiles well.