Subject: Fail to compile qt3-tools on NetBSD current
To: None <current-users@netbsd.org>
From: =?ISO-8859-1?Q?Renaud_M=E9trich?= <renaud.metrich@laposte.net>
List: current-users
Date: 05/17/2004 19:21:54
Hi all,

trying to compile mplayer which depends indirectly to qt3-tools thru 
arts package,
it happens that the compilation of x11/qt3-tools fails with a tool built 
by qt3-tools doing a "segmentation fault".
My pkgsrc is from current, that is qt3-tools is revision 3.3.2 instead 
of 3.2.3nb1 when using NetBSD 1.6.2.

Here is a snippet of the compilation failure:

gmake[3]: Entering directory 
`/usr/pkgsrc/x11/qt3-tools/work.i386/qt-x11-free-3.3.2/tools/designer/designer'
/usr/pkgsrc/x11/qt3-tools/work.i386/qt-x11-free-3.3.2/bin/uic -L 
/usr/pkgsrc/x11/qt3-tools/work.i386/qt-x11-free-3.3.2/plugins 
listboxeditor.ui -o listboxeditor.h
gmake[3]: *** [listboxeditor.h] Segmentation fault (core dumped)
gmake[3]: Leaving directory 
`/usr/pkgsrc/x11/qt3-tools/work.i386/qt-x11-free-3.3.2/tools/designer/designer'

Having gdb'ed the core dump, i can see that there is a failure in 
libqt-mt (but i'm not a pro in gdb, so i stopped here):
(gdb) where
#0  0x4856af85 in QString::operator=(QString const&) ()
   from /usr/pkg/qt3/lib/libqt-mt.so.3
#1  0x48549513 in QDir::QDir(QString const&, QString const&, int, int) ()
   from /usr/pkg/qt3/lib/libqt-mt.so.3
#2  0x48575272 in QSettingsPrivate::QSettingsPrivate(QSettings::Format) ()
   from /usr/pkg/qt3/lib/libqt-mt.so.3
#3  0x485781e3 in QSettings::QSettings() () from 
/usr/pkg/qt3/lib/libqt-mt.so.3
#4  0x4823dce4 in qt_init_internal(int*, char**, _XDisplay*, unsigned 
long, unsigned long) () from /usr/pkg/qt3/lib/libqt-mt.so.3
#5  0x4823fd68 in qt_init(int*, char**, QApplication::Type) ()
   from /usr/pkg/qt3/lib/libqt-mt.so.3
#6  0x4829d58e in QApplication::construct(int&, char**, 
QApplication::Type) ()
   from /usr/pkg/qt3/lib/libqt-mt.so.3
#7  0x4829d3d8 in QApplication::QApplication(int&, char**, bool) ()
   from /usr/pkg/qt3/lib/libqt-mt.so.3
#8  0x0804e486 in main ()
#9  0x0804e152 in ___start ()

Also, during the compilation, i can see the following warnings 
(concerning libqt-mt):
*** [buildlink2] Warning: libtool detected 
-L/usr/pkgsrc/x11/qt3-tools/work.i386/qt-x11-free-3.3.2/lib
*** [buildlink2] Warning: libtool detected 
-L/usr/pkgsrc/x11/qt3-tools/work.i386/qt-x11-free-3.3.2/lib
*** [buildlink2] Warning: libtool replaced -lqt-mt with 
/usr/pkgsrc/x11/qt3-tools/work.i386/qt-x11-free-3.3.2/lib/libqt-mt.la

thanks,

Renaud.