Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213037 - dev-php5/php-gtk-2.0.0 compile requires X session
Summary: dev-php5/php-gtk-2.0.0 compile requires X session
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: PHP Bugs
URL: http://bugs.php.net/bug.php?id=44357
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-11 14:02 UTC by Zach
Modified: 2010-03-06 19:01 UTC (History)
3 users (show)

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


Attachments
emerge log (php-gtk-2.0.0.txt,42.09 KB, text/plain)
2008-03-11 14:11 UTC, Zach
Details
enviorment (enviorment.txt,136.34 KB, text/plain)
2008-03-11 14:11 UTC, Zach
Details
Updated ebuild (php-gtk-2.0.1-r2.ebuild,3.48 KB, text/plain)
2010-03-05 16:11 UTC, Myckel Habets (work)
Details
Same ebuild, cleaned one comment line. (php-gtk-2.0.1-r2.ebuild,3.45 KB, text/plain)
2010-03-05 16:15 UTC, Myckel Habets (work)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zach 2008-03-11 14:02:21 UTC
PLEASE SEE http://bugs.php.net/bug.php?id=44357.

This appears to be an upstream issue. However this only affects AMD64, not x86. I have reported to the upstream bug report. 

I suggest masking dev-php5/php-gtk-2.0.0 ~amd64 in portage until this is sorted out as php-gtk-2.0.0_beta-r1 still compiles fine on amd64.

-----------------------------------------------------------------------------
PHP VERSION - php-5.2.5_p20080206-r3
ATK VERSION - atk-1.20.0

-------------------------------------EMERGE OUTPUT-------------------------

/bin/sh
/var/tmp/portage/dev-php5/php-gtk-2.0.0/work/php-gtk-2.0.0/libtool
--mode=compile x86_64-pc-linux-gnu-gcc  -I./ext/gtk+/
-I/var/tmp/portage/dev-php5/php-gtk-2.0.0/work/php-gtk-2.0.0/./ext/gtk+/
-DPHP_ATOM_INC
-I/var/tmp/portage/dev-php5/php-gtk-2.0.0/work/php-gtk-2.0.0/include
-I/var/tmp/portage/dev-php5/php-gtk-2.0.0/work/php-gtk-2.0.0/main
-I/var/tmp/portage/dev-php5/php-gtk-2.0.0/work/php-gtk-2.0.0
-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 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0
-I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/gtkextra-2.0
-I/usr/include/libglade-2.0 -I/usr/include/libxml2
-I/usr/lib64/mozilla-firefox/include/gtkembedmoz
-I/usr/lib64/mozilla-firefox/include
-I/usr/lib64/mozilla-firefox/include/xpcom
-I/usr/lib64/mozilla-firefox/include/string -I/usr/include/nspr
-I/usr/include/gtkspell-2.0  -DHAVE_CONFIG_H  -march=athlon64 -O2 -pipe
-msse3   -c
/var/tmp/portage/dev-php5/php-gtk-2.0.0/work/php-gtk-2.0.0/./ext/gtk+/ph
p_gtk+.c -o ./ext/gtk+/php_gtk+.lo
( \
     /usr/lib64/php5/bin/php
/var/tmp/portage/dev-php5/php-gtk-2.0.0/work/php-gtk-2.0.0/generator/gen
erator.php \
                -l ext/gtk+/gen_atk.log \
        -r ext/gtk+/atk-types.defs   \
        -r ext/gtk+/pango-types.defs \
        -r ext/gtk+/gdk-types.defs   \
        -r ext/gtk+/gtk-types.defs   \
        -o ext/gtk+/atk.overrides \
        -p atk \
        -f ext/gtk+/gen_atk.c ext/gtk+/atk.defs \
                -v 2.12 \
     && grep -h "^PHP_GTK_EXPORT_CE" ext/gtk+/gen_atk.c | sed -e
"s!^!extern !" > ext/gtk+/gen_atk.h \
        )
mkdir ./ext/gtk+/.libs
 x86_64-pc-linux-gnu-gcc -I./ext/gtk+/
