matrix# cd /usr/ports/graphics/cairo/ matrix# make ===> Building for cairo-1.0.4_1 make all-recursive Making all in pixman Making all in src Making all in src Making all in doc Making all in public Making all in test /bin/sh /usr/ports/graphics/cairo/work/gnome-libtool --tag=CC --mode=link cc -O -pipe -pthread -o imagediff imagediff.o libcairotest.la ../src/libcairo.la -pthread -lm cc -O -pipe -pthread -o .libs/imagediff imagediff.o -pthread ./.libs/libcairotest.a ../src/.libs/libcairo.so -L/usr/X11R6/lib -lXrender -lX11 -lXext -L/usr/local/lib -lpng /usr/local/lib/libglitz.so -lfontconfig -lfreetype -lz -pthread -lm -Wl,--rpath -Wl,/usr/local/lib /usr/bin/ld: warning: libexpat.so.5, needed by /usr/X11R6/lib/libfontconfig.so, not found (try using -rpath or -rpath-link) /usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetElementHandler' /usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetDoctypeDeclHandler' /usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ParserFree' /usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetCharacterDataHandler' /usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ErrorString' /usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ParseBuffer' /usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ParserCreate' /usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetUserData' /usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_GetErrorCode' /usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_GetBuffer' /usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_GetCurrentLineNumber' *** Error code 1 Stop in /usr/ports/graphics/cairo/work/cairo-1.0.4/test. *** Error code 1 Stop in /usr/ports/graphics/cairo/work/cairo-1.0.4. *** Error code 1 Stop in /usr/ports/graphics/cairo/work/cairo-1.0.4. *** Error code 1 Stop in /usr/ports/graphics/cairo. matrix# uname -a FreeBSD matrix.nemesisforce.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
(In reply to comment #0) > /usr/bin/ld: warning: libexpat.so.5, needed by /usr/X11R6/lib/libfontconfig.so, > not found (try using -rpath or -rpath-link) That's the essential part of the error message. Cairo depends on fontconfig, which in turn depends on the expat library. The linker is finding fontconfig, but not expat. It's possible there are linker flags, (-L/some/directory), that would fix this bug, but if so they should have been supplied in fontconfig's .pc file since cairo uses pkg-config to ask fontconfig what flags it should use for linking. So the problem here is either a bug in your specific system, (the expat library got removed, say), or else a bug in fontconfig, (and note that you're linking against a version of fontconfig that is bundled with your X server---not an "upstream" fontconfig, so that might also be part of the problem). But I don't see any cairo bug here. -Carl
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.