building problem!
| From: | Ludovico Romano | Date: | Wed, 29 Jan 2003 15:39:00 +0000 |
| Subject: | building problem! | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2982@lists.php.net to get a copy of this message | ||
I run ./buildconf and the system say:
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
You should update your `aclocal.m4' by running aclocal.
rebuilding configure
then I run configure:
[root@web php-gtk-0.5.2]# ./configure --enable-scintilla --enable-gtkhtml
--enable-gdkpixbuf
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
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main
-I/usr/include/php/Zend -I/usr/include/php/TSRM
checking for PHP extension directory... /usr/lib/php4
checking for PHP-GTK support... yes, shared
checking for gawk... gawk
checking for PHP executable in /usr/bin... found
checking for GtkComboButton support... yes
checking for GdkPixbuf support... yes
checking for gdk-pixbuf-config... /usr/bin/gdk-pixbuf-config
checking for GDK_PIXBUF - version >= 0.11.0... yes
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.6... yes
checking for gtkhtml support... yes
checking for gnome-config... /usr/bin/gnome-config
checking for gnome-config... yes
checking for libglade support... yes
checking for libglade-config... /usr/bin/libglade-config
checking for libglade... yes
checking for GtkPieMenu support... yes
checking for Scintilla support... yes
checking for GtkScrollpane support... yes
checking for GtkSPaned support... yes
checking for GtkSQPane support... yes
checking whether to include debugging symbols... no
checking for Cygwin environment... no
checking for mingw32 environment... no
checking how to run the C preprocessor... gcc -E
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static 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 whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/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 whether -lc should be explicitly linked in... no
creating libtool
checking for working mkdir -p... yes
creating config_vars.mk
creating ./Makefile
creating ext/gtk+/Makefile
creating ext/combobutton/Makefile
creating ext/gdkpixbuf/Makefile
creating ext/gtkhtml/Makefile
creating ext/libglade/Makefile
creating ext/piemenu/Makefile
creating ext/scintilla/Makefile
creating ext/scrollpane/Makefile
creating ext/spaned/Makefile
creating ext/sqpane/Makefile
creating main/Makefile
creating ext/Makefile
creating Makefile
updating cache ./config.cache
creating ./config.status
creating config.h
then i run make and:
[root@web php-gtk-0.5.2]# make
Making all in ext
make[1]: Entering directory `/home/ludovico/src/php-gtk-0.5.2/ext'
Making all in gtk+
make[2]: Entering directory `/home/ludovico/src/php-gtk-0.5.2/ext/gtk+'
make[3]: Entering directory `/home/ludovico/src/php-gtk-0.5.2/ext/gtk+'
/usr/bin/php -q /home/ludovico/src/php-gtk-0.5.2/generator/generator.php -o
ext/gtk%2b/gtk.overrides -p Gtk -r
/home/ludovico/src/php-gtk-0.5.2/ext/gtk%2b/gdk.defs ext/gtk%2b/gtk.defs >
gen_gtk.c
Parsing file "ext/gtk+/gtk.defs".
Parsing file "/home/ludovico/src/php-gtk-0.5.2/ext/gtk+/gdk.defs".
Parsing file "ext/gtk+/gtk-extrafuncs.defs".
/usr/bin/php -q /home/ludovico/src/php-gtk-0.5.2/generator/generator.php -o
ext/gtk%2b/gdk.overrides -p Gdk ext/gtk%2b/gdk.defs > gen_gdk.c
Loading cache "ext/gtk+/gdk.defs.cache"
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 /home/ludovico/src/php-gtk-0.5.2/libtool --mode=compile gcc -I.
-I/home/ludovico/src/php-gtk-0.5.2/ext/gtk+
-I/home/ludovico/src/php-gtk-0.5.2/main -I/home/ludovico/src/php-gtk-0.5.2
-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend
-I/usr/include/php/TSRM -I/usr/include/gdk-pixbuf-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/gnome-1.0 -I/usr/include/freetype2
-I/usr/lib/gnome-libs/include -I/usr/include/gnome-xml
-I/usr/include/libglade-1.0 -I/home/ludovico/src/php-gtk-0.5.2/main
-DHAVE_CONFIG_H -g -O2 -c php_gtk+.c
gcc -I. -I/home/ludovico/src/php-gtk-0.5.2/ext/gtk+
-I/home/ludovico/src/php-gtk-0.5.2/main -I/home/ludovico/src/php-gtk-0.5.2
-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend
-I/usr/include/php/TSRM -I/usr/include/gdk-pixbuf-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/gnome-1.0 -I/usr/include/freetype2
-I/usr/lib/gnome-libs/include -I/usr/include/gnome-xml
-I/usr/include/libglade-1.0 -I/home/ludovico/src/php-gtk-0.5.2/main
-DHAVE_CONFIG_H -g -O2 -c php_gtk+.c -fPIC -DPIC -o php_gtk+.lo
/bin/sh /home/ludovico/src/php-gtk-0.5.2/libtool --mode=compile gcc -I.
-I/home/ludovico/src/php-gtk-0.5.2/ext/gtk+
-I/home/ludovico/src/php-gtk-0.5.2/main -I/home/ludovico/src/php-gtk-0.5.2
-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend
-I/usr/include/php/TSRM -I/usr/include/gdk-pixbuf-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/gnome-1.0 -I/usr/include/freetype2
-I/usr/lib/gnome-libs/include -I/usr/include/gnome-xml
-I/usr/include/libglade-1.0 -I/home/ludovico/src/php-gtk-0.5.2/main
-DHAVE_CONFIG_H -g -O2 -c php_gdk.c
gcc -I. -I/home/ludovico/src/php-gtk-0.5.2/ext/gtk+
-I/home/ludovico/src/php-gtk-0.5.2/main -I/home/ludovico/src/php-gtk-0.5.2
-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend
-I/usr/include/php/TSRM -I/usr/include/gdk-pixbuf-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/gnome-1.0 -I/usr/include/freetype2
-I/usr/lib/gnome-libs/include -I/usr/include/gnome-xml
-I/usr/include/libglade-1.0 -I/home/ludovico/src/php-gtk-0.5.2/main
-DHAVE_CONFIG_H -g -O2 -c php_gdk.c -fPIC -DPIC -o php_gdk.lo
/bin/sh /home/ludovico/src/php-gtk-0.5.2/libtool --mode=compile gcc -I.
-I/home/ludovico/src/php-gtk-0.5.2/ext/gtk+
-I/home/ludovico/src/php-gtk-0.5.2/main -I/home/ludovico/src/php-gtk-0.5.2
-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend
-I/usr/include/php/TSRM -I/usr/include/gdk-pixbuf-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/gnome-1.0 -I/usr/include/freetype2
-I/usr/lib/gnome-libs/include -I/usr/include/gnome-xml
-I/usr/include/libglade-1.0 -I/home/ludovico/src/php-gtk-0.5.2/main
-DHAVE_CONFIG_H -g -O2 -c php_gtk+_types.c
gcc -I. -I/home/ludovico/src/php-gtk-0.5.2/ext/gtk+
-I/home/ludovico/src/php-gtk-0.5.2/main -I/home/ludovico/src/php-gtk-0.5.2
-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend
-I/usr/include/php/TSRM -I/usr/include/gdk-pixbuf-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/gnome-1.0 -I/usr/include/freetype2
-I/usr/lib/gnome-libs/include -I/usr/include/gnome-xml
-I/usr/include/libglade-1.0 -I/home/ludovico/src/php-gtk-0.5.2/main
-DHAVE_CONFIG_H -g -O2 -c php_gtk+_types.c -fPIC -DPIC -o php_gtk+_types.lo
/bin/sh /home/ludovico/src/php-gtk-0.5.2/libtool --mode=compile gcc -I.
-I/home/ludovico/src/php-gtk-0.5.2/ext/gtk+
-I/home/ludovico/src/php-gtk-0.5.2/main -I/home/ludovico/src/php-gtk-0.5.2
-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend
-I/usr/include/php/TSRM -I/usr/include/gdk-pixbuf-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/gnome-1.0 -I/usr/include/freetype2
-I/usr/lib/gnome-libs/include -I/usr/include/gnome-xml
-I/usr/include/libglade-1.0 -I/home/ludovico/src/php-gtk-0.5.2/main
-DHAVE_CONFIG_H -g -O2 -c gen_gtk.c
gcc -I. -I/home/ludovico/src/php-gtk-0.5.2/ext/gtk+
-I/home/ludovico/src/php-gtk-0.5.2/main -I/home/ludovico/src/php-gtk-0.5.2
-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend
-I/usr/include/php/TSRM -I/usr/include/gdk-pixbuf-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/gnome-1.0 -I/usr/include/freetype2
-I/usr/lib/gnome-libs/include -I/usr/include/gnome-xml
-I/usr/include/libglade-1.0 -I/home/ludovico/src/php-gtk-0.5.2/main
-DHAVE_CONFIG_H -g -O2 -c gen_gtk.c -fPIC -DPIC -o gen_gtk.lo
gen_gtk.c:1: parse error before `<'
gen_gtk.c:2: malformed floating constant
make[3]: *** [gen_gtk.lo] Error 1
make[3]: Leaving directory `/home/ludovico/src/php-gtk-0.5.2/ext/gtk+'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ludovico/src/php-gtk-0.5.2/ext/gtk+'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ludovico/src/php-gtk-0.5.2/ext'
make: *** [all-recursive] Error 1
and in gen_gtk.c I find:
<br>
<b>Fatal error</b>: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 131
072 bytes) in <b>/home/ludovico/src/php-gtk-0.5.1/generator/scheme.php</b> on
line <b>127<
/b><br>
and in generator/scheme.php at line 127:
fwrite($fp, serialize($this));
This is the situation, someone can help me?
Ludovico