-I/var/tmp/portage/dev-php5/php-gtk-2.0.0/work/php-gtk-2.0.0/./ext/gtk+/
-DPHP_ATOM_INC
-I/var/tmp/portage/dev-php5/php-gtk-2.0.0/work/php-gtk-2.0.0/include
-I/var/tmp/portage/dev-php5/php-gtk-2.0.0/work/php-gtk-2.0.0/main
-I/var/tmp/portage/dev-php5/php-gtk-2.0.0/work/php-gtk-2.0.0
-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 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0
-I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/gtkextra-2.0
-I/usr/include/libglade-2.0 -I/usr/include/libxml2
-I/usr/lib64/mozilla-firefox/include/gtkembedmoz
-I/usr/lib64/mozilla-firefox/include
-I/usr/lib64/mozilla-firefox/include/xpcom
-I/usr/lib64/mozilla-firefox/include/string -I/usr/include/nspr
-I/usr/include/gtkspell-2.0 -DHAVE_CONFIG_H -march=athlon64 -O2 -pipe
-msse3 -c
/var/tmp/portage/dev-php5/php-gtk-2.0.0/work/php-gtk-2.0.0/./ext/gtk+/ph
p_gtk+.c  -fPIC -DPIC -o ./ext/gtk+/.libs/php_gtk+.o
Could not startup.
make: *** [ext/gtk+/gen_atk.c] Error 1
make: *** Waiting for unfinished jobs....
 *
 * ERROR: dev-php5/php-gtk-2.0.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3648:  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/log/portage/dev-php5:php-gtk-2.0.0:20080311-133939.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/dev-php5/php-gtk-2.0.0/temp/environment'.
------------------------------END OUTPUT-----------------------------


Reproducible: Always

Steps to Reproduce:
1. emerge php-gtk
2.
3.





emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3500+
Timestamp of tree: Tue, 11 Mar 2008 10:00:04 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
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/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/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/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 --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 apache2 arts authdaemond avahi berkdb bitmap-fonts boost cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox flash fortran ftp gd gdbm gif gpm gstreamer gtk hal iconv imap ipv6 isdnlog java javascript jpeg kde kdeenablefinal kdehiddenvisibility kerberos ldap libwww logrotate mad maildir mailwrapper midi mikmod mmx mozilla mp3 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre pdf perl php png postgres ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection samba sasl sdl session snmp spell spl sse sse2 ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb vhosts vorbis xml xorg xv 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" 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" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zach 2008-03-11 14:11:12 UTC
Created attachment 145823 [details]
emerge log
Comment 2 Zach 2008-03-11 14:11:35 UTC
Created attachment 145824 [details]
enviorment
Comment 3 Zach 2008-03-25 00:17:46 UTC
Sorry Anant. I must be working to many hours, I meant to close this earlier. The issue was my own.

I no longer have an issue with the emerge on amd64. The problem was a simple one. I was working over a ssh connection - and I did not forward the X11 session. 

The error "could not startup" was simply because php needs the X11 session to run. Once I decided to try the emerge at the actual server (non ssh connection) it emerged complete.

Also just for sanity I forwarded the X11 over SSH and also was able to build fine.

Best,
Zach 
Comment 4 Łukasz Damentko (RETIRED) gentoo-dev 2009-03-17 22:42:55 UTC
Moving to herd since Anant left Gentoo.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2009-04-30 20:40:36 UTC
It is kind of crappy that to emerge this, you must do it from an X session (which goes against the Gentoo stance on compiling). There is a virtualx eclass for handling this.

However, once this is installed. PHP command line is no longer usable unless you run it from an xterm.
Comment 6 Myckel Habets (work) 2010-03-05 16:11:53 UTC
Created attachment 222181 [details]
Updated ebuild

Here is an ebuild that should fix the problem by using the virtualx eclass.
Comment 7 Myckel Habets (work) 2010-03-05 16:15:22 UTC
Created attachment 222183 [details]
Same ebuild, cleaned one comment line.
Comment 8 Myckel Habets 2010-03-06 18:39:55 UTC
Talked with sping on IRC about this. For reference:

<Myckel> Bug 213037 (worked on it yesterday)? I've tested it on 2 systems where the build failed because of this bug and now seems to be working again.
<sping> Myckel: are you referring to that attachement from comment 7?
<Myckel> sping, yes.
<Myckel> Added virtualx eclass to the ebuild
<sping> Myckel: non of the gentoo PHP guys seems to be around atm. i cannot just fix it for them. can you comment on the bugs telling what you told us?
Comment 9 Sebastian Pipping gentoo-dev 2010-03-06 19:01:42 UTC
Permission by yngwin, fixed.

Thanks for reporting, thanks for the patch!