Re: Can't build php-gtk

From: Date: Mon, 19 Nov 2001 04:53:20 +0000
Subject: Re: Can't build php-gtk
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-171@lists.php.net to get a copy of this message
Try CVS version of PHP and start over. version 0.0.2? blimey! ----- Original Message ----- From: "Manuel Lemos" <mlemos@acm.org> To: <php-gtk-dev@lists.php.net> Sent: Monday, November 19, 2001 4:46 AM Subject: [PHP-GTK-DEV] Can't build php-gtk > Hello, > > I was willing to build php-gtk with PHP 4.0.6 under SuSE-Linux but every > version that I got has all sorts of problems. I wonder if anybody has an > idea of what is the matter. I tried the 0.1.1 and the latest CVS to see > if anything has been fixed. At the end of this message follows the build > steps captured with the script command. Version 0.1 also does not seem > to build with the same problems. > > I also managed to build version 0.0.2 after hacking config_vars.mk to > add gtk-config --cflags that for some reason where not being added, but > when I tried to run test/gtk.php it exit with the error below. I recall > that already made this work in the past. I don't know why it does not > work now. > > Regards, > Manuel Lemos > > <br> > <b>Warning</b>: Invalid library (maybe not a PHP library) 'php_gtk.so' > in <b>test/gtk.php</b> on line <b>7</b><br> > <br> > <b>Fatal error</b>: Undefined class name 'gtk' in > <b>test/gtk.php</b> > on line <b>607</b><br> > > Script started on Mon Nov 19 02:27:47 2001 > mlemos:~/php-gtk/php-gtk # ./buildconf > aclocal: macro `AC_ADD_LIBRARY' defined in acinclude.m4 but never used > aclocal: macro `AC_ADD_INCLUDE' defined in acinclude.m4 but never used > 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 > mlemos:~/php-gtk/php-gtk # ./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 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/extensions/no-debug-non-zts-20001222 > checking for PHP-GTK support... yes, shared > checking for mawk... no > checking for gawk... gawk > checking for gtk-config... /opt/gnome/bin/gtk-config > checking for GTK - version >= 1.2.6... yes > checking for libglade support... yes > checking for libglade-config... /opt/gnome/bin/libglade-config > checking for libglade... yes > checking for Scintilla support... no > checking for GtkSQPane support... 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/i486-suse-linux/bin/ld > checking if the linker (/usr/i486-suse-linux/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/i486-suse-linux/bin/ld) is GNU ld... yes > checking whether the linker (/usr/i486-suse-linux/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/i486-suse-linux/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 ext/sqpane/Makefile > creating ./Makefile > creating main/Makefile > creating ext/Makefile > creating Makefile > updating cache ./config.cache > creating ./config.status > creating config.h > mlemos:~/php-gtk/php-gtk # make > Making all in ext > make[1]: Entering directory `/root/php-gtk/php-gtk/ext' > Making all in gtk+ > make[2]: Entering directory `/root/php-gtk/php-gtk/ext/gtk+' > make[3]: Entering directory `/root/php-gtk/php-gtk/ext/gtk+' > php -q /root/php-gtk/php-gtk/generator/generator.php -o > ext/gtk%2b/gtk.overrides -p Gtk -r > /root/php-gtk/php-gtk/ext/gtk%2b/gdk.defs ext/gtk%2b/gtk.defs > > gen_gtk.c > Parsing file "/root/php-gtk/php-gtk/ext/gtk+/gdk.defs". > Parsing file "ext/gtk+/gtk.defs". > Parsing file "ext/gtk+/gtk-extrafuncs.defs". > Could not write function button_box_get_child_size_default (parameter > type gint*) > Could not write function button_box_get_child_ipadding_default > (parameter type gint*) > Could not write function gtk_button_box_child_requisition (parameter > type int*) > Could not write function gtk_item_factory_parse_rc_scanner (parameter > type GScanner*) > Could not write function gtk_item_factory_dump_items (parameter type > GtkPatternSpec*) > Could not write function gtk_item_factory_dump_rc (parameter type > GtkPatternSpec*) > Could not write function gtk_item_factory_print_func (parameter type > gpointer) > Could not write function gtk_item_factory_popup_data_from_widget (return > type gpointer) > Could not write function init_add (parameter type GtkFunction) > Could not write function preview_get_info (return type GtkPreviewInfo*) > Could not write function rc_set_default_files (parameter type gchar**) > Could not write function rc_get_default_files (return type gchar**) > Could not write function rc_add_widget_name_style (parameter type > GtkRcStyle*) > Could not write function rc_add_widget_class_style (parameter type > GtkRcStyle*) > Could not write function rc_add_class_style (parameter type GtkRcStyle*) > Could not write function rc_set_image_loader (parameter type > GtkImageLoader) > Could not write function rc_find_pixmap_in_path (parameter type > GScanner*) > Could not write function rc_parse_color (parameter type GScanner*) > Could not write function rc_parse_state (parameter type GScanner*) > Could not write function rc_parse_priority (parameter type GScanner*) > Could not write function gtk_draw_polygon (parameter type GdkPoint*) > Could not write function gtk_paint_polygon (parameter type GdkPoint*) > Could not write method GtkWidget::selection_add_targets (parameter type > const-GtkTargetEntry*) > Could not write method GtkWidget::selection_clear (parameter type > GdkEventSelection*) > Could not write method GtkWidget::destroyed (parameter type GtkWidget**) > Could not write method GtkWidget::get_pointer (parameter type gint*) > Could not write method GtkWidget::modify_style (parameter type > GtkRcStyle*) > Could not write method GtkWidget::path (parameter type guint*) > Could not write method GtkWidget::class_path (parameter type guint*) > Could not write method GtkPixmap::get (parameter type GdkPixmap**) > Could not write constructor gtk_image_new (parameter type GdkImage*) > Could not write method GtkImage::set (parameter type GdkImage*) > Could not write method GtkImage::get (parameter type GdkImage**) > Could not write method GtkTree::remove_items (parameter type GList*) > Could not write method GtkToolbar::append_item (parameter type > GtkSignalFunc) > Could not write method GtkToolbar::prepend_item (parameter type > GtkSignalFunc) > Could not write method GtkToolbar::insert_item (parameter type > GtkSignalFunc) > Could not write method GtkToolbar::append_element (parameter type > GtkSignalFunc) > Could not write method GtkToolbar::prepend_element (parameter type > GtkSignalFunc) > Could not write method GtkToolbar::insert_element (parameter type > GtkSignalFunc) > Could not write method GtkFontSelection::set_filter (parameter type > gchar**) > Could not write method GtkList::remove_items (parameter type GList*) > Could not write method GtkList::remove_items_no_unref (parameter type > GList*) > Could not write method GtkButtonBox::get_child_size (parameter type > gint*) > Could not write method GtkButtonBox::get_child_ipadding (parameter type > gint*) > Could not write method GtkCList::construct (parameter type gchar*[]) > Could not write method GtkCList::get_pixmap (parameter type GdkPixmap**) > Could not write method GtkCList::find_row_from_data (parameter type > gpointer) > Could not write method GtkCList::set_compare_func (parameter type > GtkCListCompareFunc) > Could not write method GtkCTree::find_by_row_data (parameter type > gpointer) > Could not write method GtkCTree::find_all_by_row_data (parameter type > gpointer) > Could not write method GtkCTree::find_by_row_data_custom (parameter type > gpointer) > Could not write method GtkCTree::find_all_by_row_data_custom (parameter > type gpointer) > Could not write method GtkCTree::set_drag_compare_func (parameter type > GtkCTreeCompareDragFunc) > Could not write method GtkWindow::set_geometry_hints (parameter type > GdkGeometry*) > Could not write method GtkFontSelectionDialog::set_filter (parameter > type gchar**) > php -q /root/php-gtk/php-gtk/generator/generator.php -o > ext/gtk%2b/gdk.overrides -p Gdk ext/gtk%2b/gdk.defs > gen_gdk.c > Parsing file "ext/gtk+/gdk.defs". > Could not write function draw_polygon (parameter type GdkPoint*) > Could not write function draw_text_wc (parameter type const-GdkWChar*) > Could not write function draw_image (parameter type GdkImage*) > Could not write function draw_points (parameter type GdkPoint*) > 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 /root/php-gtk/php-gtk/libtool --mode=compile gcc -I. > -I/root/php-gtk/php-gtk/ext/gtk+ -I/root/php-gtk/php-gtk/main > -I/root/php-gtk/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/opt/gnome/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/opt/gnome/include > -I/root/php-gtk/php-gtk/main -DHAVE_CONFIG_H -g -O2 -c php_gtk+.c > gcc -I. -I/root/php-gtk/php-gtk/ext/gtk+ -I/root/php-gtk/php-gtk/main > -I/root/php-gtk/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/opt/gnome/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/opt/gnome/include > -I/root/php-gtk/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: > /root/php-gtk/php-gtk/main/php_gtk.h:62: parse error before `TSRMLS_DC' > In file included from /root/php-gtk/php-gtk/main/php_gtk.h:67, > from php_gtk+.c:23: > /root/php-gtk/php-gtk/ext/gtk+/php_gtk+.h:118: parse error before > `TSRMLS_DC' > /root/php-gtk/php-gtk/ext/gtk+/php_gtk+.h:119: 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 `/root/php-gtk/php-gtk/ext/gtk+' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/root/php-gtk/php-gtk/ext/gtk+' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/root/php-gtk/php-gtk/ext' > make: *** [all-recursive] Error 1 > mlemos:~/php-gtk/php-gtk # exit > > Script done on Mon Nov 19 02:28:15 2001 > > -- > PHP-GTK Development Mailing List (http://gtk.php.net/) > To unsubscribe, e-mail: php-gtk-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-gtk-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.gtk.dev (#171) next »