compile error
| From: | Suraj.co.in | Date: | Mon, 05 Nov 2001 11:20:19 +0000 |
| Subject: | compile error | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-533@lists.php.net to get a copy of this message | ||
Hi,
I had been using php 0.0.4 and had no troubles with it. However when I
got the latest CVS from php 0.1.1, I had the following errors during
make:
<output from make>
gcc -I. -I/usr/local/src/php-gtk/ext/gtk+ -I/usr/local/src/php-gtk/main
-I/usr/local/src/php-gtk -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/X11R6/include -I/usr/local/src/php-gtk/main -DHAVE_CONFIG_H -g
-O2 -c php_gtk+.c -fPIC -DPIC -o php_gtk+.lo
In file included from php_gtk+.c:23:
/usr/local/src/php-gtk/main/php_gtk.h:62: parse error before `TSRMLS_DC'
In file included from /usr/local/src/php-gtk/main/php_gtk.h:67,
from php_gtk+.c:23:
/usr/local/src/php-gtk/ext/gtk+/php_gtk+.h:116: parse
error before `TSRMLS_DC'
/usr/local/src/php-gtk/ext/gtk+/php_gtk+.h:117: parse
error before `TSRMLS_DC'
php_gtk+.c:33: parse error before `TSRMLS_DC'
php_gtk+.c:143: parse error before `TSRMLS_DC'
php_gtk+.c: In function `release_gtk_object_rsrc':
php_gtk+.c:145: `rsrc' undeclared (first use in this function)
php_gtk+.c:145: (Each undeclared identifier is reported only once
php_gtk+.c:145: for each function it appears in.)
php_gtk+.c: At top level:
php_gtk+.c:149: parse error before `TSRMLS_DC'
php_gtk+.c: In function `php_gtk_xinit_gtk_plus':
php_gtk+.c:151: `module_number' undeclared (first use in this function)
php_gtk+.c:154: parse error before `TSRMLS_CC'
php_gtk+.c:155: parse error before `TSRMLS_CC'
php_gtk+.c:156: parse error before `TSRMLS_CC'
make[3]: *** [php_gtk+.lo] Error 1
make[3]: Leaving directory `/home/root/local/src/php-gtk/ext/gtk+'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/root/local/src/php-gtk/ext/gtk+'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/root/local/src/php-gtk/ext'
make: *** [all-recursive] Error 1
</output>
It is noteworthy to say that the same error occurred with the source tar
balls of php-gtk 0.1.0 as well as the CVS versions of the same.
I'm having php-4.0.6, is that ok?
Thanks in Advance,
-Suraj
--
+----------------------------------------------<suraj@chennailug.org>--+
| The wise in pursuit of worth, refrain |
| from speaking without stuff |
| (avoid speaking in vain - 8), Thirukkural |
+--<http://chennailug.org/~suraj/>-------------------------------------+