#44357 [Opn]: php-gtk make fails

From: Date: Wed, 12 Mar 2008 00:09:17 +0000
Subject: #44357 [Opn]: php-gtk make fails
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-4182@lists.php.net to get a copy of this message
ID: 44357 Updated by: bmajdak@php.net Reported By: nhlaine at gmx dot net Status: Open Bug Type: PHP-GTK related Operating System: GNU/Linux PHP Version: 5.2.0 Assigned To: bmajdak New Comment: "Could not startup." The only time I have seen that is when doing this over SSH and PHP-GTK is already installed. nhlaine at gmx dot net do you also get this before it bombs? Also as an experiment, both of you please extract a clean copy of the source, and if you have an old version of PHP-GTK get rid of it and comment out the reference to php_gtk.so in your PHP.INI. Also can your SSH connections if you are doing this remotely, do it from the keyboard with X running. If you are curious to why, check this out: Configuring PHP and GTK http://oops.opsat.net/doc/gtk/configure-php.html # over ssh with php-gtk enabled. [bob@kathryn ~]$ php Could not startup. Then do this on the clean source. ./buildconf; ./configure; make Here you would get the error, then make clean-gen clean; make And see if that gets you through to the next round. Perhaps the pre-generated files are mixing to do odd things. If you still get problems, then we might be having PHP problems or some compiler bug... recompile PHP using whatever compiler you have installed and try again. If your PHP is currently from a package you can grab the ./configure line from PHP by asking php -i | grep Configure Previous Comments: ------------------------------------------------------------------------ [2008-03-11 13:45:42] zach9824 at gmail dot com This issue also appears to be affecting build on Gentoo Linux amd64 with make: *** [ext/gtk+/gen_atk.c] Error 1. PHP VERSION - php-5.2.5_p20080206-r3 atk VERSION - atk-1.20.0 /usr/include/atk-1.0/atk/atkregistry.h matches that as listed below. -------------------------------------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+/php_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/generator.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+/php_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----------------------------- ------------------------------------------------------------------------ [2008-03-07 20:56:34] nhlaine at gmx dot net Yes I do have libatk dev installed, and /usr/include/atk-1.0/atk/atkregistry.h 44 struct _AtkRegistryClass 45 { 46 GObjectClass parent_class; 47 }; 48 49 typedef struct _AtkRegistry AtkRegistry; 50 typedef struct _AtkRegistryClass AtkRegistryClass; ------------------------------------------------------------------------ [2008-03-07 19:50:29] bmajdak@php.net So my first guess was not the problem. ./atk/atkregistry.h:49:typedef struct _AtkRegistry AtkRegistry; Can you confirm that you have the atk dev package installed, and a /usr/include/atk-1.0/atk/atkregistry.h containing that line above on line 49? ------------------------------------------------------------------------ [2008-03-07 12:43:59] nhlaine at gmx dot net libatk is 1.12.4 gen_atk.c to follow by email as req. ------------------------------------------------------------------------ [2008-03-07 03:31:17] bmajdak@php.net This is slightly strange as we have had Debian Etch people compile clean before. Please paste your ATK package version, and also please email me your gen_atk.c file *after* the build fails. (tar.gz it so it does not attach inline) to bmajdak at php dot net. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/44357 -- Edit this bug report at http://bugs.php.net/?id=44357&edit=1

« previous php.gtk.dev (#4182) next »