filename doubly defined in expire

Greg Skinner gregbo at houxm.UUCP
Sun Sep 23 00:13:04 AEST 1984


> From: netnews at wnuxb.UUCP (Ron Heiby)
> I find that there are declarations for
> 	char filename[BUFLEN];
> in both expire.c and rextern.c, which cause the ld for expire (that links
> both expire.o and rextern.o) to fail with filename doubly defined.  The
> 2.10 software that was on this site when I took over the netnews admin
> work had filename declared extern in expire.c.  I made the change to 2.10.2
> expire.c and have now successfully done a "make all" (i.e. the ld is
> satisfied).  I am running System V (5.0.5) on a AT&T 3B20S.

In general, whenever ld complains about multiple definitions, I have found the
culprit to be undeclared extern variables.  This was the case in virtterm.c,
I believe, for the declarations of *UP and *PC.  When I put in the extern
declarations everything was fine.  This makes me wonder though, was this an
oversight on the authors of vnews or did they have some specific reasons for
this?  I haven't tried compiling the news2.10.2 source on anything besides
vaxen and 3Bs running System V, how does the code compile on other
machines?

Also, has anyone found difficulty running vnews from a remote terminal dialed
into a MICOM-like switch?  Reminds me of the trouble I experienced using 
vnews through the SUPDUP protocol, which resulted in inability to use vnews on
a SUPDUP terminal.  Has anyone got a fix? 
-- 
Hug me till you drug me, honey!

Greg Skinner (gregbo)
{allegra,cbosgd,harvard,ihnp4}!houxm!gregbo



More information about the Net.bugs mailing list