[1366] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: Compiling bcastd

daemon@ATHENA.MIT.EDU (Al Longyear)
Tue Nov 14 14:10:55 1995

From: longyear@netcom.com (Al Longyear)
To: louis@sacc.wn.apc.org (Louis Mandelstam)
Date: Mon, 13 Nov 1995 21:21:03 -0800 (PST)
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <Pine.LNX.3.91.951113123523.11159L-100000@khotso.sacc.wn.apc.org> from "Louis Mandelstam" at Nov 13, 95 12:41:03 pm

Louis Mandelstam wrote:

> I'm trying to compile the bcastd which I found on sunsite in 
> system/Network/daemons - but there appears to be some syntactical problem 
> with the source as gcc won't compile it.  I've tried contacting the 
> author and the given address but that host doesn't appear to exist any more.
> 
> Is anyone else using bcastd and able to fill me in on how to compile it?

There are two changes. One will permit the program to compile properly,
the other to execute correctly.

I too have tried to contact the author. I guess that it is an abandonded
program.

The change to permit it to compile is to change the statement:

int main (ac, char *av[])

to

int main (int ac, char *av[])
          ^^^^
The change to permit it to run properly is to change the loop as it 
processes addresses so that it uses '<' rather than '<=' since it starts
at 1 and goes to 'ac'. The problem is that the first argument is not part
of the loop. The result is that if the program tries to use the existing
code it will attempt to reference page 0. This will cause a SEGV.

With these two changes, bcastd compiles and works correctly.

How about updating the copy on sunsite so that others don't have the
same problem? I sent mail to the author about these problems and haven't
received a response. Now that you mention the same problems, you have
reminded me.
  
> It looks like I'll have to use gated instead.

Gated is good. However, it is a large program just to send RIP frames. :(

-- 
Al Longyear           longyear@netcom.com
Finger for PGP key

home help back first fref pref prev next nref lref last post