[Kde-nonlinux] Re: Compiling on Solaris 2.6

Simon Josefsson kde-nonlinux@kde.org
Fri, 08 Feb 2002 21:21:11 +0100


Kdenetwork 3.0beta2 doesn't compile (error quoted below), and it seems
as if kdebase 3.0beta2 now has the same problem as well:

make[4]: Entering directory `/afs/pdc.kth.se/home/j/jas/src/kde/kdebase-o/kcontrol/nics'
/bin/sh ../../libtool --mode=compile --tag=CXX g++ -isystem /usr/openwin/include -R/pkg/gcc/2.95.3/os/lib -DHAVE_CONFIG_H -I. -I../../../kdebase/kcontrol/nics -I../.. -I/usr/local/hacks/common/vol/kde/3.0/include -I/usr/local/hacks/common/vol/qt/3.0.1/include -I/usr/openwin/include  -I/usr/local/hacks/include -I/usr/local/hacks/vol/audiofile/0.2.2/include -I/usr/local/hacks/vol/freetype/2.0.5/include/freetype2  -DQT_THREAD_SUPPORT  -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4  -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST  -c ../../../kdebase/kcontrol/nics/nic.cpp
g++ -isystem /usr/openwin/include -R/pkg/gcc/2.95.3/os/lib -DHAVE_CONFIG_H -I. -I../../../kdebase/kcontrol/nics -I../.. -I/usr/local/hacks/common/vol/kde/3.0/include -I/usr/local/hacks/common/vol/qt/3.0.1/include -I/usr/openwin/include -I/usr/local/hacks/include -I/usr/local/hacks/vol/audiofile/0.2.2/include -I/usr/local/hacks/vol/freetype/2.0.5/include/freetype2 -DQT_THREAD_SUPPORT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4 -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -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/../../../../include/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
make[4]: Leaving directory `/afs/pdc.kth.se/home/j/jas/src/kde/kdebase-o/kcontrol/nics'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/afs/pdc.kth.se/home/j/jas/src/kde/kdebase-o/kcontrol/nics'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/afs/pdc.kth.se/home/j/jas/src/kde/kdebase-o/kcontrol'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/afs/pdc.kth.se/home/j/jas/src/kde/kdebase-o'
make: *** [all-recursive-am] Error 2
my$ 

Simon Josefsson <jas@extundo.com> writes:

> kdenetwork seems to fail as well. Btw, kdegraphis built fine.
>
> make[3]: Entering directory `/afs/pdc.kth.se/home/j/jas/src/kde/kdenetwork-o/lanbrowsing/kcmlisa'
> make[4]: Entering directory `/afs/pdc.kth.se/home/j/jas/src/kde/kdenetwork-o/lanbrowsing/kcmlisa'
> /bin/sh ../../libtool --mode=compile --tag=CXX g++ -isystem /usr/openwin/include -R/pkg/gcc/2.95.3/os/lib -DHAVE_CONFIG_H -I. -I../../../kdenetwork/lanbrowsing/kcmlisa -I../.. -I/usr/local/hacks/common/vol/kde/3.0/include -I/usr/local/hacks/common/vol/qt/3.0.1/include -I/usr/openwin/include  -I/usr/local/hacks/include -I/usr/local/hacks/vol/audiofile/0.2.2/include -I/usr/local/hacks/vol/freetype/2.0.5/include/freetype2  -DQT_THREAD_SUPPORT  -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4  -O2 -fno-exceptions -fno-check-new -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DKDE_NO_COMPAT -DKDE_NO_COMPAT_H  -c libkcm_lanbrowser_la.all_cpp.cpp
> g++ -isystem /usr/openwin/include -R/pkg/gcc/2.95.3/os/lib -DHAVE_CONFIG_H -I. -I../../../kdenetwork/lanbrowsing/kcmlisa -I../.. -I/usr/local/hacks/common/vol/kde/3.0/include -I/usr/local/hacks/common/vol/qt/3.0.1/include -I/usr/openwin/include -I/usr/local/hacks/include -I/usr/local/hacks/vol/audiofile/0.2.2/include -I/usr/local/hacks/vol/freetype/2.0.5/include/freetype2 -DQT_THREAD_SUPPORT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4 -O2 -fno-exceptions -fno-check-new -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DKDE_NO_COMPAT -DKDE_NO_COMPAT_H -Wp,-MD,.deps/libkcm_lanbrowser_la.all_cpp.pp -c libkcm_lanbrowser_la.all_cpp.cpp  -fPIC -DPIC -o .libs/libkcm_lanbrowser_la.all_cpp.o
> In file included from libkcm_lanbrowser_la.all_cpp.cpp:3:
> ../../../kdenetwork/lanbrowsing/kcmlisa/setupwizard.cpp: In method `void SetupWizard::generateLisaConfigInfo(QString)':
> ../../../kdenetwork/lanbrowsing/kcmlisa/setupwizard.cpp:523: implicit declaration of function `int inet_aton(...)'
> In file included from ../../../kdenetwork/lanbrowsing/kcmlisa/findnic.cpp:31,
>                  from libkcm_lanbrowser_la.all_cpp.cpp:8:
> /usr/include/net/if.h: At top level:
> /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/../../../../include/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]: *** [libkcm_lanbrowser_la.all_cpp.lo] Error 1
> make[4]: Leaving directory `/afs/pdc.kth.se/home/j/jas/src/kde/kdenetwork-o/lanbrowsing/kcmlisa'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/afs/pdc.kth.se/home/j/jas/src/kde/kdenetwork-o/lanbrowsing/kcmlisa'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/afs/pdc.kth.se/home/j/jas/src/kde/kdenetwork-o/lanbrowsing'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/afs/pdc.kth.se/home/j/jas/src/kde/kdenetwork-o'
> make: *** [all-recursive-am] Error 2