Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 187818

Summary: dev-lang/php-5.2.3-r3 cannot compute sizeof (char)
Product: Gentoo Linux Reporter: Andrea Veroni <andreaveroni>
Component: [OLD] DevelopmentAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log of dev-lang/php-5.2.3-r3
php 5.2.3-r3 config.log

Description Andrea Veroni 2007-08-05 14:26:03 UTC
During an "emerge -auvND world" php 5.2.3-r3 gave me this error:

checking for char... yes
checking size of char... configure: error: cannot compute sizeof (char)
See `config.log' for more details.
 *
 * ERROR: dev-lang/php-5.2.3-r3 failed.
 * Call stack:
 *   ebuild.sh, line 1648:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   php-5.2.3-r3.ebuild, line 172:   Called src_compile_normal
 *   php-5.2.3-r3.ebuild, line 314:   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.3-r3/temp/build.log'.
 *
------------------------------------------------------------------------
Machine is an Apple Macbook c2duo, x86_64

elysium hades # emerge --info
Portage 2.1.3.2 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6-r0, 2.6.22-suspend2-mactel x86_64)
=================================================================
System uname: 2.6.22-suspend2-mactel x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 03 Aug 2007 15:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
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-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -msse3 -fomit-frame-pointer -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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=nocona -msse3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://ftp.unina.it/pub/linux/distributions/gentoo "
LINGUAS="en it"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/flameeyes-overlay /usr/portage/local/layman/enlightenment"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl acpi adns afs alsa amd64 ao apache2 arts atm audiofile bash-completion bcmath berkdb bidi bitmap-fonts bluetooth bzip bzip2 cairo calendar caps cdb cddb cdparanoia cdr cli cracklib crypt cscope cups curl dbase dbm dbus dbx dga dri dts dv dvb dvd dvdr dvdread encode exif expat fastcgi ffmpeg flac fortran ftp gcj gd gdbm gif gmp gnome gnustep gnutils gnutls gpm gsm gstreamer gtk guile hal iconv ieee1394 imagemagick imap imlib inifile ipv6 irda irmc isdnlog jack java javascript jbig jikes jpeg jpeg2k kde kerberos krb4 lash lcms leim libcaca libedit libg++ libgda libnotify libsamplerate libwww lirc lm_sensors mad madwifi maildir mailwrapper mbox mcal midi milter mime mmap mmx mng mono motif mp3 mpeg mpi mplayer msn mudflap mule musepack musicbrainz mysql mysqli nas ncurses netboot nls nntp nptl nptlonly nsplugin opengl openmp pam pcmcia pcre pda pdf perl php png portaudio posix postgres pppd pulseaudio python qt3 qt4 readline realine recode reflection ruby samba sasl session sharedmem shorten slang sndfile snmp sockets spell spl sqlite sqlite3 sse sse2 ssl tcl tcpd tetex threads tiff tk truetype truetype-fonts type1-fonts unicode usb vcd vim vim-syntax vorbis wifi xcomposite xine xml xmlrpc xorg xpm xscreensaver xv xvid zlib" ALSA_CARDS="hda-intel" 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="en it" USERLAND="GNU" VIDEO_CARDS="i810 vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

If you need more information you just have to tell.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-05 14:38:10 UTC
> See `config.log' for more details.

Attach it please.
Comment 2 Andrea Veroni 2007-08-05 15:07:55 UTC
Created attachment 126963 [details]
Build log of dev-lang/php-5.2.3-r3
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-05 16:11:42 UTC
build.log != config.log; you attached the wrong one.
Comment 4 Andrea Veroni 2007-08-06 02:54:31 UTC
Created attachment 127022 [details]
php 5.2.3-r3 config.log

here's the right one, config.log of php-5.2.3-r3
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-08-06 07:21:23 UTC
<snip>
./conftest: error while loading shared libraries: /usr/X11R6/lib64/libedit.so: invalid ELF header
</snip>

Uh, do you have some cruft in /usr/X11R6/lib64/???
Comment 6 Volkmar Glauche 2007-08-08 07:15:01 UTC
Same here, on a i686 target. It seems that configure is telling gcc to look in /usr/X11R6/(lib|lib64) and finds a linker script for libedit.so, but does not follow this script.
Comment 7 Volkmar Glauche 2007-08-08 07:18:04 UTC
Btw, this seems to be a general problem with this configure script, there are more  references to a "broken" libedit.so in the config.log...
Comment 8 Andrea Veroni 2007-08-08 12:11:07 UTC
I also run revdep-rebuild to verify if all libraries were linked correctly, and it was a complete mess...
But after running revdep-rebuil (which tried to rebuild this package too) the situation was the same, cannot compile php-5.2.3-r3.
Is there something other i can do in order to verify?
Comment 9 Volkmar Glauche 2007-08-15 19:00:50 UTC
see also #165633 and upstream bug report http://bugs.php.net/42299

Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-08-15 19:15:07 UTC
Dupe.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-08-15 19:15:19 UTC

*** This bug has been marked as a duplicate of bug 165633 ***