Subject: Re: gtk2 problems
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 09/14/2004 09:22:17
On Tue, 14 Sep 2004, Martti Kuparinen wrote:

> I'm having problems with NetBSD/i386 1.6.2 (XFree86 4.3.0) with the
> latest pkgsrc:

> configure:29970: gcc -o conftest -O2 -I/usr/pkg/include -I/usr/include
> -I/usr/pkg/include/freetype2 -Wall -I/usr/pkg/include/pango-1.0
> -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/include
> -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include
> -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -L/usr/pkg/lib
> -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib
> -Wl,-R/usr/X11R6/lib conftest.c -Wl,-R/usr/pkg/lib -Wl,--export-dynamic
> -L/usr/pkg/lib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0
> -lgmodule-2.0 -lglib-2.0 -liconv   -lintl  >&5
> /usr/pkgsrc/x11/gtk2/work/.buildlink/lib/libpangoxft-1.0.so: undefined
> reference to `XftDrawRect'
> /usr/pkgsrc/x11/gtk2/work/.buildlink/lib/libpangoxft-1.0.so: undefined
> reference to `XftGlyphExtents'
>
>
> I have the latest fontconfig (all packages are up-to-date according to
> lintpkgsrc -i):

It wants Xft (not fontconfig).

XftDrawRect and XftGlyphExtents are defined in libXft.so. I don't see in
your config output above the needed "-lXft".

Sorry, I don't know why.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/