Bug 7652 - cario graphics port won't install on freebsd
Summary: cario graphics port won't install on freebsd
Status: RESOLVED NOTOURBUG
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.0.4
Hardware: Other FreeBSD
: high normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-27 05:41 UTC by HM2K
Modified: 2006-07-27 09:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description HM2K 2006-07-27 05:41:30 UTC
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
Comment 1 Carl Worth 2006-07-27 09:29:00 UTC
(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.