Re: compile problems
| From: | Alan Knowles | Date: | Mon, 30 Jun 2003 07:09:30 +0000 |
| Subject: | Re: compile problems | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3599@lists.php.net to get a copy of this message | ||
Jason Gabriele wrote:
ive been trying for at least 12 hours today to compile php-gtk. ive tried both .5.2 and the latest cvs and they have the same problem. my system is redhat 9 and i have php 4.3.2 i grabbed everything from the first error i saw in the output --------------------------------- /usr/src/php-gtk-0.5.2/ext/gtk+/php_gtk+_types.c: In function `php_gdk_event_new': /usr/src/php-gtk-0.5.2/ext/gtk+/php_gtk+_types.c:103: warning: passing arg 4 of `add_property_zval_ex' makes pointer from integer without a cast /bin/sh /usr/src/php-gtk-0.5.2/libtool --mode=compile gcc -Iext/gtk+/ -I/usr/src/php-gtk-0.5.2/ext/gtk+/ -DPHP_ATOM_INC -I/usr/src/php-gtk-0.5.2/include -I/usr/src/php-gtk-0.5.2/main -I/usr/src/php-gtk-0.5.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -DHAVE_CONFIG_H -g -O2 -prefer-pic -c ext/gtk+/gen_gtk.c -o ext/gtk+/gen_gtk.lo gcc -Iext/gtk+/ -I/usr/src/php-gtk-0.5.2/ext/gtk+/ -DPHP_ATOM_INC -I/usr/src/php-gtk-0.5.2/include -I/usr/src/php-gtk-0.5.2/main -I/usr/src/php-gtk-0.5.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -DHAVE_CONFIG_H -g -O2 -c ext/gtk+/gen_gtk.c -fPIC -DPIC -o ext/gtk+/gen_gtk.lo /bin/sh /usr/src/php-gtk-0.5.2/libtool --mode=compile gcc -Iext/gtk+/ -I/usr/src/php-gtk-0.5.2/ext/gtk+/ -DPHP_ATOM_INC -I/usr/src/php-gtk-0.5.2/include -I/usr/src/php-gtk-0.5.2/main -I/usr/src/php-gtk-0.5.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -DHAVE_CONFIG_H -g -O2 -prefer-pic -c ext/gtk+/gen_gdk.c -o ext/gtk+/gen_gdk.lo gcc -Iext/gtk+/ -I/usr/src/php-gtk-0.5.2/ext/gtk+/ -DPHP_ATOM_INC -I/usr/src/php-gtk-0.5.2/include -I/usr/src/php-gtk-0.5.2/main -I/usr/src/php-gtk-0.5.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -DHAVE_CONFIG_H -g -O2 -c ext/gtk+/gen_gdk.c -fPIC -DPIC -o ext/gtk+/gen_gdk.lo /bin/sh /usr/src/php-gtk-0.5.2/libtool --mode=compile gcc -I/usr/src/php-gtk-0.5.2/main -I. -I/usr/src/php-gtk-0.5.2 -DPHP_ATOM_INC -I/usr/src/php-gtk-0.5.2/include -I/usr/src/php-gtk-0.5.2/main -I/usr/src/php-gtk-0.5.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /usr/src/php-gtk-0.5.2/main/php_gtk.c -o main/php_gtk.lo gcc -I/usr/src/php-gtk-0.5.2/main -I. -I/usr/src/php-gtk-0.5.2 -DPHP_ATOM_INC -I/usr/src/php-gtk-0.5.2/include -I/usr/src/php-gtk-0.5.2/main -I/usr/src/php-gtk-0.5.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -DHAVE_CONFIG_H -g -O2 -c /usr/src/php-gtk-0.5.2/main/php_gtk.c -fPIC -DPIC -o main/php_gtk.lo /bin/sh /usr/src/php-gtk-0.5.2/libtool --mode=compile gcc -I/usr/src/php-gtk-0.5.2/main -I. -I/usr/src/php-gtk-0.5.2 -DPHP_ATOM_INC -I/usr/src/php-gtk-0.5.2/include -I/usr/src/php-gtk-0.5.2/main -I/usr/src/php-gtk-0.5.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /usr/src/php-gtk-0.5.2/main/php_gtk_object.c -o main/php_gtk_object.lo gcc -I/usr/src/php-gtk-0.5.2/main -I. -I/usr/src/php-gtk-0.5.2 -DPHP_ATOM_INC -I/usr/src/php-gtk-0.5.2/include -I/usr/src/php-gtk-0.5.2/main -I/usr/src/php-gtk-0.5.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -DHAVE_CONFIG_H -g -O2 -c /usr/src/php-gtk-0.5.2/main/php_gtk_object.c -fPIC -DPIC -o main/php_gtk_object.lo /usr/src/php-gtk-0.5.2/main/php_gtk_object.c: In function `php_gtk_arg_from_value': /usr/src/php-gtk-0.5.2/main/php_gtk_object.c:612: `gtk_object_ce' undeclared (first use in this function)This is cause by the generator/ failing to create the gtk_object_ce definitions
/usr/src/php-gtk-0.5.2/main/php_gtk_object.c:612: (Each undeclared identifier is reported only once /usr/src/php-gtk-0.5.2/main/php_gtk_object.c:612: for each function it appears in.) /usr/src/php-gtk-0.5.2/main/php_gtk_object.c: In function `php_gtk_ret_from_value': /usr/src/php-gtk-0.5.2/main/php_gtk_object.c:889: `gtk_object_ce' undeclared (first use in this function) make: *** [main/php_gtk_object.lo] Error 1 ---------------------------------------------------------------- and from the php error log... ----------------------------------------------------------------make sure your memory_limit is set to > 64Mb is php.ini, and delete all the gen_*.c, *.cache files in ext/gtk+ when making php-gtk you will see a line something like /usr/bin/php ../../generator/generator.php ........ > gen_gtk.c if you remove the > bit, you can test the generator on the defs/overrides files to see what it is outputing.. Regards Alan
[28-Jun-2003 22:11:32] PHP Warning: fopen(--): failed to open stream: No such file or directory in /usr/src/php-gtk-0.5.2/generator/scheme.php on line 110 [28-Jun-2003 22:11:32] PHP Warning: fgets(): supplied argument is not a valid stream resource in /usr/src/php-gtk-0.5.2/generator/scheme.php on line 34 [28-Jun-2003 22:11:32] PHP Warning: filemtime(): Stat failed for -- (errno=2 - No such file or directory) in /usr/src/php-gtk-0.5.2/generator/scheme.php on line 101 [28-Jun-2003 22:11:32] Loading cache "--.cache" ---------------------------------------------------------------- thanks ahead of time --jason-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com