*BSD News Article 72315


Return to BSD News archive

Newsgroups: comp.unix.bsd.bsdi.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news-res.gsl.net!news.gsl.net!news.uoregon.edu!vixen.cso.uiuc.edu!newsfeed.internetmci.com!news.mathworks.com!nntp.primenet.com!news.cais.net!van-bc!nntp.portal.ca!news.iceonline.com!gcsbc.iceonline.com!not-for-mail
From: toor@gcsbciceonline.com (System Administrator)
Subject: Re: [Q] Strange problem compiling trafshow-2.0
Reply-To: gerry@iceonline.com
Sender: root@gcsbc
Nntp-Posting-Host: gcshome.iceonline.com
Organization: Western Task Force
Message-ID: <4r0scb$84a@gcshome.iceonline.com>
References: <01bb6462.62b93c60$0bc26397@yb.ubk.com>
Date: Fri, 28 Jun 1996 15:05:47 GMT
Lines: 46


In article <01bb6462.62b93c60$0bc26397@yb.ubk.com>, "Yann Bongiovanni" <ybongiovanni@acm.org> writes:
|> I downloaded trafshow-2.0 from ftp.bsdi.com/contrib and get strange =
|> errors compiling the package:
|> 
|> /usr/src/local/trafshow-2.0 $ make
|> Build library in /usr/src/local/trafshow-2.0/lib
|> shlicc2 -O2 -I../include  -c interfaces.c
|> In file included from interfaces.c:23:
|> /usr/include/net/if_slvar.h:57: syntax error before `vjc_t'
|> interfaces.c: In function `bpf_slip':
|> interfaces.c:109: `SLIP_HDRLEN' undeclared (first use this function)
|> interfaces.c:109: (Each undeclared identifier is reported only once
|> interfaces.c:109: for each function it appears in.)
|> 
|> I can't see any syntax error net/if_slvar.h, also, I already =
|> successfully compiled the former version contained in the bpft131 =
|> package without problems. What's going on?
|> 
|> Does anyone know how to solve this?
|> 
|> Thank you very much in advance

Even when you solve all the problems, the program doesnt do anything except
tell you that your connection is sleeping or broken. I have run it under
slirp and "real" ppp interfaces with the same results. I dont know how this
free-bee ever got on the ftp server... I think the author doesnt know the
difference between FreeBSD 2.1 and BSD/OS 2.1... Then again if someone has
it working YAY, please post the answer/solution.

The missing decl is in another .h file (I think its <net/slcompress.h, where
you must cut&paste the struct definition into the appropriate header file)
and SLIP_HDRLEN is 16 (from FreeBSD) . I am running it now and NADA on the
screen except some wise-guy comments like: blah-blah-gluk-gluk-wait.. Funny
how tcpdump works just ducky tho'...

-g


|> 
|> 
|> Yann Bongiovanni
|> 
|> 
|> PS: My machine runs BSD/OS 2.1 w/ all K & U-patches applied
|>