Hi, I am experiencing the following problem with libgtop :[root@test libgtop]# make
make all-recursive
make[1]: Entering directory `/linux/unstable/libgtop'
(stripped...)
Making all in linux
make[3]: Entering directory `/linux/unstable/libgtop/sysdeps/linux'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..
-D_IN_LIBGTOP -D_GNU_SOURCE -DGLIBTOP_NAMES -I../.. -I../.. -I../../sysdeps/linux
-I../../include -I../../intl -I/home/r00t/unstable/lib/glib/include
-I/home/r00t/unstable/lib -g -O2 -Wall -Wno-unused -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -I/usr/X11R6/
-DGTOPLOCALEDIR=\"/home/r00t/unstable//share/locale\" -DLIBGTOP_VERSION=\"0.26.5\"
-DLIBGTOP_SERVER_VERSION=\"2\" -DLIBGTOP_SERVER=\"/home/r00t/unstable//bin/libgtop_server\"
-Wall -W -g -O2 -Wall -Wno-unused -Wmissing-prototypes -Wmissing-declarations
-Wpointer-arith -c netload.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_IN_LIBGTOP -D_GNU_SOURCE -DGLIBTOP_NAMES
-I../.. -I../.. -I../../sysdeps/linux -I../../include -I../../intl -I/home/r00t/unstable/lib/glib/include
-I/home/r00t/unstable/lib -g -O2 -Wall -Wno-unused -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -I/usr/X11R6/ -DGTOPLOCALEDIR=\"/home/r00t/unstable//share/locale\"
-DLIBGTOP_VERSION=\"0.26.5\" -DLIBGTOP_SERVER_VERSION=\"2\" -DLIBGTOP_SERVER=\"/home/r00t/unstable//bin/libgtop_server\"
-Wall -W -g -O2 -Wall -Wno-unused -Wmissing-prototypes -Wmissing-declarations
-Wpointer-arith -Wp,-MD,.deps/netload.p -c -fPIC -DPIC netload.c
In file included from /usr/include/linux/if.h:23,
from /usr/include/linux/netdevice.h:30,
from netload.c:32:
/usr/include/linux/socket.h:38: warning: `SCM_RIGHTS' redefined
/usr/include/socketbits.h:216: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:41: warning: `SOCK_STREAM' redefined
/usr/include/socketbits.h:40: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:42: warning: `SOCK_DGRAM' redefined
/usr/include/socketbits.h:43: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:43: warning: `SOCK_RAW' redefined
/usr/include/socketbits.h:45: warning: this is the location of the
previous definition
(many others warning..)
In file included from netload.c:33:
/usr/include/linux/ip_fw.h:182: field `fwp_iph' has incomplete type
/usr/include/linux/ip_fw.h:184: field `fwp_tcph' has incomplete type
/usr/include/linux/ip_fw.h:186: field `fwp_icmph' has incomplete type
make[3]: *** [netload.lo] Error 1
make[3]: Leaving directory `/linux/unstable/libgtop/sysdeps/linux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/linux/unstable/libgtop/sysdeps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/linux/unstable/libgtop'
make: *** [all-recursive-am] Error 2
[root@Daluvb0at libgtop]#
Question: Something is wrong with my /usr/include/linux or it is due to libgtop ?
Hope you can help.
Mart