Subject: pkg/32727: cairo link fails on darwin when pkgconfig used for xrender
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jml@ascia.fi>
List: pkgsrc-bugs
Date: 02/04/2006 11:05:00
>Number: 32727
>Category: pkg
>Synopsis: cairo link fails on darwin when pkgconfig used for xrender
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 04 11:05:00 +0000 2006
>Originator: Juha-Matti Liukkonen
>Release: Mac OS X 10.4.4
>Organization:
Ascia Oy
>Environment:
Darwin rousku.podzone.org 8.4.0 Darwin Kernel Version 8.4.0: Tue Jan 3 18:22:10 PST 2006; root:xnu-792.6.56.obj~1/RELEASE_PPC Power Macintosh powerpc
>Description:
cairo link fails with unresolved symbols from X11 library if xrender pkgconfig files are installed (particularly when USE_BUILTIN.xrender=yes). Cairo's configure.in includes -lX11 to XRENDER_LIBS if the pkgconfig file is not present - but when the pkgconfig file is present, -lX11 is not included in any LIBS, resulting in link failure if xrender's pkgconfig Libs does not happen to include -lX11.
>How-To-Repeat:
>Fix:
Some m4-syntax magic in cairo's configure.in to say "if use_xlib==yes, include -lX11 in libs, regardless of what xrender brought with it".