Subject: Re: Error building gtk2 from pkgsrc...
To: Adam K Kirchhoff <adamk@voicenet.com>
From: Greg A. Woods <woods@weird.com>
List: tech-pkg
Date: 11/08/2004 15:21:35
[ On Monday, November 8, 2004 at 14:14:35 (-0500), Adam K Kirchhoff wrote: ]
> Subject: Error building gtk2 from pkgsrc...
>
> 
> I'm trying to build gtk2, but it seems quite unhappy about not finding 
> libX11:
> 
> checking for X... libraries /usr/pkg/xorg/lib, headers /usr/pkg/xorg/include
> checking for gethostbyname... yes
> checking for connect... yes
> checking for remove... yes
> checking for shmat... yes
> checking for IceConnectionNumber in -lICE... yes
> checking for XOpenDisplay in -lX11... no
> configure: error: *** libX11 not found. Check 'config.log' for more details.
> *** Error code 1

That's the exact same error I posted in the "libtool *.la files
vs. pkg-config *.pc files" thread.  :-)

Assuming the error you find in the config.log also matches what I posted
then the fix is to add the following patches to devel/pango/patches then
rebuild and re-install pango:


12:42 [257] $ cat patches/patch-z*
--- pangoxft-uninstalled.pc.in.orig     Tue Feb 17 05:18:03 2004
+++ pangoxft-uninstalled.pc.in  Fri Nov  5 17:48:28 2004
@@ -2,6 +2,6 @@
 Description: X Window System font support for Pango, Not Installed
 Version: @VERSION@
 Requires: pango
-Libs: ${pc_top_builddir}/${pcfiledir}/pango/libpangoxft-@PANGO_API_VERSION@.la @XFT_LIBS@
+Libs: ${pc_top_builddir}/${pcfiledir}/pango/libpangoxft-@PANGO_API_VERSION@.la ${pc_top_builddir}/${pcfiledir}/pango/libpangoft2-@PANGO_API_VERSION@.la @XFT_LIBS@
 Cflags: -I${pc_top_builddir}/${pcfiledir}/@srcdir@ @X_CFLAGS@ @FREETYPE_CFLAGS@
 
--- pangoxft.pc.in.orig Fri Nov  5 17:22:06 2004
+++ pangoxft.pc.in      Fri Nov  5 17:49:30 2004
@@ -7,5 +7,5 @@
 Description: Xft font support for Pango
 Version: @VERSION@
 Requires: pango
-Libs: -Wl,-R${libdir} -L${libdir} -lpangoxft-@PANGO_API_VERSION@ @PKGCONFIG_XFT_LIBS@
+Libs: -Wl,-R${libdir} -L${libdir} -lpangoxft-@PANGO_API_VERSION@ -lpangoft2-@PANGO_API_VERSION@ @PKGCONFIG_XFT_LIBS@
 Cflags: -I${includedir}/pango-1.0 @XFT_CFLAGS@




-- 
						Greg A. Woods

+1 416 218-0098                  VE3TCP            RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@weird.com>