Re: The dread "parse error before `<'" strikes again
| From: | Alan Knowles | Date: | Wed, 27 Aug 2003 06:25:55 +0000 |
| Subject: | Re: The dread "parse error before `<'" strikes again | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3736@lists.php.net to get a copy of this message | ||
Ok, had a look a this on a machine here...
the '--' is correct - its supposted to be there..
try running the expanded version on your command line and see what is output.
/usr/bin/php -f /usr/src/php/php-gtk/generator/generator.php -- -o /usr/src/php/php-gtk/ext/gtk%2b/gdk.overrides -p Gdk
/usr/src/php/php-gtk/ext/gtk%2b/gdk.defs | more
(replace the /usr/src/php/php-gtk with /home/av/src/php/php-gtk-0.5.2)
you should be able to see what it is doing when you run make (it will expand the command below.. - now see if that is the same as you typed to do it manually..
Regards
Alan
Arnd Vehling wrote:
Hello Alan, thank you for the reply. Alan Knowles wrote:-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com$(PHP) -f $(top_srcdir)/generator/generator.php -- -oI needed to remove "-- -o" before it would compile. my php doesnt has an "-o" option it seems. "Unexpectetly" i now get a different compile error: gcc -Iext/gtk+/ -I/home/av/src/php/php-gtk-0.5.2/ext/gtk+/ -DPHP_ATOM_INC -I/home/av/src/php/php-gtk-0.5.2/include -I/home/av/src/php/php-gtk-0.5.2/main -I/home/av/src/php/php-gtk-0.5.2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -I/usr/X11R6/include -DHAVE_CONFIG_H -g -O2 -c ext/gtk+/gen_gtk.c -fPIC -DPIC -o ext/gtk+/gen_gtk.lo ext/gtk+/gen_gtk.c:2: unterminated character constant In gen_gtk.c is now: Notice</b>: Parentheses don't match in <b>/home/av/src/php/php-gtk-0.5.2/gen erator/scheme.php</b> on line <b>63 The according line of generator.php shows -- global $matcher; -- in function register_types($parser = null) Me think autoconf/buildconf is an odd tool. If you search the php-general list for install problems it seems that autoconf/buildconf creates most of em problem. regards, Arndext/gtk%2b/gtk.overrides -p Gtk -r $(top_srcdir)/ext/gtk%2b/gdk.defs ext/gtk%2b/gtk.defs > ext/gtk+/gen_gtk.c" I guess the "--" is completly wrong or not escaped accordingly. Probably a problem with buildconfig/configure but i never used autoconf/libtool yet so i just dont know.Well guessed .. - you can remove it from the makefiles manually and remove all the gen_* files