Re: ./buildconf not working with php5/head php-gtk/head
| From: | Andrei Zmievski | Date: | Mon, 18 Apr 2005 00:44:37 +0000 |
| Subject: | Re: ./buildconf not working with php5/head php-gtk/head | ||
| References: | 1 2 3 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1072@lists.php.net to get a copy of this message | ||
Could you please check if you have a glibconfig.h file in your glib-2.0 include directories?
pkg-config --cflags glib-2.0
This should tell you what they are.
-Andrei
On Apr 17, 2005, at 3:13 PM, Ivan Rodriguez wrote:
Hi I have the same problem, but with automake 1.4, autoconf 2.13 and libtool 1.4.3 I solved problem, now i have other problem when i run make: [root@localhost php-gtk]# make /bin/sh /home/epplestun/php-dev/gtk/php-gtk/libtool --mode=compile gcc -I./ext/gtk+/ -I/home/epplestun/php-dev/gtk/php-gtk/./ext/gtk+/ -DPHP_ATOM_INC -I/home/epplestun/php-dev/gtk/php-gtk/include -I/home/epplestun/php-dev/gtk/php-gtk/main -I/home/epplestun/php-dev/gtk/php-gtk -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /home/epplestun/php-dev/gtk/php-gtk/./ext/gtk+/php_gtk+.c -o ./ext/gtk+/php_gtk+.lo gcc -I./ext/gtk+/ -I/home/epplestun/php-dev/gtk/php-gtk/./ext/gtk+/ -DPHP_ATOM_INC -I/home/epplestun/php-dev/gtk/php-gtk/include -I/home/epplestun/php-dev/gtk/php-gtk/main -I/home/epplestun/php-dev/gtk/php-gtk -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -DHAVE_CONFIG_H -g -O2 -c /home/epplestun/php-dev/gtk/php-gtk/./ext/gtk+/php_gtk+.c -fPIC -o ./ext/gtk+/.libs/php_gtk+.o In file included from /usr/include/glib-2.0/gobject/gboxed.h:26,from /usr/include/glib-2.0/glib-object.h:25, from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gtype.h:92: error: syntax error before "typedef" /usr/include/glib-2.0/gobject/gtype.h:169: error: syntax error before "gchar" /usr/include/glib-2.0/gobject/gtype.h:426: error: syntax error before "gchar" /usr/include/glib-2.0/gobject/gtype.h:427: error: syntax error before "gchar" /usr/include/glib-2.0/gobject/gtype.h:431: error: syntax error before "G_GNUC_INTERNAL" /usr/include/glib-2.0/gobject/gtype.h:431: warning: data definition has no type or storage class /usr/include/glib-2.0/gobject/gtype.h:432: error: syntax error before "G_GNUC_INTERNAL" /usr/include/glib-2.0/gobject/gtype.h:432: warning: data definition has no type or storage class /usr/include/glib-2.0/gobject/gtype.h:433: error: syntax error before "G_GNUC_INTERNAL" /usr/include/glib-2.0/gobject/gtype.h:433: warning: data definition has no type or storage class /usr/include/glib-2.0/gobject/gtype.h:434: error: syntax error before "G_GNUC_INTERNAL" /usr/include/glib-2.0/gobject/gtype.h:434: warning: data definition has no type or storage class /usr/include/glib-2.0/gobject/gtype.h:435: error: syntax error before "G_GNUC_INTERNAL" /usr/include/glib-2.0/gobject/gtype.h:435: warning: data definition has no type or storage class /usr/include/glib-2.0/gobject/gtype.h:436: error: syntax error before "G_GNUC_INTERNAL" /usr/include/glib-2.0/gobject/gtype.h:436: warning: data definition has no type or storage class /usr/include/glib-2.0/gobject/gtype.h:437: error: syntax error before "G_GNUC_INTERNAL" /usr/include/glib-2.0/gobject/gtype.h:437: warning: data definition has no type or storage class /usr/include/glib-2.0/gobject/gtype.h:438: error: syntax error before "G_GNUC_INTERNAL" /usr/include/glib-2.0/gobject/gtype.h:438: warning: data definition has no type or storage class /usr/include/glib-2.0/gobject/gtype.h:439: error: syntax error before "G_GNUC_INTERNAL" /usr/include/glib-2.0/gobject/gtype.h:439: warning: data definition has no type or storage class In file included from /usr/include/glib-2.0/glib-object.h:25,from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gboxed.h:28: error: syntax error before "G_BEGIN_DECLS" /usr/include/glib-2.0/gobject/gboxed.h:36: error: syntax error before "typedef" In file included from /usr/include/glib-2.0/glib-object.h:26,from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/genums.h:28: error: syntax error before "G_BEGIN_DECLS" /usr/include/glib-2.0/gobject/genums.h:46: error: syntax error before "typedef" In file included from /usr/include/glib-2.0/gobject/gobject.h:27,from /usr/include/glib-2.0/glib-object.h:27, from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gvalue.h:30: error: syntax error before "G_BEGIN_DECLS" /usr/include/glib-2.0/gobject/gvalue.h:41: error: syntax error before "typedef" In file included from /usr/include/glib-2.0/gobject/gobject.h:28,from /usr/include/glib-2.0/glib-object.h:27, from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gparam.h:30: error: syntax error before "G_BEGIN_DECLS" /usr/include/glib-2.0/gobject/gparam.h:49: error: syntax error before "typedef" /usr/include/glib-2.0/gobject/gparam.h:141: error: syntax error before "gchar" /usr/include/glib-2.0/gobject/gparam.h:142: error: syntax error before "gchar" /usr/include/glib-2.0/gobject/gparam.h:143: error: syntax error before "gchar" In file included from /usr/include/glib-2.0/gobject/gobject.h:29,from /usr/include/glib-2.0/glib-object.h:27, from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gclosure.h:28: error: syntax error before "G_BEGIN_DECLS" /usr/include/glib-2.0/gobject/gclosure.h:39: error: syntax error before "typedef" In file included from /usr/include/glib-2.0/gobject/gsignal.h:29,from /usr/include/glib-2.0/gobject/gobject.h:30, from /usr/include/glib-2.0/glib-object.h:27, from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gmarshal.h:4: error: syntax error before "G_BEGIN_DECLS" /usr/include/glib-2.0/gobject/gmarshal.h:7: error: syntax error before "extern" In file included from /usr/include/glib-2.0/gobject/gobject.h:30,from /usr/include/glib-2.0/glib-object.h:27, from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gsignal.h:31: error: syntax error before "G_BEGIN_DECLS" /usr/include/glib-2.0/gobject/gsignal.h:34: error: syntax error before "typedef" /usr/include/glib-2.0/gobject/gsignal.h:144: error: syntax error before "gchar" In file included from /usr/include/glib-2.0/glib-object.h:27,from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gobject.h:32: error: syntax error before "G_BEGIN_DECLS" /usr/include/glib-2.0/gobject/gobject.h:49: error: syntax error before "typedef" In file included from /usr/include/glib-2.0/glib-object.h:29,from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gparamspecs.h:33: error: syntax error before "G_BEGIN_DECLS" /usr/include/glib-2.0/gobject/gparamspecs.h:102: error: syntax error before "typedef" /usr/include/glib-2.0/gobject/gparamspecs.h:198: error: syntax error before "gunichar" /usr/include/glib-2.0/gobject/gparamspecs.h:198: warning: no semicolon at end of struct or union /usr/include/glib-2.0/gobject/gparamspecs.h:337: error: syntax error before "gunichar" In file included from /usr/include/glib-2.0/glib-object.h:31,from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gsourceclosure.h:28: error: syntax error before "G_BEGIN_DECLS" /usr/include/glib-2.0/gobject/gsourceclosure.h:30: error: syntax error before "void" /usr/include/glib-2.0/gobject/gsourceclosure.h:30: error: syntax error before '*' token In file included from /usr/include/glib-2.0/glib-object.h:33,from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gtypemodule.h:29: error: syntax error before "G_BEGIN_DECLS" /usr/include/glib-2.0/gobject/gtypemodule.h:31: error: syntax error before "typedef" In file included from /usr/include/glib-2.0/glib-object.h:34,from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gtypeplugin.h:28: error: syntax error before "G_BEGIN_DECLS" /usr/include/glib-2.0/gobject/gtypeplugin.h:40: error: syntax error before "typedef" In file included from /usr/include/glib-2.0/glib-object.h:36,from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gvaluearray.h:37: error: syntax error before "typedef" /usr/include/glib-2.0/gobject/gvaluearray.h:66: error: syntax error before "GCompareDataFunc" In file included from /usr/include/glib-2.0/glib-object.h:37,from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:56,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/glib-2.0/gobject/gvaluetypes.h:49: error: syntax error before "void" /usr/include/glib-2.0/gobject/gvaluetypes.h:86: error: syntax error before "gchar" In file included from /usr/include/gtk-1.2/gdk/gdk.h:31,from /usr/include/gtk-1.2/gtk/gtk.h:31, from/home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:57,from/home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /usr/include/gtk-1.2/gdk/gdktypes.h:52: error: syntax error before "typedef" In file included from /home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:23: /home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h: In function `phpg_object_check': /home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:279: error: syntax error before "G_LIKELY" /home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h: At top level: /home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:279: error: syntax error before '}' token /home/epplestun/php-dev/gtk/php-gtk/main/php_gtk.h:328: error: syntax error before '*' token /home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c: In function `register_stock_constants': /home/epplestun/php-dev/gtk/php-gtk/ext/gtk+/php_gtk+.c:162: warning: assignment makes pointer from integer without a cast make: *** [ext/gtk+/php_gtk+.lo] Error 1 I don't know why but i get this error when i run make command El dom, 17-04-2005 a las 21:48, Andrei Zmievski escribió:This is disturbing. We may have to involve Jani here since he knows best about these sorts of things. I can't imagine why this macro would not be found, since it is a default autoconf macro. Jani, any ideas? I believe Markus checked out php-gtk HEAD and tried to run ./buildconf in it against the latest PHP 5.1. -Andrei On Apr 17, 2005, at 12:40 PM, Markus Fischer wrote:-- Ivan Rodriguez <epplestun@gmail.com> -- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpHi, I tried getting php-gtk head running with php5 head, but it breaks at running ./buildconf: $ ./buildconf Configuring for:PHP Api Version: 20041225 Zend Module Api No: 20041031Zend Extension Api No: 220041031 autoconf: Undefined macros:configure.in:20: AC_MSG_ERROR(Cannot find php-config. Please use--with-php-config=PATH) make: *** [buildmk.stamp] Error 1 I tried the fix written by Andrei athttp://marc.theaimsgroup.com/?l=php-gtk-dev&m=111216704228211&w=2 but it didn't work either. My exakt versions are is 2.13 . Is there anything else to watch out for? - Markus -- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php