The dread "parse error before `<'" strikes again
| From: | Arnd Vehling | Date: | Tue, 26 Aug 2003 18:12:10 +0000 |
| Subject: | The dread "parse error before `<'" strikes again | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3732@lists.php.net to get a copy of this message | ||
Hello,
after like 12 hours of source installation madness and
continous different aproaches to getting php-gtk (0.5.3)
to compile i didnt get any further.
I did search the mailing list archive and found some hints like
- Add "ini_set("memory_limit", "32M");" to generator.php
and scheme.php
- Add "memory_limit = 64M" to php.ini
- Use
buildconf
aclocal
buildconf
configure
make
Nothing worked. I even installed the exactly required versions
of libtool (1.4.2), automake (1.4) and Autoconf (2.13). All to no
avail. I am getting desperate about this package.
The error message is always the same:
"ext/gtk+/gen_gtk.c:1: parse error before `<'"
Heres the php error message from "gen_gtk.c":
--<b>Warning</b>: fopen(--): failed to open stream: No such file or
directory in
<b>/home/av/src/php/php-gtk-0.5.2/generator/scheme.php</b> on line
<b>110</b><br
/>
<br />
<b>Warning</b>: fgets(): supplied argument is not a valid stream
resource in <b
/home/av/src/php/php-gtk-0.5.2/generator/scheme.php</b> on line <b>34</b><br />-- Here is the line from "Makefile which produces the error: $(PHP) -f $(top_srcdir)/generator/generator.php -- -o ext/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. Below you find the transcript of an install with the complete make output. I would be really glad if someone could help me get php-gtk running. Version Information is: gtk-php 0.5.2 php 4.3.2 gtk+ 2.2.2 thanks, Arnd ---------------- INSTALLATION TRANSCRIPT ----------------------------- [av@einheit4] ~/src/php : automake --version automake (GNU automake) 1.4 [av@einheit4] ~/src/php : autoconf --version Autoconf version 2.13 [av@einheit4] ~/src/php : libtool -. -version ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52) [av@einheit4] ~/src/php : cd php-gtk-0.5.2/ /* Freshly extracted */ [av@einheit4] ~/src/php/php-gtk-0.5.2 : ./buildconf You should update your `aclocal.m4' by running aclocal. Configuring for: PHP Api Version: 20020918 Zend Module Api No: 20020429 Zend Extension Api No: 20021010 rebuilding configure [av@einheit4] ~/src/php/php-gtk-0.5.2 : aclocal [av@einheit4] ~/src/php/php-gtk-0.5.2 : ./buildconf rebuilding configure rebuilding config.h.in [av@einheit4] ~/src/php/php-gtk-0.5.2 : ./configure creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for PHP prefix... /usr/local checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/m ain -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-n on-zts-20020429 checking how to run the C preprocessor... gcc -E checking for mawk... mawk checking for PHP-GTK support... yes, shared checking for mawk... (cached) mawk checking for PHP executable in /usr/local/bin... found checking for GtkComboButton support... yes checking for GdkPixbuf support... no checking for gtk-config... /usr/bin/gtk-config checking for GTK - version >= 1.2.6... yes checking for gtkhtml support... nochecking for libglade-config... /usr/bin/libglade-config checking for libglade support... yes checking for libglade... yes checking for GtkPieMenu support... yes checking for Scintilla support... no checking for GtkScrollpane support... yes checking for GtkSPaned support... yes checking for GtkSQPane support... yes checking whether to include debugging symbols... no checking for Cygwin environment... no checking for mingw32 environment... no checking host system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking for object suffix... o checking for executable suffix... no checking command to parse /usr/bin/nm -B output... ok checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking whether -lc should be explicitly linked in... no creating libtool updating cache ./config.cache creating ./config.status creating config.h [av@einheit4] ~/src/php/php-gtk-0.5.2 : make /usr/local/bin/php -f /home/av/src/php/php-gtk-0.5.2/generator/generator.php -- -o ext/gtk%2b/gtk.overrides -p Gtk -r /home/av/src/php/php-gtk-0.5.2/ext/gtk%2b/ Parsing file "--". /usr/local/bin/php -f /home/av/src/php/php-gtk-0.5.2/generator/generator.php -- -o ext/gtk%2b/gdk.overrides -p Gdk ext/gtk%2b/gdk.defs > ext/gtk+/gen_gdk.c Loading cache "--.cache" grep -h "^PHP_GTK_EXPORT_CE" ext/gtk+/gen_gtk.c ext/gtk+/gen_gdk.c | sed -e "s!^ !extern !" > ext/gtk+/gen_gtk.h grep -h "PHP_GTK_EXPORT_FUNC" ext/gtk+/gen_gtk.c ext/gtk+/gen_gdk.c | sed -e 's! $!;!' >> ext/gtk+/gen_gtk.h /bin/sh /home/av/src/php/php-gtk-0.5.2/libtool --mode=compile gcc -I./ext/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/p hp-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/in clude/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gnome-xml -I/usr/include/l ibglade-1.0 -I/usr/X11R6/include -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /home/ av/src/php/php-gtk-0.5.2/./ext/gtk+/php_gtk+.c -o ./ext/gtk+/php_gtk+.lo gcc -I./ext/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 /hom e/av/src/php/php-gtk-0.5.2/./ext/gtk+/php_gtk+.c -fPIC -DPIC -o ./ext/gtk+/php_ gtk+.lo /bin/sh /home/av/src/php/php-gtk-0.5.2/libtool --mode=compile gcc -I./ext/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/p hp-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/in clude/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gnome-xml -I/usr/include/l ibglade-1.0 -I/usr/X11R6/include -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /home/ av/src/php/php-gtk-0.5.2/./ext/gtk+/php_gdk.c -o ./ext/gtk+/php_gdk.lo gcc -I./ext/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 /hom e/av/src/php/php-gtk-0.5.2/./ext/gtk+/php_gdk.c -fPIC -DPIC -o ./ext/gtk+/php_g dk.lo/bin/sh /home/av/src/php/php-gtk-0.5.2/libtool --mode=compile gcc -I./ext/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/p hp-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/in clude/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gnome-xml -I/usr/include/l ibglade-1.0 -I/usr/X11R6/include -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /home/ av/src/php/php-gtk-0.5.2/./ext/gtk+/php_gtk+_types.c -o ./ext/gtk+/php_gtk+_type s.lo gcc -I./ext/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 /hom e/av/src/php/php-gtk-0.5.2/./ext/gtk+/php_gtk+_types.c -fPIC -DPIC -o ./ext/gtk +/php_gtk+_types.lo /home/av/src/php/php-gtk-0.5.2/./ext/gtk+/php_gtk+_types.c: In function `php_gdk _event_new': /home/av/src/php/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 /home/av/src/php/php-gtk-0.5.2/libtool --mode=compile 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-g tk-0.5.2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/inc lude/php/Zend -I/usr/local/include/php/TSRM -I/usr/include/gtk-1.2 -I/usr/includ e/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gnome-xml -I/usr/include/libgl ade-1.0 -I/usr/X11R6/include -DHAVE_CONFIG_H -g -O2 -prefer-pic -c ext/gtk+/g en_gtk.c -o ext/gtk+/gen_gtk.lo gcc -Iext/gtk+/ -I/home/av/src/php/php-gtk-0.5.2/ext/gtk+/ -DPHP_ATOM_INC -I/hom e/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:1: parse error before `<' ext/gtk+/gen_gtk.c:2: malformed floating constant ext/gtk+/gen_gtk.c:4: malformed 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/local/include/php/Zend/zend.h:35,
from /usr/local/include/php/main/php.h:34,
from /home/av/src/php/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: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:174: warning: no semicolon at end of struct or union
/usr/include/gconv.h:177: parse error before `}'
/usr/include/gconv.h:177: warning: data definition has no type or
storage class
In file included from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from /usr/local/include/php/Zend/zend.h:35,
from /usr/local/include/php/main/php.h:34,
from /home/av/src/php/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
In file included from /usr/include/stdio.h:72,
from /usr/local/include/php/Zend/zend.h:35,
from /usr/local/include/php/main/php.h:34,
from /home/av/src/php/php-gtk-0.5.2/main/php_gtk.h:26,
from ext/gtk+/gen_gtk.c:5:
/usr/include/libio.h:350: parse error before `size_t'
/usr/include/libio.h:359: parse error before `size_t'
/usr/include/libio.h:467: parse error before `_IO_sgetn'
/usr/include/libio.h:467: parse error before `size_t'
/usr/include/libio.h:467: warning: data definition has no type or
storage class
In file included from /usr/local/include/php/Zend/zend.h:35,
from /usr/local/include/php/main/php.h:34,
from /home/av/src/php/php-gtk-0.5.2/main/php_gtk.h:26,
from ext/gtk+/gen_gtk.c:5:
/usr/include/stdio.h:279: parse error before `size_t'
/usr/include/stdio.h:286: parse error before `size_t'
/usr/include/stdio.h:317: parse error before `size_t'
/usr/include/stdio.h:321: parse error before `size_t'
/usr/include/stdio.h:489: parse error before `fread'
/usr/include/stdio.h:489: parse error before `size_t'
/usr/include/stdio.h:490: warning: data definition has no type or
storage class
/usr/include/stdio.h:492: parse error before `fwrite'
/usr/include/stdio.h:492: parse error before `size_t'
/usr/include/stdio.h:493: warning: data definition has no type or
storage class
/usr/include/stdio.h:504: parse error before `fread_unlocked'
/usr/include/stdio.h:504: parse error before `size_t'
/usr/include/stdio.h:505: warning: data definition has no type or
storage class
/usr/include/stdio.h:506: parse error before `fwrite_unlocked'
/usr/include/stdio.h:506: parse error before `size_t'
/usr/include/stdio.h:507: warning: data definition has no type or
storage class
In file included from /usr/local/include/php/Zend/../main/php_config.h:2489,
from /usr/local/include/php/Zend/zend_config.h:1,
from /usr/local/include/php/Zend/zend.h:52,
from /usr/local/include/php/main/php.h:34,
from /home/av/src/php/php-gtk-0.5.2/main/php_gtk.h:26,
from ext/gtk+/gen_gtk.c:5:
/usr/include/stdlib.h:137: parse error before `__ctype_get_mb_cur_max'
/usr/include/stdlib.h:137: warning: data definition has no type or
storage class
In file included from /usr/include/sys/types.h:266,
from /usr/include/stdlib.h:414,
from
/usr/local/include/php/Zend/../main/php_config.h:2489,
from /usr/local/include/php/Zend/zend_config.h:1,
from /usr/local/include/php/Zend/zend.h:52,
from /usr/local/include/php/main/php.h:34,
from /home/av/src/php/php-gtk-0.5.2/main/php_gtk.h:26,
from ext/gtk+/gen_gtk.c:5:
/usr/include/bits/pthreadtypes.h:50: parse error before `size_t'
/usr/include/bits/pthreadtypes.h:50: warning: no semicolon at end of
struct or u
nion
/usr/include/bits/pthreadtypes.h:53: parse error before `__stacksize'
/usr/include/bits/pthreadtypes.h:53: warning: data definition has no
type or sto
rage class
/usr/include/bits/pthreadtypes.h:54: warning: data definition has no
type or sto
rage class
In file included from /usr/local/include/php/Zend/../main/php_config.h:2489,
from /usr/local/include/php/Zend/zend_config.h:1,
from /usr/local/include/php/Zend/zend.h:52,
from /usr/local/include/php/main/php.h:34,
from /home/av/src/php/php-gtk-0.5.2/main/php_gtk.h:26,
from ext/gtk+/gen_gtk.c:5:
/usr/include/stdlib.h:431: parse error before `size_t'
/usr/include/stdlib.h:460: parse error before `size_t'
/usr/include/stdlib.h:554: parse error before `__size'
/usr/include/stdlib.h:556: parse error before `__nmemb'
/usr/include/stdlib.h:565: parse error before `size_t'
In file included from /usr/include/stdlib.h:576,
from/usr/local/include/php/Zend/../main/php_config.h:2489,
from /usr/local/include/php/Zend/zend_config.h:1,
from /usr/local/include/php/Zend/zend.h:52,
from /usr/local/include/php/main/php.h:34,
from /home/av/src/php/php-gtk-0.5.2/main/php_gtk.h:26,
from ext/gtk+/gen_gtk.c:5:
/usr/include/alloca.h:33: parse error before `__size'
In file included from /usr/local/include/php/Zend/../main/php_config.h:2489,
from /usr/local/include/php/Zend/zend_config.h:1,
from /usr/local/include/php/Zend/zend.h:52,
from /usr/local/include/php/main/php.h:34,
from /home/av/src/php/php-gtk-0.5.2/main/php_gtk.h:26,
from ext/gtk+/gen_gtk.c:5:
/usr/include/stdlib.h:581: parse error before `__size'
/usr/include/stdlib.h:731: parse error before
size_t'/usr/include/stdlib.h:731: parse error before size_t'
/usr/include/stdlib.h:735: parse error before `size_t'
/usr/include/stdlib.h:804: parse error before `size_t'
/usr/include/stdlib.h:807: parse error before `size_t'
/usr/include/stdlib.h:811: parse error before `size_t'
/usr/include/stdlib.h:814: parse error before `size_t'
/usr/include/stdlib.h:822: parse error before `size_t'
/usr/include/stdlib.h:826: parse error before `size_t'
/usr/include/stdlib.h:833: parse error before `mbstowcs'
/usr/include/stdlib.h:834: parse error before `size_t'
/usr/include/stdlib.h:834: warning: data definition has no type or
storage class
/usr/include/stdlib.h:836: parse error before `wcstombs'
/usr/include/stdlib.h:837: parse error before `size_t'
/usr/include/stdlib.h:838: warning: data definition has no type or
storage class
[REST OMITTED PLEASE TELL ME IF YOU NEED COMPLETE MAKE OUTPUT]