Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300159 - compile error on php5 update
Summary: compile error on php5 update
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-08 13:25 UTC by Shad
Modified: 2010-01-13 10:36 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shad 2010-01-08 13:25:21 UTC
#emerge php
...
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/libpspell.so, not found (try using -rpath or -rpath-link)
/usr/lib/libaspell.so: undefined reference to `operator delete(void*)@GLIBCXX_3.4'
/usr/lib/libaspell.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@CXXABI_1.3'
/usr/lib/libaspell.so: undefined reference to `operator delete[](void*)@GLIBCXX_3.4'
/usr/lib/libaspell.so: undefined reference to `operator new(unsigned int)@GLIBCXX_3.4'
/usr/lib/libaspell.so: undefined reference to `__cxa_bad_typeid@CXXABI_1.3'
/usr/lib/libaspell.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info@CXXABI_1.3'
/usr/lib/libaspell.so: undefined reference to `__cxa_pure_virtual@CXXABI_1.3'
/usr/lib/libaspell.so: undefined reference to `std::__throw_bad_alloc()@GLIBCXX_3.4'
/usr/lib/libaspell.so: undefined reference to `std::_List_node_base::transfer(std::_List_node_base*, std::_List_node_base*)@GLIBCXX_3.4'
/usr/lib/libaspell.so: undefined reference to `std::__throw_length_error(char const*)@GLIBCXX_3.4'
/usr/lib/libaspell.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@CXXABI_1.3'
/usr/lib/libaspell.so: undefined reference to `std::_List_node_base::unhook()@GLIBCXX_3.4'
/usr/lib/libaspell.so: undefined reference to `std::_List_node_base::swap(std::_List_node_base&, std::_List_node_base&)@GLIBCXX_3.4'
/usr/lib/libaspell.so: undefined reference to `operator new[](unsigned int)@GLIBCXX_3.4'
/usr/lib/libaspell.so: undefined reference to `std::_List_node_base::hook(std::_List_node_base*)@GLIBCXX_3.4'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
 *
 * ERROR: dev-lang/php-5.2.12 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4631:  Called src_compile_normal
 *             environment, line 4750:  Called php5_2-sapi_src_compile
 *             environment, line 3669:  Called die
 * The specific snippet of code:
 *       emake || die "make failed"
 *  The die message:
 *   make 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.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.2.12/temp/environment'.
 *

# emerge --info

Portage 2.1.6.13 (hardened/linux/x86/10.0, gcc-4.3.4-hardenednopie, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Pentium-R-_Dual_CPU_E2180_@_2.00GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 05 Jan 2010 07:45:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ "
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X509 acl acpi apache2 auto-completion bash-completion bzip2 calendar caps chroot cisco cli cracklib crypt ctype cups curl cxx dlz dovecot-sasl dri exif ftp gd gdbm gif gnutls gpm hardened hpn iconv imagemagick imap innodb iproute2 java java6 javascript jpeg latin1 libwww logrotate loop-aes maildir mailwrapper mcal mime mmx modules mp3 mpeg mudflap mysql mysqli ncurses nls nocd nptl nptlonly openmp openssl pam pcre pdf pdflib perl php pic png pppd profile python quicktime readline recode reflection samba sasl session sockets spell spl sse sse2 ssl sysfs syslog tcpd tokenizer truetype unicode urandom x86 xml xml2 xmlrpc xorg zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1   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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel         mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage   siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware     voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Viktor S 2010-01-08 14:09:31 UTC
This seems to me more like a problem with gcc profiles, correct me if I am wrong please. Running gcc-config -l should give you a list of the current ones, setting one with gcc-config set (number).
Comment 2 Patrick Lauer gentoo-dev 2010-01-08 14:25:24 UTC
Yes, this type of error happens when you use a new gcc for some packages, then switch back to an older version. 
Comment 3 Viktor S 2010-01-09 02:52:24 UTC
So we'll just call this INVALID and go on with our lives ... ? :)
Comment 4 Patrick Lauer gentoo-dev 2010-01-10 00:03:21 UTC
(In reply to comment #3)
> So we'll just call this INVALID and go on with our lives ... ? :)
> 
Sounds like a plan! 
Comment 5 Shad 2010-01-11 08:38:08 UTC
(In reply to comment #2)
> Yes, this type of error happens when you use a new gcc for some packages, then
> switch back to an older version. 
> 

# gcc-config -l
 [1] i686-pc-linux-gnu-4.3.4
 [2] i686-pc-linux-gnu-4.3.4-hardenednopie *
 [3] i686-pc-linux-gnu-4.3.4-vanilla

never switched back to older version !
gcc-4.3.4 is the last stable version available in portage, updated from version 3.4 with upgrade done as in http://www.gentoo.org/doc/en/gcc-upgrading.xml

php5 compiled under gcc-3.4, error happens when recompiling with gcc-4.3
Comment 6 Viktor S 2010-01-11 12:18:10 UTC
This is still INVALID. You've compiled app-text/aspell with 3.4 and are then trying to compile php which depends on it with gcc 4.3. Breakage ensues. Upgrading from one major gcc-version to another pretty much requires you to recompile your entire system for these errors not to happen here and there.
Comment 7 Viktor S 2010-01-11 12:18:58 UTC
Also recompile glibc while you're at it with 4.3 if you haven't already
Comment 8 Shad 2010-01-13 10:36:14 UTC
(In reply to comment #6)
> This is still INVALID. You've compiled app-text/aspell with 3.4 and are then
> trying to compile php which depends on it with gcc 4.3. Breakage ensues.
> Upgrading from one major gcc-version to another pretty much requires you to
> recompile your entire system for these errors not to happen here and there.
> 

Already done !
emerged gcc 4.3 then 
#emerge -e system
#emerge -e world

aspell and glibc recompiled with gcc 4.3 and I have the same error with php only, all other applications recompiled without error !