php_gtk+.c:33: parse error before `TSRMLS_DC'
[email protected] (Jo Giraerts)
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <[email protected]> |
Hi. I tried compiling php-gtk-0.1 on my debian 2.2(stable)-box but gcc choked on some parse-errors. included you find the output of ./configure, and the complete output of make. I use php-4.0.6, with this configure-line: './configure' '--with-xml' '--with-apxs=/usr/local/apache/bin/apxs' '--with-sybase=/opt/sybase' '--with-swf=/usr/local' '--enable-ftp' '--with-config-file-path=/usr/local/apache/conf' '--with-gd' '--with-pdflib=/usr/local' '--enable-debug=no' '--enable-track-vars' '--enable-calendar' '--with-readline' '--enable-trans-sid' '--enable-sockets' '--enable-yp' and gtk-version = 1.2.10. I tried to locate the TSRMLS_CC and TSRMLS_DC-macro's (as i expect them to be macro's) but no luck finding them in either the php-gtk-package or /usr/local/include/php. anybody knows this error, or even better: what i can do about it ;)? -- Jo Giraerts Computerprutser Life BVBA Interleuvenlaan 15A, 3001 LEUVEN, BELGIUM icq:81939849, email:[email protected], ph0ne:+32(0)16 20 89 61 pgp-key available at: htt://www.keyserver.net. fingerprint: 81EE B1FD 88E2 A03A 4F49 6D8A 806E 2220 9C2F 918B I've got these opium queens that move around my space, I said it's waste not, want not, I think I'll take another, I'm holding all this pain that I'm trying to smother. <branvan3000 - Afrodisiac>
make.log
(text/plain, 2.4 KB)
jo@ninja:~/download/php-gtk-0.1>make
Making all in ext
make[1]: Entering directory `/nishome/jo/download/php-gtk-0.1/ext'
Making all in gtk+
make[2]: Entering directory `/nishome/jo/download/php-gtk-0.1/ext/gtk+'
make[3]: Entering directory `/nishome/jo/download/php-gtk-0.1/ext/gtk+'
/bin/sh /nishome/jo/download/php-gtk-0.1/libtool --mode=compile gcc -I. -I/nishome/jo/download/php-gtk-0.1/ext/gtk+ -I/nishome/jo/download/php-gtk-0.1/main -I/nishome/jo/download/php-gtk-0.1 -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/X11R6/include -I/usr/include/gnome-xml -I/nishome/jo/download/php-gtk-0.1/main -DHAVE_CONFIG_H -g -O2 -c php_gtk+.c
gcc -I. -I/nishome/jo/download/php-gtk-0.1/ext/gtk+ -I/nishome/jo/download/php-gtk-0.1/main -I/nishome/jo/download/php-gtk-0.1 -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/X11R6/include -I/usr/include/gnome-xml -I/nishome/jo/download/php-gtk-0.1/main -DHAVE_CONFIG_H -g -O2 -c -fPIC -DPIC php_gtk+.c -o php_gtk+.lo
In file included from php_gtk+.c:23:
/nishome/jo/download/php-gtk-0.1/main/php_gtk.h:60: parse error before `TSRMLS_DC'
In file included from /nishome/jo/download/php-gtk-0.1/main/php_gtk.h:65,
from php_gtk+.c:23:
/nishome/jo/download/php-gtk-0.1/ext/gtk+/php_gtk+.h:116: parse error before `TSRMLS_DC'
/nishome/jo/download/php-gtk-0.1/ext/gtk+/php_gtk+.h:117: parse error before `TSRMLS_DC'
php_gtk+.c:33: parse error before `TSRMLS_DC'
php_gtk+.c:146: parse error before `TSRMLS_DC'
php_gtk+.c: In function `php_gtk_xinit_gtk_plus':
php_gtk+.c:148: `module_number' undeclared (first use in this function)
php_gtk+.c:148: (Each undeclared identifier is reported only once
php_gtk+.c:148: for each function it appears in.)
php_gtk+.c:151: parse error before `TSRMLS_CC'
php_gtk+.c:152: parse error before `TSRMLS_CC'
php_gtk+.c:153: parse error before `TSRMLS_CC'
make[3]: *** [php_gtk+.lo] Error 1
make[3]: Leaving directory `/nishome/jo/download/php-gtk-0.1/ext/gtk+'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/nishome/jo/download/php-gtk-0.1/ext/gtk+'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/nishome/jo/download/php-gtk-0.1/ext'
make: *** [all-recursive] Error 1
configure.log
(text/plain, 2.4 KB)
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 for PHP prefix... /usr/local checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM checking for PHP extension directory... /usr/local/lib/php/20001222 checking for PHP-GTK support... yes, shared checking for mawk... mawk checking for gtk-config... /usr/bin/gtk-config checking for GTK - version >= 1.2.6... yes checking for libglade support... yes checking for libglade-config... /usr/bin/libglade-config checking for libglade... yes checking host system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for ranlib... ranlib checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes updating cache ./config.cache loading cache ./config.cache within ltconfig checking for object suffix... o checking for executable suffix... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC 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 if gcc static flag -static works... -static checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -B output... ok checking how to hardcode library paths into programs... immediate checking for /usr/bin/ld option to reload object files... -r checking dynamic linker characteristics... 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 for objdir... .libs creating libtool updating cache ./config.cache loading cache ./config.cache checking for working mkdir -p... yes creating config_vars.mk creating ext/gtk+/Makefile creating ext/libglade/Makefile creating ./Makefile creating main/Makefile creating ext/Makefile creating Makefile updating cache ./config.cache creating ./config.status creating config.h