Subject: Re: qt3-tools compile problem
To: Hubert Feyrer <hubert@feyrer.de>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-pkg
Date: 02/09/2004 06:27:29
On Mon, 9 Feb 2004, Hubert Feyrer wrote:

> on a 1.6.2/i386 system, I wanted to build KDE3.2. I've done a 'make
> update', and also made sure that the freetype libs were updated.
> Now in qt3-tools, I get:
>
> 	/home/cvs/pkgsrc/x11/qt3-tools/work.i386/.buildlink/qt3/lib/libqt-mt.so: undefined reference to `FT_Seek_Stream'
> 	/home/cvs/pkgsrc/x11/qt3-tools/work.i386/.buildlink/qt3/lib/libqt-mt.so: undefined reference to `FT_Get_Short'
> 	/home/cvs/pkgsrc/x11/qt3-tools/work.i386/.buildlink/qt3/lib/libqt-mt.so: undefined reference to `FT_Forget_Frame'
> 	/home/cvs/pkgsrc/x11/qt3-tools/work.i386/.buildlink/qt3/lib/libqt-mt.so: undefined reference to `FT_Access_Frame'
> 	/home/cvs/pkgsrc/x11/qt3-tools/work.i386/.buildlink/qt3/lib/libqt-mt.so: undefined reference to `FT_Get_Long'
>
> The symbols are in libfreetype.so.8 which are in /usr/X11R6 (I still have
> XFree 4.2.0 installed), but not in the libfreetype.so.9 that's installed
> via pkgsrc.
>
> How can this situation be fixed?

If you could manage to add "-Wl,-rpath-link,/usr/pkg/lib" to the
link command line, that should do it.

As I suggested here:

  http://mail-index.netbsd.org/tech-pkg/2004/02/01/0004.html

"-rpath-link" seems to be the only reliable way to override shared
libraries in the default path, or even in the "usual" path.

Frederick