Subject: Re: /usr/pkg/qt3/lib/libqt-mt.so.3 doesn't find X libraries
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 05/13/2004 09:32:40
> >          -lXmu.6 => not found
> >          -lXinerama.1 => not found
> >          -lXft.2 => /usr/pkg/lib/libXft.so.2
> >          -lXext.6 => not found
> >          -lX11.6 => not found
> >          -lICE.6 => not found
> >          -lSM.6 => not found

> > /usr/pkg/qt3/lib/libqui.so, /usr/pkg/qt3/lib/libqassistantclient.so, and
> > /usr/pkg/qt3/lib/libeditor.so have same problem of not having the rpaths
> > set for the X libraries.
>
> As you showed, it's a problem in the qt3-libs and qt3-tools packages;
> perhaps they haven't been built on xpkgwedged systems before, so nobody
> noticed?
>
> They should be bl3ed and the problem fixed...

It had been over a month since I buildlink3'd my qt3-libs packages. I
forgot. I am attempting to use buildlink3 for qt3-libs.

It works for Linux with LOCALBASE as /usr so it should work on my standard
NetBSD box using /usr/pkg.

On Thu, 13 May 2004, Vincent wrote:

> That's looks like what I got. Try to reinstall or update x11-links and
> then recompile ?

I have removed x11-links. I am using xpgkwedge. I am rebuilding qt3-libs
again to see if it works (again using USE_BUILDLINK3=yes).

My patch is below (ignore the unrelated USE_PAX which I need):

Index: x11/qt3-libs/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/qt3-libs/Makefile,v
retrieving revision 1.24
diff -b -u -r1.24 Makefile
--- x11/qt3-libs/Makefile	16 Apr 2004 14:30:44 -0000	1.24
+++ x11/qt3-libs/Makefile	13 May 2004 16:25:12 -0000
@@ -8,7 +8,9 @@
 PKGNAME=		qt3-libs-${QTVERSION}
 COMMENT=		C++ X GUI toolkit

-USE_BUILDLINK2=		yes
+EXTRACT_USING_PAX=	YES
+
+USE_BUILDLINK3=		yes
 GCC_REQD+=		2.95.3

 ALL_TARGET=		sub-plugins
@@ -34,16 +36,16 @@
 	${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/plugins/imageformats/libqjpeg.la ${QTPREFIX}/plugins/imageformats
 	${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/plugins/imageformats/libqmng.la ${QTPREFIX}/plugins/imageformats

-.include "../../devel/zlib/buildlink2.mk"
-.include "../../fonts/Xft2/buildlink2.mk"
-.include "../../graphics/jpeg/buildlink2.mk"
-.include "../../graphics/MesaLib/buildlink2.mk"
-.include "../../graphics/glu/buildlink2.mk"
-.include "../../graphics/mng/buildlink2.mk"
-.include "../../graphics/png/buildlink2.mk"
-.include "../../graphics/freetype2/buildlink2.mk"
-.include "../../x11/Xrandr/buildlink2.mk"
-.include "../../x11/xcursor/buildlink2.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../fonts/Xft2/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../graphics/mng/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../x11/Xrandr/buildlink3.mk"
+.include "../../x11/xcursor/buildlink3.mk"

-.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


 Jeremy C. Reed

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