Subject: buildlink question (Re: gtk2 problems)
To: None <tech-pkg@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-pkg
Date: 09/15/2004 09:18:33
Jeremy C. Reed wrote:

>>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'

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

I'm not too familiar with bl3's internals so could someone please explain
who is supposed to add -lXft to LDFLAGS? Shouldn't it be pango as it needs
Xft?

Martti