[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Solaris compat. quesiotn: (SIOCGIFCONF, SIOCGIFFLAGS, SIOCGIFNETMASK undeclared)
From:       aleXXX <alexander.neundorf () gmx ! net>
Date:       2002-07-01 21:20:38
[Download RAW message or body]

Hi,

I received a bug report, apparently 

#include <sys/sockio.h>

is needed on Solaris 2.6 to be able to use SIOCGIFCONF, SIOCGIFFLAGS and 
SIOCGIFNETMASK.

This header doesn't exist on my linux box, so there should probably be some 
#ifdef's around the #include.
What's the right way ?

Thanks
Alex

----------  Forwarded Message  ----------

Subject: Bug#44577: lanbrowser/kcmlisa does not compile (SIOCGIFCONF, 
SIOCGIFFLAGS, SIOCGIFNETMASK undeclared)
Date: 1 Jul 2002 08:12:48 -0000
From: Johannes.Stamminger@ASTRIUM-Space.com
To: submit@bugs.kde.org

...
Compiler:          gcc 3.1
OS/Compiler notes: SPARC Solaris 2.6

Compilation of package kdenetwork fails with:

/bin/sh ../../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I.
 -I/local_mdb-s/jstammi/compile/src/kdenetwork-3.0.1/lanbrowsing/kcmlisa
 -I../.. -I/tmp/KDE_3.0.1/include -I/tmp/QT_3.0.4/include  
 -I/tmp/LIBS_3.0.1/include    -O2 -fno-exceptions -fno-check-new
 -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DKDE_NO_COMPAT
 -DKDE_NO_COMPAT_H  -c -o libkcm_lanbrowser_la.all_cpp.lo `test -f
 libkcm_lanbrowser_la.all_cpp.cpp || echo
 '/local_mdb-s/jstammi/compile/src/kdenetwork-3.0.1/lanbrowsing/kcmlisa/'`lib
kcm_lanbrowser_la.all_cpp.cpp mkdir .libs
g++ -DHAVE_CONFIG_H -I.
 -I/local_mdb-s/jstammi/compile/src/kdenetwork-3.0.1/lanbrowsing/kcmlisa
 -I../.. -I/tmp/KDE_3.0.1/include -I/tmp/QT_3.0.4/include
 -I/tmp/LIBS_3.0.1/include -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 -MT libkcm_lanbrowser_la.all_cpp.lo -MD -MP
 -MF .deps/libkcm_lanbrowser_la.all_cpp.TPlo  -fPIC -DPIC -o
 .libs/libkcm_lanbrowser_la.all_cpp.o In file included from
 libkcm_lanbrowser_la.all_cpp.cpp:8:
/local_mdb-s/jstammi/compile/src/kdenetwork-3.0.1/lanbrowsing/kcmlisa/findnic
.cpp: In function `NICList* findNICs()':
/local_mdb-s/jstammi/compile/src/kdenetwork-3.0.1/lanbrowsing/kcmlisa/findnic
.cpp:57: ` SIOCGIFCONF' undeclared (first use this function)
...........
 `/local_mdb-s/jstammi/compile/obj/kdenetwork-3.0.1' make: *** [all] Error 2


IMHO an "#include <sys/sockio.h>" is missing in findnic.cpp (? found by
 grepping /usr/include on my SPARC Solaris 2.6 machine ?). Adding this one,
 compilation no longer raises the errors.

(Submitted via bugs.kde.org)

(Complete bug history is available at http://bugs.kde.org/db/44/44577.html)

-------------------------------------------------------
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic