RE: [PHP-GTK] help - can't install php-gtk

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: RE: [PHP-GTK] help - can't install php-gtk
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4608@lists.php.net to get a copy of this message
Thanx alot Dan, now i can run ./configure. But after that when i run "make" something weird happen. this the message [root@hendrik php-gtk-1.0.0]# make creating main/php_gtk_ext.c sh /home/hendrik/tmp/php-gtk-1.0.0/build2/genext.sh main/php_gtk_ext.c.in /home/hendrik/tmp/php-gtk-1.0.0 "" gawk gtk+ combobutton libglade piemenu scrollpane spaned sqpane > main/php_gtk_ext.c /bin/sh /home/hendrik/tmp/php-gtk-1.0.0/libtool --mode=compile gcc -Imain/ -I/home/hendrik/tmp/php-gtk-1.0.0/main/ -DPHP_ATOM_INC -I/home/hendrik/tmp/php-gtk-1.0.0/include -I/home/hendrik/tmp/php-gtk-1.0 0/main -I/home/hendrik/tmp/php-gtk-1.0.0 -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/include/libglade-1.0 -DHAVE_CONFIG_H -g -O2 -prefer-pic -c main/php_gtk_ext.c -o main/php_gtk_ext.lo gcc -Imain/ -I/home/hendrik/tmp/php-gtk-1.0.0/main/ -DPHP_ATOM_INC -I/home/hendrik/tmp/php-gtk-1.0.0/include -I/home/hendrik/tmp/php-gtk-1.0 0/main -I/home/hendrik/tmp/php-gtk-1.0.0 -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/include/libglade-1.0 -DHAVE_CONFIG_H -g -O2 -c main/php_gtk_ext.c -fPIC -DPIC -o main/php_gtk_ext.lo /bin/sh /home/hendrik/tmp/php-gtk-1.0.0/libtool --mode=link gcc -DPHP_ATOM_INC -I/home/hendrik/tmp/php-gtk-1.0.0/include -I/home/hendrik/tmp/php-gtk-1.0.0/main -I/home/hendrik/tmp/php-gtk-1.0.0 -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/include/libglade-1.0 -DHAVE_CONFIG_H -g -O2 -o php_gtk.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/hendrik/tmp/php-gtk-1.0.0/modules ./ext/gtk+/php_gtk+.lo /ext/gtk+/php_gdk.lo ./ext/gtk+/php_gtk+_types.lo ext/gtk+/gen_gtk.lo ext/gtk+/gen_gdk.lo main/php_gtk.lo main/php_gtk_object.lo main/php_gtk_util lo ./ext/combobutton/php_combobutton.lo ./ext/combobutton/gtkcombobutton.lo ext/combobutton/gen_combobutton.lo ./ext/libglade/php_libglade.lo ext/libglade/gen_libglade.lo ./ext/piemenu/php_piemenu.lo /ext/piemenu/gtkpiemenu.lo ./ext/piemenu/gtkaddons.lo /ext/piemenu/gdkaddons.lo ext/piemenu/gen_piemenu.lo /ext/scrollpane/php_scrollpane.lo ./ext/scrollpane/gtkscrollpane.lo ext/scrollpane/gen_scrollpane.lo ./ext/spaned/php_spaned.lo /ext/spaned/gtkspaned.lo ./ext/spaned/gtksvpaned.lo ext/spaned/gen_spaned.lo ./ext/sqpane/php_sqpane.lo ./ext/sqpane/gtksqpane.lo ext/sqpane/gen_sqpane lo main/php_gtk_ext.lo -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath /usr/X11R6/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lglade -lxml -lz -lgtk -lgdk -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm rm -fr .libs/php_gtk.la .libs/php_gtk.* .libs/php_gtk.* gcc -shared ./ext/gtk+/php_gtk+.lo ./ext/gtk+/php_gdk.lo /ext/gtk+/php_gtk+_types.lo ext/gtk+/gen_gtk.lo ext/gtk+/gen_gdk.lo main/php_gtk.lo main/php_gtk_object.lo main/php_gtk_util.lo /ext/combobutton/php_combobutton.lo ./ext/combobutton/gtkcombobutton.lo ext/combobutton/gen_combobutton.lo ./ext/libglade/php_libglade.lo ext/libglade/gen_libglade.lo ./ext/piemenu/php_piemenu.lo /ext/piemenu/gtkpiemenu.lo ./ext/piemenu/gtkaddons.lo /ext/piemenu/gdkaddons.lo ext/piemenu/gen_piemenu.lo /ext/scrollpane/php_scrollpane.lo ./ext/scrollpane/gtkscrollpane.lo ext/scrollpane/gen_scrollpane.lo ./ext/spaned/php_spaned.lo /ext/spaned/gtkspaned.lo ./ext/spaned/gtksvpaned.lo ext/spaned/gen_spaned.lo ./ext/sqpane/php_sqpane.lo ./ext/sqpane/gtksqpane.lo ext/sqpane/gen_sqpane lo main/php_gtk_ext.lo -L/usr/lib -L/usr/X11R6/lib /usr/lib/libglade.so /usr/lib/libxml.so -lz /usr/lib/libgtk.so /usr/lib/libgdk.so /usr/lib/libgmodule.so /usr/lib/libglib.so -ldl -lXi -lXext -lX11 -lm -Wl -rpath -Wl,/usr/X11R6/lib -Wl,-rpath -Wl,/usr/X11R6/lib -Wl,-soname -Wl php_gtk.so -o .libs/php_gtk.so creating php_gtk.la (cd .libs && rm -f php_gtk.la && ln -s ../php_gtk.la php_gtk.la) /bin/sh /home/hendrik/tmp/php-gtk-1.0.0/libtool --mode=install cp ./php_gtk la /home/hendrik/tmp/php-gtk-1.0.0/modules cp ./.libs/php_gtk.so /home/hendrik/tmp/php-gtk-1.0.0/modules/php_gtk.so cp ./.libs/php_gtk.lai /home/hendrik/tmp/php-gtk-1.0.0/modules/php_gtk.la PATH="$PATH:/sbin" ldconfig -n /home/hendrik/tmp/php-gtk-1.0.0/modules ---------------------------------------------------------------------- Libraries have been installed in: /home/hendrik/tmp/php-gtk-1.0.0/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- [root@hendrik php-gtk-1.0.0]# make install& [1] 16647 [root@hendrik php-gtk-1.0.0]# Installing shared extensions: /usr/lib/php/extensions/ [1]+ Done make install then i try to run gtk.php, the error messages is [root@hendrik test]# php gtk.php Warning: dl(): Unable to load dynamic library /usr/lib/php/extensions/php_gtk.so' - /usr/lib/php/extensions/php_gtk.so: undefined symbol: gtk_shpaned_new in /home/hendrik/tmp/php-gtk-1.0 0/test/gtk.php on line 5 Fatal error: Undefined class name 'gtk' in /home/hendrik/tmp/php-gtk-1.0 0/test/gtk.php on line 2658 Help me please -------Original Message------- From: Felts, Dan Date: Jumat, 04 Juni, 2004 01:00:25 To: 'Xaviero' Subject: RE: [PHP-GTK] help - can't install php-gtk The list will show you if you look.. but I will hopefully help you out here... in the src INCREDI_LINK_PLACEHOLDER_8229 of php-gtk.. do.. buildconf alocal buildconf (yes.. again) ./configure make make install If that doesnt work.. do.. buildconf alocal phpize ./configure make make install These are the 2 ways I had to get it running on 3 diffrent varients of linux.. I hope this helps.. Dan

« previous php.gtk.general (#4608) next »