libgtop is being a wh0re :)



Hello, after having sifted through this months (November's) and last
months archive, I found a few messages that pertained to my problem, but
i could not find a fix for it.. anyways, here is my problem...

everything I am using (glib, gtk+, etc etc etc) is from today.. I only
just started to get serious about getting into gnome because I saw it
(panel) on a friend's computer and said "i want that.. i will have that,
oh yes i will."

in compiling today's (November 30th, 1998) cvs libgtop, it gets to
netload.c and bails out with the following remarks:

In file included from /usr/include/netinet/ip_fw.h:1,
                 from netload.c:31:
/usr/include/linux/ip_fw.h:37: field `fw_src' has incomplete type
/usr/include/linux/ip_fw.h:37: field `fw_dst' has incomplete type
/usr/include/linux/ip_fw.h:38: field `fw_smsk' has incomplete type
/usr/include/linux/ip_fw.h:38: field `fw_dmsk' has incomplete type
/usr/include/linux/ip_fw.h:121: field `fwp_iph' has incomplete type
/usr/include/linux/ip_fw.h:123: field `fwp_tcph' has incomplete type
/usr/include/linux/ip_fw.h:124: field `fwp_udph' has incomplete type
/usr/include/linux/ip_fw.h:125: field `fwp_icmph' has incomplete type
/usr/include/linux/ip_fw.h:127: field `fwp_via' has incomplete type
netload.c: In function `glibtop_get_netload_s':
netload.c:95: storage size of `addr' isn't known
netload.c:138: variable `addr' has initializer but incomplete type
netload.c:139: dereferencing pointer to incomplete type
netload.c:138: storage size of `addr' isn't known
netload.c:146: variable `addr' has initializer but incomplete type
netload.c:147: dereferencing pointer to incomplete type
netload.c:146: storage size of `addr' isn't known
netload.c:197: `IP_FW_F_ACCTIN' undeclared (first use this function)
netload.c:197: (Each undeclared identifier is reported only once
netload.c:197: for each function it appears in.)
netload.c:208: `IP_FW_F_ACCTOUT' undeclared (first use this function)
make[3]: *** [netload.lo] Error 1
make[3]: Leaving directory `/usr/local/src/cvs/libgtop/sysdeps/linux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/cvs/libgtop/sysdeps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/cvs/libgtop'
make: *** [all-recursive-am] Error 2

now, obviously, the incomplete types aren't a really big deal.. the real
problem is with the IP_FW_F_ACCTIN and IP_FW_F_ACCTOUT being undefined..
i went through netload.c to see if I could find what was up...

here we have the following snippit out of the glibtop_get_netload_s
function where the undefined thingies are trying to be used:

<snippit>
			if (flags & IP_FW_F_ACCTIN) {
			  /* Incoming packets only. */

			  buf->packets_total += packets;
			  buf->packets_in += packets;

			  buf->bytes_total += bytes;
			  buf->bytes_in += bytes;

			  buf->flags |= _glibtop_sysdeps_netload_in;

			} else if (flags & IP_FW_F_ACCTOUT) {
			  /* Outgoing packets only. */

			  buf->packets_total += packets;
			  buf->packets_out += packets;

			  buf->bytes_total += bytes;
			  buf->bytes_out += bytes;

			  buf->flags |= _glibtop_sysdeps_netload_out;

			} else {
			  /* Only have total values. */

			  buf->packets_total += packets;
			  buf->bytes_total += bytes;

			  buf->flags |= _glibtop_sysdeps_netload_total;
			}
</snippit>

I also checked a few of the header files that netload.c uses and could
not find anything pertinent except perhaps for glibtop.h, net/if.h and
netinet/ip_fw.h.  the third header file looks like it could be the
culperit(sp?) but I'm not entirely sure.. i'm thinking that, most
likely, these need to be defined within netload.c ...

if it's of any use, here are some of my system stats:

Slackware 3.5 Linux
kernel 2.1.130
libc5 only (i haven't bothered with trying to install glibc2 yet)
gcc version: egcs 1.0.3

if Martin or anyone has a patch or any kind of advice for this problem,
it would be greatly appreciated. Thank you.

     /----------------------------------------------------------\
     | -Gnea          Email: gnea@garson.grantstomb.com         |
     |      Something Different Networks/Garson Productions     |
     |              -=http://garson.grantstomb.com=-            |
     | Enlightenment: http://www.servtech.com/~gnea/E/          |
     |   Linux rules your world.     FUNC-631 is your friend.   |
     |   Microsoft rules the mindless.                          |
     |   True users use true power.                             |
     |   True losers use mindless power.                        |
     | IRC: #Devil's_Rose - Undernet                            |
     |     #E - EFnet  #E - Valnet #Devil's_Geeks - DarkTombNet |
     \----------------------------------------------------------/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]