Bug 6430 - trafshow 2.0 (port) can't be compiled
Summary: trafshow 2.0 (port) can't be compiled
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: jseger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-04-27 12:50 UTC by root
Modified: 1998-05-21 01:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description root 1998-04-27 12:50:01 UTC
	
see how to repeat

How-To-Repeat: 
	
# cd /usr/ports/net/trafshow
# make
Comment 1 Poul-Henning Kamp freebsd_committer freebsd_triage 1998-04-29 15:44:32 UTC
Responsible Changed
From-To: gnats-admin->ports

->ports 

Comment 2 Jacques Vidrine 1998-04-30 21:42:42 UTC
lib/interfaces.c includes <net/if_slvar.h>, though it doesn't seem
to need the only structure defined there (struct sl_softc).

I don't think that trafshow should include this file -- at least not
on BSD4.4lite platforms.

Fix, to be applied after all other patches included in the port:

--- lib/interfaces.c	Wed Apr 29 13:56:21 1998
+++ lib/interfaces.c	Wed Apr 29 13:56:30 1998
@@ -23,7 +23,6 @@
 #include <net/if.h>
 #include <net/slip.h>
 #include <net/if_var.h>
-#include <net/if_slvar.h>
 #ifdef __FreeBSD__
 #include <net/if_ppp.h>
 #else

Jacques Vidrine <n@nectar.com>
Comment 3 ac199 1998-05-01 02:22:10 UTC
On Thu, 30 Apr 1998, Jacques Vidrine wrote:

>  Fix, to be applied after all other patches included in the port:

No, there is already one patch to lib/interfaces.c.  Any further
patches should be combined with that one (style guide says "two
patches no patch one file").


--
Only two other people have a .sig like this one.
Comment 4 Jacques Vidrine 1998-05-01 03:14:39 UTC
-----BEGIN PGP SIGNED MESSAGE-----



Hmm, OK.  I'm off to find the style guide for next time.

Meanwhile, I see a fix has been committed for the problem, though I think
the wrong fix.

lib/interfaces.c wouldn't compile because it included <net/if_slvar.h>,
which references struct slcompress.  The distribution shouldn't have
included <net/if_slvar.h>, at least not on BSD4.4lite. That header
is only needed for struct sl_softc, which trafshow does not reference.
Anyway, the name seems to indicate that it should only be included in
kernel sources.

The fix that was committed just imported all the stuff struct slcompress
needed (<net/if_var.h>, <netinet/mbuf.h>, <net/slcompress.h>), which
doesn't seem like the right thing.

Thanks,

Jacques Vidrine <n@nectar.com> 

On 30 April 1998 at 21:22, Tim Vanderhoek <ac199@hwcn.org> wrote:
> On Thu, 30 Apr 1998, Jacques Vidrine wrote:
> 
> >  Fix, to be applied after all other patches included in the port:
> 
> No, there is already one patch to lib/interfaces.c.  Any further
> patches should be combined with that one (style guide says "two
> patches no patch one file").
> 
> 
> --
> Only two other people have a .sig like this one.
> 



-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBNUkwDjeRhT8JRySpAQFdjAQAiHQCJvHIkgzd+FvwvBq9ljqRcB1fQbSX
DYi++9weYebT9KdibFoM42auBnAjyURsanoH0Cicfc9yCmGn3WVp/KjPylT8okee
ytL5c5Qvms8Z/PsfAPyOUwZohRgoL/rqspfkeqMtdVnEJqwPIg1rUJAoyFSuDett
DyosdRZGIJw=
=3fnG
-----END PGP SIGNATURE-----
Comment 5 Steve Price freebsd_committer freebsd_triage 1998-05-03 21:29:15 UTC
Responsible Changed
From-To: ports->jseger

Assign to port's maintainer. 
Comment 6 jseger freebsd_committer freebsd_triage 1998-05-21 01:27:38 UTC
State Changed
From-To: open->closed

I fixed this a while ago.