Fwd: [Kde-nonlinux] Re: Compiling on Solaris 2.6
Michael Matz
kde-nonlinux@kde.org
Fri, 15 Feb 2002 02:08:18 +0100 (MET)
Hi,
On Thu, 08 Feb 2002, Simon Josefsson 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.
Ciao,
Michael.