Bug #51734 [Fbk]: cairo_font_options_object undeclared (first use in this function)
[email protected] Tue, 4 May 2010 16:45:11 +0200 (CEST)
| Newsgroups | php.gtk.dev |
|---|---|
| Message-ID | <[email protected]> |
Edit report at http://bugs.php.net/bug.php?id=51734&edit=1 ID: 51734 Updated by: [email protected] Reported by: scorninpc at gmail dot com Summary: cairo_font_options_object undeclared (first use in this function) Status: Feedback Type: Bug Package: PHP-GTK related Operating System: Ubuntu 10.4 PHP Version: 5.3.2 New Comment: I need you to do php -m You MUST have the PECL cairo extension loaded, and it must be loaded before PHP-GTK Are both in that output? Previous Comments: ------------------------------------------------------------------------ [2010-05-04 02:59:59] scorninpc at gmail dot com Ok, I compiled this version and php-gtk works fine, but i can't run cairo_support.php root@anne:~/Projetos/projetos/php-gtk/php-gtk# php demos/examples/cairo_support.php php: symbol lookup error: /usr/lib/php5/20090626+lfs/php_gtk.so: undefined symbol: php_cairo_get_context_ce root@anne:~/Projetos/projetos/php-gtk/php-gtk# this sample don't work with this version? ------------------------------------------------------------------------ [2010-05-04 02:51:08] [email protected] No - that's a VERY old version of the code The new location of the source code is http://svn.php.net/viewvc/pecl/cairo http://pecl.php.net/package/cairo Try the latest version please and see if the error still occurs ------------------------------------------------------------------------ [2010-05-04 02:48:41] scorninpc at gmail dot com i've compiled from svn co svn://whisky.macvicar.net/php-cairo cairo it don't work? ------------------------------------------------------------------------ [2010-05-04 02:46:11] [email protected] What version of PECL Cairo are you compiling against? cairo_font_options_object is from cairo_api.h Please make sure you're using the latest version of the PECL cairo extension ------------------------------------------------------------------------ [2010-05-04 02:04:13] scorninpc at gmail dot com Description: ------------ I'm trying compile php-gtk from SVN and PHP 5.3.2-1ubuntu4 with Suhosin-Patch (cli) (built: Apr 9 2010 08:23:39) I can't compile without cairo, and after compile cairo, i get this error: root@anne:~/Projetos/projetos/php-gtk/php-gtk# make /bin/bash /home/scorninpc/Projetos/projetos/php-gtk/php-gtk/libtool --mode=compile cc -Iext/gtk+/ -I/home/scorninpc/Projetos/projetos/php-gtk/php-gtk/ext/gtk+/ -DPHP_ATOM_INC -I/home/scorninpc/Projetos/projetos/php-gtk/php-gtk/include -I/home/scorninpc/Projetos/projetos/php-gtk/php-gtk/main -I/home/scorninpc/Projetos/projetos/php-gtk/php-gtk -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -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/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/php5/ext/cairo -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -DHAVE_CONFIG_H -g -O2 -DHAVE_CAIRO -c ext/gtk+/gen_gdk.c -o ext/gtk+/gen_gdk.lo libtool: compile: cc -Iext/gtk+/ -I/home/scorninpc/Projetos/projetos/php-gtk/php-gtk/ext/gtk+/ -DPHP_ATOM_INC -I/home/scorninpc/Projetos/projetos/php-gtk/php-gtk/include -I/home/scorninpc/Projetos/projetos/php-gtk/php-gtk/main -I/home/scorninpc/Projetos/projetos/php-gtk/php-gtk -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -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/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/php5/ext/cairo -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -DHAVE_CONFIG_H -g -O2 -DHAVE_CAIRO -c ext/gtk+/gen_gdk.c -fPIC -DPIC -o ext/gtk+/.libs/gen_gdk.o ext/gtk+/gdk-2.10.overrides: In function ‘zim_GdkScreen_set_font_options’: ext/gtk+/gdk-2.10.overrides:15: error: ‘cairo_font_options_object’ undeclared (first use in this function) ext/gtk+/gdk-2.10.overrides:15: error: (Each undeclared identifier is reported only once ext/gtk+/gdk-2.10.overrides:15: error: for each function it appears in.) ext/gtk+/gdk-2.10.overrides:15: error: ‘fobj’ undeclared (first use in this function) ext/gtk+/gdk-2.10.overrides:20: error: expected expression before ‘)’ token ext/gtk+/gdk-2.10.overrides: In function ‘zim_GdkScreen_get_font_options’: ext/gtk+/gdk-2.10.overrides:31: error: ‘cairo_font_options_object’ undeclared (first use in this function) ext/gtk+/gdk-2.10.overrides:31: error: ‘fobj’ undeclared (first use in this function) ext/gtk+/gdk-2.10.overrides:39: error: expected expression before ‘)’ token make: ** [ext/gtk+/gen_gdk.lo] Erro 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51734&edit=1