This page is not a bug tracker. If you run into a problem not listed here, please file a bug. |
List of common errors for the module pango.
Contents
Error - undefined reference to cairo_surface_write_to_png
Stage: build
cairosimple.c: In function 'main': cairosimple.c:82: warning: implicit declaration of function 'cairo_surface_write_to_png' /bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o cairosimple cairosimple.o ../pango/libpango-1.0.la ../pango/libpangocairo-1.0.la -L/opt/gnome2/lib -lfreetype -lz -lcairo gcc -g -O2 -Wall -o .libs/cairosimple cairosimple.o ../pango/.libs/libpango-1.0.so -L/opt/gnome2/lib ../pango/.libs/libpangocairo-1.0.so -L/usr/X11R6/lib /home/liberforce/cvs/gnome2/pango/pango/.libs/libpangoft2-1.0.so /home/liberforce/cvs/gnome2/pango/pango/.libs/libpango-1.0.so /opt/gnome2/lib/libgobject-2.0.so /opt/gnome2/lib/libgmodule-2.0.so -ldl /opt/gnome2/lib/libglib-2.0.so /opt/gnome2/lib/libcairo.so /opt/gnome2/lib/libXrender.so -lX11 /opt/gnome2/lib/libfontconfig.so /usr/lib/libexpat.so /usr/lib/libfreetype.so -lz -lm -Wl,--rpath -Wl,/opt/gnome2/lib cairosimple.o: In function `main': /home/liberforce/cvs/gnome2/pango/examples/cairosimple.c:82: undefined reference to `cairo_surface_write_to_png'
Explanation:
- The definition of 'cairo_surface_write_to_png' is enclosed in an #if CAIRO_HAS_PNG_FUNCTIONS / #endif statement. This symbol will not be defined if cairo was not built with the png support. It may be because pkg-config didn't find the .pc file for libpng.
Solution:
Check that the libpng headers are installed on your system, and find the *.pc files for libpng installed with it. Then copy those pc files in a path defined in PKG_CONFIG_PATH, wich will usually be /opt/gnome2/share/pkgconfig. Then recompile cairo with jhbuild buildone -a cairo and check the output of the configure step: png should now be supported. Then recompile pango with jhbuild buildone pango. This is referenced as bug gnomebug:319632, and cairo bug 5062 on freedesktop.
Warning - x development libraries not found
Stage: configure
checking for X... no configure: warning: X development libraries not found
Explanation:
It needs include/X11/Intrinsic.h header file.
Although it's a warning, it's needed to compile pangox and pangoxft that are needed for libbonoboui.
Solution:
Install xt development files, libxt-dev in Debian.
Error - undefined reference to `pangoft2_viewer'
Stage: build
gcc -g -O0 -Wall -o .libs/pango-view renderdemo.o viewer-x.o viewer-main.o pango-view.o viewer-pangox.o ../pango/.libs/libpango-1.0.so -L/opt/gnome2/lib ../pango/.libs/libpangox-1.0.so /opt/cvs/gnome2/pango/pango/.libs/libpango-1.0.so -lm /opt/gnome2/lib/libgobject-2.0.so /opt/gnome2/lib/libgmodule-2.0.so -ldl /opt/gnome2/lib/libglib-2.0.so -lrt -lX11 -Wl,--rpath -Wl,/opt/gnome2/lib pango-view.o:(.data+0x0): undefined reference to `pangoft2_viewer' collect2: ld returned 1 exit status make[3]: *** [pango-view] Error 1 make[3]: Leaving directory `/opt/cvs/gnome2/pango/examples' make[2]: *** [all] Error 2 make[2]: Leaving directory `/opt/cvs/gnome2/pango/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/cvs/gnome2/pango' make: *** [all] Error 2
Explanation:
It needs freetype development files.
Solution:
Install freetype development files, libfreetype6-dev in Debian, and rerun config stage.