Compiling problems on a RedHat 7.1
| From: | Jesper K. Pedersen | Date: | Thu, 29 Nov 2001 19:59:20 +0000 |
| Subject: | Compiling problems on a RedHat 7.1 | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-765@lists.php.net to get a copy of this message | ||
I havent been able to find any texts mentioning any compilation problems
so I suspect I must be doing something completely wrong.
Im running a slightly updated RedHat 7.1
After having downloaded the 0.1.1 source, unpacked it and running
./buildconf to set up for my system I get the following warnings.
aclocal: macro `AC_ADD_LIBPATH' defined in acinclude.m4 but never used
aclocal: macro `AC_ADD_LIBRARY_WITH_PATH' defined in acinclude.m4 but
never used
aclocal: macro `AC_ADD_LIBRARY' defined in acinclude.m4 but never used
aclocal: macro `AC_ADD_INCLUDE' defined in acinclude.m4 but never used
If it is a bad error or just a warning I dont know. My knowledge of
buildconf rival my lack of knowledge of how to build a warp drive...
Well - in my eager to try out PHP-GTK I do the ./configure which runs
without any error messages.
Running the make is where I start to get into trouble.
I get the "usual" bunch of unsupported functions (the "Could not write
function"...) messages
But then gcc starts to "choke" finally dying after a bunch of parse
errors. (I have added the output of the make at the bottom of this
email)
Any help is greatly appreciated.
Thank you in advance,
Jesper K. Pedersen
------------------------------------------------------------------------------------------------
Output from "make"
------------------------------------------------------------------------------------------------
.
.
.
Could not write function draw_segments (parameter type GdkSegment*)
Could not write function draw_lines (parameter type GdkPoint*)
grep -h "^PHP_GTK_EXPORT_CE" gen_gtk.c gen_gdk.c | sed -e "s!^!extern !"
> gen_gtk.h
grep -h "PHP_GTK_EXPORT_FUNC" gen_gtk.c gen_gdk.c | sed -e 's!$!;!' >>
gen_gtk.h
/bin/sh /usr/local/src/php-gtk-0.1.1/libtool --mode=compile gcc -I.
-I/usr/local/src/php-gtk-0.1.1/ext/gtk+
-I/usr/local/src/php-gtk-0.1.1/main -I/usr/local/src/php-gtk-0.1.1
-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/local/src/php-gtk-0.1.1/main -DHAVE_CONFIG_H -g -O2 -c
php_gtk+.c
gcc -I. -I/usr/local/src/php-gtk-0.1.1/ext/gtk+
-I/usr/local/src/php-gtk-0.1.1/main -I/usr/local/src/php-gtk-0.1.1
-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/local/src/php-gtk-0.1.1/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-0.1.1/main/php_gtk.h:60: parse error before
`TSRMLS_DC'
In file included from /usr/local/src/php-gtk-0.1.1/main/php_gtk.h:65,
from php_gtk+.c:23:
/usr/local/src/php-gtk-0.1.1/ext/gtk+/php_gtk+.h:116: parse error before
`TSRMLS_DC'
/usr/local/src/php-gtk-0.1.1/ext/gtk+/php_gtk+.h:117: parse error before
`TSRMLS_DC'
php_gtk+.c:33: parse error before `TSRMLS_DC'
php_gtk+.c:140: parse error before `TSRMLS_DC'
php_gtk+.c: In function `release_gtk_object_rsrc':
php_gtk+.c:142: `rsrc' undeclared (first use in this function)
php_gtk+.c:142: (Each undeclared identifier is reported only once
php_gtk+.c:142: for each function it appears in.)
php_gtk+.c: At top level:
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: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 `/usr/local/src/php-gtk-0.1.1/ext/gtk+'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-gtk-0.1.1/ext/gtk+'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-gtk-0.1.1/ext'
make: *** [all-recursive] Error 1