Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179034 - dev-lang/php-5.2.2-r1 fails to build
Summary: dev-lang/php-5.2.2-r1 fails to build
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 179069 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-18 19:08 UTC by Emiliano Vavassori
Modified: 2007-05-19 12:30 UTC (History)
3 users (show)

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


Attachments
/var/log/portage/dev-lang:php-5.2.2-r1:20070518-183746.log (dev-lang:php-5.2.2-r1:20070518-183746.log,655.22 KB, text/plain)
2007-05-18 19:11 UTC, Emiliano Vavassori
Details
emerge log for php-5.2.2-r1, failed for db-4.2 on second pass (emerge.log,55.18 KB, text/plain)
2007-05-18 21:41 UTC, Helkyn (Jean-Yves Migeon)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emiliano Vavassori 2007-05-18 19:08:50 UTC
After an update to postgres (from 8.1.8 to 8.2.4-r1), php-5.2.2-r1 won't rebuild, exiting with this error:

 *   Enabling sqlite-utf8
 * Enabling PIC support
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
configure: loading cache ./config.cache
configure: error: `CPPFLAGS' has changed since the previous run:
configure:   former value:  -I/usr/include/db4.5
configure:   current value: -I/usr/include/db4.5 -I/usr/include/db4.5
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over

!!! ERROR: dev-lang/php-5.2.2-r1 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  php-5.2.2-r1.ebuild, line 172:   Called src_compile_normal
  php-5.2.2-r1.ebuild, line 321:   Called php5_2-sapi_src_compile
  php5_2-sapi.eclass, line 610:   Called die

!!! configure failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/dev-lang:php-5.2.2-r1:20070518-183746.log'.

emerge -av1 php:
[ebuild   R   ] dev-lang/php-5.2.2-r1  USE="apache2 berkdb bzip2 cgi cli crypt curl curlwrappers dbase flatfile ftp gd gdbm gmp iconv imap kerberos mhash ncurses nls odbc pcre pic posix postgres readline session soap sockets spell spl sqlite ssl sysvipc truetype unicode xml xmlreader xmlrpc xpm xsl zip zlib -adabas -bcmath -birdstep -calendar -cdb -cjk -concurrentmodphp -ctype -db2 -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filter -firebird -force-cgi-redirect -frontbase -gd-external -hash -inifile -interbase -iodbc -ipv6 -java-external -json -ldap -ldap-sasl -libedit -mcve -msql -mssql -mysql -mysqli -oci8 -oci8-instant-client -pcntl -pdo -pdo-external -qdbm -recode -reflection -sapdb -sharedext -sharedmem -simplexml -snmp -solid -suhosin -sybase -sybase-ct -threads -tidy -tokenizer -wddx -xmlwriter -yaz -zip-external" 0 kB

Emerge --info:
Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r2, 2.6.18-suspend2-r3 i686)
=================================================================
System uname: 2.6.18-suspend2-r3 i686 Mobile AMD Athlon(tm) XP 2600+
Gentoo Base System release 1.12.10
Timestamp of tree: Fri, 18 May 2007 15:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -funroll-loops"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirror.solnet.ch http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.ynet.sk/pub http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="it_IT"
LC_ALL="it_IT.utf8"
LINGUAS="it en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/gechi /usr/portage/local/layman/gentoo-gis"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 7zip X aac aalib acpi aim alsa apache2 audiofile berkdb bitmap-fonts bzip2 cairo caps cdparanoia cdr cli cracklib crypt cups dba dbase dga dio dri dts dvb dvd dvdr dvdread emboss encode esd evo fam fbcon ffmpeg fftw firefox flac flatfile fortran ftp gcj gdbm geoip gif gnutls gpm gps gstreamer gtk iconv icq ieee1394 imagemagick imap imlib isdnlog jabber jack javascript jpeg jpeg2k lcms lesstif libcaca libg++ libgda mad matroska mbox md5sum mhash midi mikmod mime mmap mmx mng motif mp3 mpeg msn musepack nas ncurses nis nls nptl nptlonly nsplugin odbc offensive ogg opengl oscar oss pam pcmcia pcre pdf perl php pic png posix postgres ppds pppd python qt3 qt3support qt4 quicktime readline reflection ruby samba sdl session sharedmem sndfile soap sockets sox spell spl sse ssl svg sysvipc szip tcltk tcpd tetex theora threads tiff timidity truetype truetype-fonts type1-fonts unicode usb v4l vcd vorbis win32codecs wmf wxwindows x86 xinerama xml xml2 xmlrpc xorg xosd xpm xprint xsl xv xvid yahoo zlib" ALSA_CARDS="via82xx via82xx-modem mpu401" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="via vesa fbdev v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Expected result: php builds and installs correctly.

Next I'm attaching the 'emerge log'.

Thanks.
Comment 1 Emiliano Vavassori 2007-05-18 19:11:05 UTC
Created attachment 119630 [details]
/var/log/portage/dev-lang:php-5.2.2-r1:20070518-183746.log

Attaching emerge log.
Comment 2 Helkyn (Jean-Yves Migeon) 2007-05-18 21:32:02 UTC
Got exactly the same bug, but on db-4.2. Seems to fail on second pass (for SAPI probably), CPPFLAGS containing twice the same include:

 *   Disabling sqlite
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
configure: loading cache ./config.cache
configure: error: `CPPFLAGS' has changed since the previous run:
configure:   former value:  -I/usr/include/db4.2
configure:   current value: -I/usr/include/db4.2 -I/usr/include/db4.2
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over

