Subject: qt3-tools on Linux
To: None <tech-pkg@netbsd.org>
From: Louis Guillaume <lguillaume@berklee.edu>
List: tech-pkg
Date: 09/13/2004 19:03:48
Today it's the qt3-tools package! I managed to get qt3-libs to build 
after clearing out pkgsrc/mk and updating from CVS. Also 
re-bootstrapped. Immediately after, I went to build qt3-tools. Was sure 
to make clean CLEANDEPENDS=YES.

The same weird looping thing is happening...

===> Building for qt3-tools-3.3.3
cd tools && /usr/bin/make
make[1]: Entering directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools'
cd assistant/lib && /usr/bin/make -f Makefile
make[2]: Entering directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/assistant/lib'
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/bin/qmake -spec 
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -o 
Makefile lib.pro
make[2]: Leaving directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/assistant/lib'
make[2]: Entering directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/assistant/lib'
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/bin/qmake -spec 
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -o 
Makefile lib.pro
make[2]: Leaving directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/assistant/lib'
make[2]: Entering directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/assistant/lib'
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/bin/qmake -spec 
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -o 
Makefile lib.pro


...strangely enough, it gets through lib.pro after several hundred tries...

make[2]: Leaving directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/assistant/lib'
make[2]: Entering directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/assistant/lib'
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/bin/qmake -spec 
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -o 
Makefile lib.pro
make[2]: Leaving directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/assistant/lib'
make[2]: Entering directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/assistant/lib'
/usr/pkg/bin/libtool --mode=compile g++ -c -O2 -DQ_TRAILING_DIR_SEP 
-I/usr/pkg/include -I/usr/pkg/qt3/include -I/usr/pkg/include/freetype2 
-I/usr/pkg/qt3/include -fno-exceptions -D_REENTRANT 
-DQT_INTERNAL_NETWORK -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED 
-I/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -I. 
-I/usr/pkg/include/freetype2 -I/usr/pkg/include -I../../../include 
-I/usr/pkg/include -I.moc/release-shared-mt/ -o 
.obj/release-shared-mt/qassistantclient.o qassistantclient.cpp
mkdir .obj/release-shared-mt/.libs
  g++ -c -O2 -DQ_TRAILING_DIR_SEP -I/usr/pkg/include 
-I/usr/pkg/qt3/include -I/usr/pkg/include/freetype2 
-I/usr/pkg/qt3/include -fno-exceptions -D_REENTRANT 
-DQT_INTERNAL_NETWORK -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED 
-I/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -I. 
-I/usr/pkg/include/freetype2 -I/usr/pkg/include -I../../../include 
-I/usr/pkg/include -I.moc/release-shared-mt/ qassistantclient.cpp  -fPIC 
-DPIC -o .obj/release-shared-mt/.libs/qassistantclient.o
  g++ -c -O2 -DQ_TRAILING_DIR_SEP -I/usr/pkg/include 
-I/usr/pkg/qt3/include -I/usr/pkg/include/freetype2 
-I/usr/pkg/qt3/include -fno-exceptions -D_REENTRANT 
-DQT_INTERNAL_NETWORK -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED 
-I/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -I. 
-I/usr/pkg/include/freetype2 -I/usr/pkg/include -I../../../include 
-I/usr/pkg/include -I.moc/release-shared-mt/ qassistantclient.cpp -o 
.obj/release-shared-mt/qassistantclient.o >/dev/null 2>&1
( cd /usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/src/moc && 
/usr/bin/make )
make[3]: Entering directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/src/moc'



... then there are some errors ...

creating ../../../lib/libqassistantclient.la
(cd ../../../lib/.libs && rm -f libqassistantclient.la && ln -s 
../libqassistantclient.la libqassistantclient.la)
ln -s libqassistantclient.so.1.0.0 libqassistantclient.so
ln -s libqassistantclient.so.1.0.0 libqassistantclient.so.1
ln -s libqassistantclient.so.1.0.0 libqassistantclient.so.1.0
rm -f ../../../lib/libqassistantclient.so.1.0.0
rm -f ../../../lib/libqassistantclient.so
rm -f ../../../lib/libqassistantclient.so.1
rm -f ../../../lib/libqassistantclient.so.1.0
mv libqassistantclient.so.1.0.0 libqassistantclient.so 
libqassistantclient.so.1 libqassistantclient.so.1.0 ../../../lib/
mv: cannot stat `libqassistantclient.so.1.0.0': No such file or directory
make[2]: [../../../lib/libqassistantclient.so.1.0.0] Error 1 (ignored)


... and ...

creating ../../../lib/libqui.la
(cd ../../../lib/.libs && rm -f libqui.la && ln -s ../libqui.la libqui.la)
ln -s libqui.so.1.0.0 libqui.so
ln -s libqui.so.1.0.0 libqui.so.1
ln -s libqui.so.1.0.0 libqui.so.1.0
rm -f ../../../lib/libqui.so.1.0.0
rm -f ../../../lib/libqui.so
rm -f ../../../lib/libqui.so.1
rm -f ../../../lib/libqui.so.1.0
mv libqui.so.1.0.0 libqui.so libqui.so.1 libqui.so.1.0 ../../../lib/
mv: cannot stat `libqui.so.1.0.0': No such file or directory
make[3]: [../../../lib/libqui.so.1.0.0] Error 1 (ignored)



... then we end up doing this ...


make[3]: Leaving directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/designer/uilib'
cd designer && /usr/bin/make -f Makefile
make[3]: Entering directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/designer/designer'
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/bin/qmake -spec 
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -o 
Makefile designer.pro
make[3]: Leaving directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/designer/designer'
make[3]: Entering directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/designer/designer'
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/bin/qmake -spec 
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -o 
Makefile designer.pro
make[3]: Leaving directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/designer/designer'
make[3]: Entering directory 
`/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/tools/designer/designer'
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/bin/qmake -spec 
/usr/pkgsrc/x11/qt3-tools/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -o 
Makefile designer.pro




several hundred times. It'll run all night if I let it (I think).

What on earth could possibly be wrong here? Can anyone replicate this?

Any help would be great. Here's my mk.conf...

# cat /etc/mk.conf

.ifdef BSD_PKG_MK       # begin pkgsrc settings

PKG_DBDIR=/var/db/pkg
LOCALBASE=/usr/pkg
FETCH_CMD=/usr/pkg/bin/ftp
PAX=/usr/pkg/bin/pax

X11BASE=/usr/pkg/XFree86
X11_TYPE=XFree86
USE_CUPS=YES
_NEED_PERL58=YES
ACCEPTABLE_LICENSES+=fee-based-commercial-use

DEPENDS_TARGET=package

.endif                  # end pkgsrc settings


Thanks,

Louis