Hi Trevor,
Please take a look at "http://gtk.php.net/manual/en/installunix.php". There you can see troubelshoot-section ( bullet No 4) should solve your problem.
Troubleshooting: common problems from ./configure or make
* ./ltconfig: ltconfig : No such file or directory, configure: error: libtool configure failed is caused by not having one of libtool, automake or autoconf installed.
* ./aclocal.m4:813: error: m4_defn: undefined: _m4_divert_diversion is caused by an incompatible version of autoconf, see the recommended versions above.
* php_gtk+.c:33: parse error before `TSRMLS_DC' is caused by either an old version of php being found by the build system or trying to build php-gtk with an
old version of PHP - please upgrade to PHP version 4.3.2 to fix this.
* *gen_gtk.c:1: parse error before '<' is caused by an error occurring in the generator. Usually this error is resolved by adding the line
ini_set("memory_limit", "32M"); to the first line of generator/generator.php. You will need to remove all the gen_* files from all
directories after changing this. ( Radko - You can do that in php.ini file.)*
* checking for gnome-config... Unknown library `gtkhtml' (from ./configure) is due to an old or unavailable development header file - if you installed by rpm or a
similar package system you will need the -devel packages
* Unable to find -lgal or similar message is caused by a missing gal-devel or similar library. Usually this will be a sub dependancy of some of the more complex widgets, like gtkhtml.
At the bottom of this page you can see "*User Contributed Notes*" - there some great people shares their experience with us.
Make shure that you are using last version of PHP ( 4.3.3 or 4.3.4) and i recomending you to use CLI version of PHP ( you can buid it with "*make cli*" command).
Regards,
Radko
Trevor Morrison wrote:
Yes that was the first thing I did:
make clean
./buildconf
aclocal
./buildconf
./configure
./make
Thanks,
Trevor
Steph wrote:
was that clean before you started?
-----Original Message-----
From: Trevor Morrison [mailto:trevor@hailix.com]
Sent: 02 January 2004 17:54
To: steph.fox@virgin.net
Cc: php-gtk-general@lists.php.net
Subject: Re: [PHP-GTK] Compile problems
Hi Steph,
It got me a little further down the road! When I run make I get the following error:
...........
gcc -Iext/gtk+/ -I/root/php-gtk-0.5.2/ext/gtk+/ -DPHP_ATOM_INC -I/root/php-gtk-0.5.2/include -I/root/php-gtk-0.5.2/main -I/root/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
ext/gtk+/gen_gtk.c:1: parse error before '<' token
ext/gtk+/gen_gtk.c:2: too many decimal points in floating constant
ext/gtk+/gen_gtk.c:4: too many decimal points in floating constant
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from /usr/include/php/Zend/zend.h:35,
from /usr/include/php/main/php.h:34,
from /root/php-gtk-0.5.2/main/php_gtk.h:26,
from ext/gtk+/gen_gtk.c:5:
/usr/include/gconv.h:72: parse error before "size_t"
/usr/include/gconv.h:88: parse error before "size_t"
/usr/include/gconv.h:97: parse error before "size_t"
/usr/include/gconv.h:174: parse error before "size_t"
/usr/include/gconv.h:177: parse error before '}' token
In file included from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from /usr/include/php/Zend/zend.h:35,
from /usr/include/php/main/php.h:34,
from /root/php-gtk-0.5.2/main/php_gtk.h:26,
from ext/gtk+/gen_gtk.c:5:
/usr/include/_G_config.h:47: field `__cd' has incomplete type
/usr/include/_G_config.h:50: field `__cd' has incomplete type
/usr/include/_G_config.h:52: confused by earlier errors, bailing out
make: *** [ext/gtk+/gen_gtk.lo] Error 1
[root@stud php-gtk-0.5.2]#
Any thoughts?
Thanks,
Trevor
Steph wrote:
Thankfully there are linux users who have hit this issue already. I'm
quoting csnyder@chxo.com's note from
http://gtk.php.net/manual/en/installunix.php
"Simple solution to PHP_GTK_ARG_ENABLE problem detailed below.
This must be
added to this page and the README, please oh please!
./buildconf
aclocal
./buildconf (again!)
./configure
make
make install"
Please let me know if it works, I'll definitely add it to the
manual page if
so!
- Steph
-----Original Message-----
From: Trevor Morrison [mailto:trevor@hailix.com]
Sent: 02 January 2004 16:59
To: php-gtk-general@lists.php.net
Subject: [PHP-GTK] Compile problems
Hi,
I am trying to install the php-gtk software on my RH 9 box and I am
getting the following compile error:
....
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main
-I/usr/include/php/Zend -I/usr/include/php/TSRM
checking for PHP extension directory...
/usr/lib/php/extensions/no-debug-non-zts-20020429
checking for re2c... exit 0;
checking for gawk... gawk
checking for PHP-GTK support... yes, shared
checking for gawk... (cached) gawk
checking for PHP executable in /usr/bin... found
./configure: line 2916: syntax error near unexpected token `debug,'
./configure: line 2916: `PHP_GTK_ARG_ENABLE(debug, whether to include
debugging
symbols,'
[root@stud php-gtk-0.5.2]#
I compiled PHP with the --enable-pcntl option and all went fine. The
./buildconf went fine but the ./configure dies with the errors above.
Any help is appreciated.
thanks,
-- Trevor Morrison
Hailix, LLC
trevor@hailix.com
-- PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-- Trevor Morrison
Hailix, LLC trevor@hailix.com
-- PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php