!!! ERROR: dev-lang/php-5.2.2-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 5482:   Called src_compile
  php-5.2.2-r1.ebuild, line 172:   Called src_compile_normal
  php-5.2.2-r1.ebuild, line 326:   Called php5_2-sapi_src_compile
  php5_2-sapi.eclass, line 610:   Called die

!!! configure failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-lang/php-5.2.2-r1/temp/build.
log'.


emerge --info:

Portage 2.1.2.2 (default-linux/amd64/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r7 x86_64 Intel(R) Pentium(R) D CPU 2.80GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 18 May 2007 15:50:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo "
LANG="fr_FR"
LC_ALL="fr_FR.UTF-8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bash-completion berkdb bitmap-fonts bzip2 calendar cli cracklib crypt cups dri exif fortran ftp gd gdbm gpm iconv imap ipv6 isdnlog jpeg ldap libg++ midi mmx mysql ncurses nls nptl nptlonly pam pcre perl png pppd python readline reflection session spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts unicode xml xmlreader xmlrpc xmlwriter xorg zip zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

emerge log follows.
Comment 3 Helkyn (Jean-Yves Migeon) 2007-05-18 21:41:02 UTC
Created attachment 119653 [details]
emerge log for php-5.2.2-r1, failed for db-4.2 on second pass

Thanks :)
Comment 4 Mark Knecht 2007-05-18 23:44:55 UTC
Looks like I'm seeing the same thing as part of emerging mythweb:

 *   Disabling mm
 *   Disabling sqlite
configure: WARNING: If you wanted to set the --build type, don't use --host.
   If a cross compiler is detected then cross compile mode will be used.
