Subject: scribus and qt3-libs building with gcc3?
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 05/10/2004 21:01:17
I am updating scribus. It needs gcc3.

First I added:
GCC_REQD=               3.0
But that didn't install gcc3 until I also added:
.include "../../mk/compiler.mk"

But after a long time of building scribus I got same error as when
building with old gcc. Then I realized it was using old.

My .work.log showed it ran
/usr/pkg/tmp/pkgsrc/print/scribus/work.rainier/.buildlink/bin/c++

And that had:
cmd="/usr/bin/c++"

I realize I didn't have any g++ or c++ in my /usr/pkg/gcc3/bin/
directory. So I then added "USE_LANGUAGES= c c+" and built gcc3-c++.

But scribus wouldn't configure. config.log had some junk like:

/var/tmp//ccU4U8WN.o(.text+0xe): undefined reference to `QString::null'
/var/tmp//ccU4U8WN.o(.text+0x13): undefined reference to
`QStyleFactory::create(QString const&)'
/var/tmp//ccU4U8WN.o(.text+0x20): undefined reference to
`QCursor::QCursor[in-charge](int)'
/var/tmp//ccU4U8WN.o(.text+0x28): undefined reference to
`QCursor::~QCursor [in-charge]()'

ld also complained about wrong expat version. So I rebuilt qt3-libs.

But then scribus' configure had same problems like:

/var/tmp//ccU4U8WN.o(.gnu.linkonce.r._ZTV6QGList+0x24): undefined
reference to `QGList::read(QDataStream&, void*&)'
/var/tmp//ccU4U8WN.o(.gnu.linkonce.r._ZTV6QGList+0x28): undefined
reference to `QGList::write(QDataStream&, void*) const'
/var/tmp//ccU4U8WN.o(.gnu.linkonce.r._ZTI6QGList+0x8): undefined reference
to `typeinfo for QPtrCollection'

And it also had:
/usr/bin/ld: warning: libstdc++.so.4, needed by
/usr/pkg/qt3/lib/libqt-mt.so, may conflict with libstdc++.so.5

Then I realized I should have built qt3-libs with gcc3.

So if I start using gcc3 should I use it for everything?

Should I put it in my mk.conf? (What should I put in my mk.conf?)


 Jeremy C. Reed

 	  	 	 open source, Unix, *BSD, Linux training
	  	 	 http://www.pugetsoundtechnology.com/