Fwd: [Kde-nonlinux] Re: Compiling on Solaris 2.6

Simon Josefsson kde-nonlinux@kde.org
Fri, 15 Feb 2002 12:22:34 +0100 (CET)


On Fri, 15 Feb 2002, Michael Matz wrote:

> >  -DQT_NO_ASCII_CAST -Wp,-MD,.deps/nic.pp -c
> >  ../../../kdebase/kcontrol/nics/nic.cpp  -fPIC -DPIC -o .libs/nic.o In file
> >  included from ../../../kdebase/kcontrol/nics/nic.cpp:45:
> > /usr/include/net/if.h:86: `struct map' redeclared as different kind of symbol
> > /pkg/gcc/2.95.3/os/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/../../../../includ
> > e/g++-3/stl_map.h:48: previous declaration of `template <class _Key, class
> >  _Tp, class _Compare = struct less<_Key>, class _Alloc = class allocator<_T2>
> >  > class map<_Key,_Tp,_Compare,_Alloc>' make[4]: *** [nic.lo] Error 1
> 
> Do you have by any chance compiled libqt3 without "-no-stl" as explained
> in README.qt-copy?  Anyway I bet that's the source of sucking in stl_map.h
> as KDE itself makes no use of STL.  This combination isn't very well test,
> obviously.

Right, I did not use -no-stl, but README.qt-copy didn't say it is
required.  Consider this a feature report asking that KDE should work with
QT -stl then. :)