configure: loading cache ./config.cache
configure: error: `CPPFLAGS' has changed since the previous run:
configure:   former value:  -I/usr/include/db4.2
configure:   current value: -I/usr/include/db4.2 -I/usr/include/db4.2
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over

!!! ERROR: dev-lang/php-5.2.2-r1 failed.
Call stack:
 ebuild.sh, line 1615:   Called dyn_compile
 ebuild.sh, line 972:   Called qa_call 'src_compile'
 ebuild.sh, line 44:   Called src_compile
 php-5.2.2-r1.ebuild, line 172:   Called src_compile_normal
 php-5.2.2-r1.ebuild, line 326:   Called php5_2-sapi_src_compile
 php5_2-sapi.eclass, line 610:   Called die

!!! configure failed
!!! If you need support, post the topmost build error, and the call
stack if relevant.
!!! A complete build log is located at
'/var/tmp/portage/dev-lang/php-5.2.2-r1/temp/build.log'.

lightning ~ #

lightning ~ # emerge -pvDuN mythweb

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-lang/php-5.2.2-r1  USE="apache2 berkdb cjk cli
crypt gdbm iconv ipv6 ldap mysql ncurses nls pcre readline reflection
session spell spl ssl truetype unicode xml zlib (-adabas) -bcmath
(-birdstep) -bzip2 -calendar -cdb -cgi -concurrentmodphp -ctype -curl
-curlwrappers -db2 -dbase (-dbmaker) -debug -discard-path -doc
(-empress) (-empress-bcs) (-esoob) -exif -fastbuild (-fdftk) -filter
(-firebird) -flatfile -force-cgi-redirect (-frontbase) -ftp -gd
-gd-external -gmp -hash -imap -inifile -interbase -iodbc
-java-external -json -kerberos -ldap-sasl -libedit -mcve -mhash -msql
-mssql -mysqli -oci8 (-oci8-instant-client) -odbc -pcntl -pdo
-pdo-external -pic -posix -postgres -qdbm -recode -sapdb -sharedext
-sharedmem -simplexml -snmp -soap -sockets (-solid) -sqlite -suhosin
(-sybase) (-sybase-ct) -sysvipc -threads -tidy -tokenizer -wddx
-xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip -zip-external" 0 kB
[ebuild  N    ] www-apps/mythweb-0.20_p11671  USE="-vhosts" 18 kB

Total: 2 packages (2 new), Size of downloads: 18 kB
lightning ~ #


lightning ~ # emerge --info
Portage 2.1.2.7 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r2, 2.6.21-rc5-rt12 x86_64)
=================================================================
System uname: 2.6.21-rc5-rt12 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 18 May 2007 16:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.gentoo.gr.jp http://www.zentek-international.com/mirrors/gentoo/"
LC_ALL="en_US"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/pro-audio /usr/local/portage /usr/portage/local/layman/pro-audio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apache2 audiofile berkdb bitmap-fonts cairo cdr cjk cli cracklib crypt cups dbus dri dvd dvdr dvdread emboss encode fam firefox flac fluidsynth fortran gdbm gif gimp gimpprint gnome gpm gstreamer gtk gtk2 hal i8x0 iconv ipv6 isdnlog jack jack-tmpfs java jpeg kde ladspa ldap libg++ mad midi mikmod mjpeg mp3 mpeg mysql mythtv ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime radeon readline reflection sdl session sndfile spell spl ssl tcltk tcpd truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="hdsp9652" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

lightning ~ #
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2007-05-19 00:29:51 UTC
happened to me too, on a brand new 2007.0 amd64 installation.
Comment 6 Luca Longinotti (RETIRED) gentoo-dev 2007-05-19 00:41:37 UTC
Should be fixed now, part of another fix interfered with the build process.
I've now reverted that fix and PHP should build again.
Best regards, CHTEKK.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-05-19 07:12:28 UTC
*** Bug 179069 has been marked as a duplicate of this bug. ***
Comment 8 Yu Yuwei 2007-05-19 10:44:38 UTC
I encounter  this bug today,

this is cause by php5_2.sapi.eclass.

In /usr/portage/eclass/php5_2.sapi.eclass   line 467 :
:if use berkdb ; then
:    append-cppflags "-I$(db_includedir)"
:fi

comment them out and things will go well:)
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-05-19 10:46:57 UTC
(In reply to comment #8)

emerge --sync please, has already been fixed (properly).
Comment 10 Emiliano Vavassori 2007-05-19 12:30:00 UTC
Only to confirm that for me is fixed (I've synced this morning, ~10:00 CEST). Thanks.