Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190085 - dev-php5/php-gtk-2.0.0_beta fails on amd64
Summary: dev-php5/php-gtk-2.0.0_beta fails on amd64
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Anant Narayanan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-24 20:42 UTC by Zach
Modified: 2007-09-10 23:58 UTC (History)
1 user (show)

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


Attachments
config.log (config.log,11.75 KB, text/plain)
2007-08-24 23:32 UTC, Zach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zach 2007-08-24 20:42:11 UTC
Appears as though dev-lang/php-5.2.4_pre200708051230-r2 may be causing this issue, since I just emerged it.
-------------------------------------------------------
./configure: line 3910: --prefix: command not found
checking for PHP executable in /bin... configure: error: Could not locate PHP executable
-------------------------------------------------------

Looks like it should be looking in /usr/lib64/php5/bin, and now it is just looking in /bin?

Log below:
*
 * Using dev-lang/php-5.2.4_pre200708051230-r2
 *
 * Checking for required PHP feature(s) ...
>>> Unpacking source...
>>> Unpacking php-gtk-2.0.0beta.tar.gz to /var/tmp/portage/dev-php5/php-gtk-2.0.0_beta/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-php5/php-gtk-2.0.0_beta/work/php-gtk-2.0.0beta ...
 * Applying no-cli-check.patch ...                                                                                                                   [ ok ]
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
rebuilding aclocal.m4
rebuilding configure
rebuilding config.h.in
 * econf: updating php-gtk-2.0.0beta/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating php-gtk-2.0.0beta/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-extra --with-html --with-libsexy --with-mozembed --with-sourceview --with-spell --without-debug --enable-scintilla --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking whether x86_64-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr/lib64/php5
checking for PHP includes... -I/usr/lib64/php5/include/php -I/usr/lib64/php5/include/php/main -I/usr/lib64/php5/include/php/TSRM -I/usr/lib64/php5/include/php/Zend -I/usr/lib64/php5/include/php/ext -I/usr/lib64/php5/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib64/php5/lib/php/extensions/no-debug-zts-20060613
checking for PHP installed headers prefix... /usr/lib64/php5/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for PHP-GTK support... yes, shared
./configure: line 3910: --prefix: command not found
checking for PHP executable in /bin... configure: error: Could not locate PHP executable

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/dev-php5/php-gtk-2.0.0_beta/work/php-gtk-2.0.0beta/config.log

!!! ERROR: dev-php5/php-gtk-2.0.0_beta failed.
Call stack:
  ebuild.sh, line 1638:   Called dyn_compile
  ebuild.sh, line 985:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  php-gtk-2.0.0_beta.ebuild, line 73:   Called econf '--with-extra' '--with-html' '--with-libsexy' '--with-mozembed' '--with-sourceview' '--with-spell' '--without-debug' '--enable-scintilla'
  ebuild.sh, line 586:   Called die

!!! econf 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-php5:php-gtk-2.0.0_beta:20070824-202037.log'.



Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-24 21:01:30 UTC
> !!! Please attach the following file when filing a report to bugs.gentoo.org:
> /var/tmp/portage/dev-php5/php-gtk-2.0.0_beta/work/php-gtk-2.0.0beta/config.log

Please, do it. Also post emerge --info output.
Comment 2 Zach 2007-08-24 23:32:05 UTC
Created attachment 129101 [details]
config.log
Comment 3 Zach 2007-08-24 23:33:32 UTC
Emerge Info:

Portage 2.1.2.12 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System release 1.12.10
Timestamp of tree: Fri, 24 Aug 2007 11:00:01 +0000
ccache version 2.4 [enabled]
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
dev-util/ccache:     2.4-r7
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.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo/ http://gentoo.chem.wisc.edu/gentoo/"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aac acl acpi akode alsa amd64 apache2 arts authdaemond avahi bash-completion berkdb bitmap-fonts bluetooth boost cairo ccache cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam fame firefox flac flash fortran ftp gd gdbm gif gmail gpm gstreamer gtk hal highlight iconv ifp imagemagick innodb ipod ipv6 isdnlog java javascript jpeg kde kdeenablefinal kdehiddenvisibility kerberos ldap lm_sensors logitech-mouse logrotate mad mailwrapper midi mikmod mmx mono mozilla mp3 mpeg mudflap music musicbrainz mysql mysqli ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre pdf perl php png postgres ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sasl scanner sdl session snmp sounds spell spl sse sse2 ssl svg tcpd texteffect threads tiff truetype truetype-fonts type1 type1-fonts unicode usb vhosts vorbis xcomposite xml xorg xv yahoo 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" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Zach 2007-08-24 23:38:39 UTC
I also just got a chance to update my X86 box and it php-gtk compiles fine against the latest version of PHP. I have also tried it on another amd64 machine and got the same result.

Thanks, and let me know if I can provide anything else to help.

Zach
Comment 5 Zach 2007-08-24 23:40:13 UTC
(In reply to comment #4)
> I also just got a chance to update my X86 box and it php-gtk compiles fine
> against the latest version of PHP. I have also tried it on another amd64
> machine and got the same result.

sorry to clarify...
AMD64 - not working
X86 Working
> 
> Thanks, and let me know if I can provide anything else to help.
> 
> Zach
> 

Comment 6 Anant Narayanan (RETIRED) gentoo-dev 2007-08-27 04:32:37 UTC
Thanks for the report. After some digging around, I've found the root of the cause - PHP in general, and PHP-GTK in particular has issues with AMD64. Will take a look at this upstream and get back.
Comment 7 Zach 2007-09-01 04:11:55 UTC
(In reply to comment #6)
Hi Anant,

I did some poking around as well and i found this:
http://bugs.php.net/bug.php?id=42292

Looks like they have just released PHP 5.2.4 final and this bug has been fixed. referenced here:

http://www.php.net/ChangeLog-5.php#5.2.4

Now we just wait for 5.2.4 to get into portage and we should be golden. Not wanting to get into paching the ebuild, my quick workaround was just to hard maske dev-lang/php-5.2.4_pre200708051230-r2 and fall back to php-5.2.3-r3 for the time being. all modules/extensions appear to compile fine.

Thanks again.
Zach

Comment 8 Zach 2007-09-10 23:58:49 UTC
I know this is marked as resolved upstream. Just wanted to confirm 100% that with the introduction of PHP-5.2.4 into portage all issues are resolved and working again on my system.

Thanks.
Zach