Re: Compile problems libgtop
- From: Martin Baulig <martin home-of-linux org>
- To: Rebecca Ore <rebecca ore op net>
- Cc: gnome-list gnome org
- Subject: Re: Compile problems libgtop
- Date: 03 Jan 1999 13:22:12 +0100
Rebecca Ore <rebecca.ore@op.net> writes:
> On Sun, Dec 27, 1998 at 12:10:58AM -0500, Rebecca Ore wrote:
> > I tried compiling the libgtop and got this error message:
> >
> > netload.c: 180: parse error.
Are you using the latest version of LibGTop from CVS ?
Can you perhaps give me a little more detailed error message.
Line 180 in netload.c is the start of a comment ('/* Linux 2.1.114 ...'):
------------------------------------------------------------------------
strcpy (ifr.ifr_name, interface);
if (!ioctl (skfd, SIOCGIFMTU, &ifr)) {
buf->mtu = ifr.ifr_mtu;
buf->flags |= (1 << GLIBTOP_NETLOAD_MTU);
}
close (skfd);
}
/* Linux 2.1.114 - don't know where exactly this was added, but
* recent kernels have byte count in /proc/net/dev so we don't
* need IP accounting.
*/
#if GLIBTOP_LINUX_VERSION_CODE < 131442
/* If IP accounting is enabled in the kernel and it is
* enabled for the requested interface, we use it to
* get the data. In this case, we don't use /proc/net/dev
* to get errors and collisions.
*/
f = fopen ("/proc/net/ip_acct", "r");
if (f) {
int success = 0;
------------------------------------------------------------------------
--
-----------------------------------------------------------------
Martin Baulig - Angewandte Mathematik - Universitaet Trier
martin@home-of-linux.org, http://www.home-of-linux.org/
------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]