Subject: Re: qt3-tools on OS X
To: None <tech-pkg@netbsd.org>
From: MLH <mlh@goathill.org>
List: tech-pkg
Date: 04/25/2005 16:42:40
John D. Baker wrote:

> On Mon, 18 Apr 2005, Manuel Bouyer wrote:
> 
>> > But the qt3-tools package has many unresolved references to the symbols
>> > noted above.  I've been manually adding "-ldl" to the LIBS definition
>> > in various package Makefiles (which appear to be generated by other
>> > scripting) and restarting the build.
>> >
>> > It remains to be seen what other additions will need to be made to get
>> > it all built on MacOS X 10.2.8.  It appears 10.3.x has a different(?)
>> > set of issues.
>>
>> is there a ldd-equivalent on Darwin ? Just to see with which librairies
>> my qt tools are linked.
> 
> I don't know, at the moment.  Probably have to poke around in the
> Developer Tools documentation.
> 
> I finally completed building x11/qt3-tools.  The following Makefiles
> all needed "-ldl" added to their LIBS definitions.
> 
> /usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.4/tools/assistant/Makefile
> /usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.4/tools/qtconfig/Makefile

Was there possibly anything else you did, as I can't get it to build:

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/opt/pkgsrc/x11/qt3-tools/work.belgium/qt-x11-free-3.3.4/lib /usr/pkg/qt3/lib/libqt-mt.dylib -L/opt/pkgsrc/x11/qt3-libs/work.belgium/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/libXrender.dylib /usr/pkg/lib/libfontconfig.dylib /usr/pkg/lib/libfreetype.dylib /usr/pkg/lib/libz.dylib
/usr/pkg/lib/libexpat.dylib /usr/lib/libiconv.dylib -lXext -lX11 -lm -lICE -lSM -lpthread -ldl
ld: Undefined symbols:
_res_9_init
_res_9_ninit
gnumake[3]: *** [../../../bin/uic] Error 1
gnumake[2]: *** [sub-uic] Error 2
gnumake[1]: *** [sub-designer] Error 2
gnumake: *** [sub-tools] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/x11/qt3-tools
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /opt/pkgsrc/x11/qt3-tools/work.belgium/.work.log
===> 
*** Error code 1