Subject: Re: qt3-tools on OS X
To: John D. Baker <>
From: Manuel Bouyer <>
List: tech-pkg
Date: 04/17/2005 21:24:18
On Sun, Apr 17, 2005 at 01:49:42PM -0500, John D. Baker wrote:
> Following the thread discussing the patch allowing qt3-libs to build as
> an ordinary X11 package on MacOS X, I set about to give it a try (it's
> the primary show-stopper for me to build 'qcad').  It built and installed
> just fine.
> I, too, am having problems now with qt3-tools.  I'm building on/for
> MacOS X 10.2.8 (Jaguar) and the build fails as follows:
> [...]
> /usr/pkg/bin/libtool --mode=link g++  -L/usr/pkg/lib -L/usr/pkg/qt3/lib -L/usr/lib -L/usr/X11R6/lib -L/Volumes/NetBSD/tmp/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.4/lib -fno-exceptions  -L/usr/pkg/lib  -L/usr/pkg/qt3/lib -o ../../../bin/uic .obj/release-shared-mt/main.o .obj/release-shared-mt/uic.o .obj/release-shared-mt/form.o .obj/release-shared-mt/object.o .obj/release-shared-mt/subclassing.o .obj/release-shared-mt/embed.o .obj/release-shared-mt/widgetdatabase.o .obj/release-shared-mt/domtool.o .obj/release-shared-mt/parser.o    -L/usr/pkg/lib -L/usr/pkg/qt3/lib -L/usr/lib -L/usr/X11R6/lib -L/usr/pkg/qt3/lib -L/usr/pkg/lib -L/Volumes/NetBSD/tmp/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.4/lib -L/usr/pkg/lib -L/usr/X11R6/lib -lqt-mt -lpng -lz -lGLU -lGL -lXmu -lXrender -lXrandr -lXcursor -lXft -lfreetype -lXext -lX11 -lm -lICE -lSM -lpthread
> g++ -fno-exceptions -o ../../../bin/uic .obj/release-shared-mt/main.o .obj/release-shared-mt/uic.o .obj/release-shared-mt/form.o .obj/release-shared-mt/object.o .obj/release-shared-mt/subclassing.o .obj/release-shared-mt/embed.o .obj/release-shared-mt/widgetdatabase.o .obj/release-shared-mt/domtool.o .obj/release-shared-mt/parser.o -Wl,-bind_at_load  -L/usr/pkg/lib -L/usr/pkg/qt3/lib -L/usr/lib -L/usr/X11R6/lib -L/Volumes/NetBSD/tmp/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.4/lib /usr/pkg/qt3/lib/libqt-mt.dylib -L/Volumes/NetBSD/tmp/pkgsrc/x11/qt3-libs/work/qt-x11-free-3.3.4/lib /usr/pkg/lib/libpng.dylib /usr/pkg/lib/libGLU.dylib /usr/pkg/lib/libGL.dylib -lXmu /usr/pkg/lib/libXrandr.dylib /usr/pkg/lib/libXcursor.dylib /usr/pkg/lib/libXfixes.dylib /usr/pkg/lib/libXft.dylib /usr/pkg/lib/libfontconfig.dylib /usr/pkg/lib/libexpat.dylib /usr/pkg/lib/libXrender.dylib /usr/pkg/lib/libfreetype.dylib /usr/pkg/lib/libz.dylib -lXext -lX11 -lm -lICE -lSM -lpthread
> ld: Undefined symbols:
> _dlclose
> _dlopen
> _dlsym

I didn't run on this one. On my system (OS X 10.3 server), these are in libdl.
Did you try adding -ldl to the relevant Makefile ?

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference