Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 1999 19:51:26 +0000
From:      Markus Kurek <kurek@unidui.uni-duisburg.de>
To:        Udo Schweigert <ust@cert.siemens.de>
Cc:        freebsd-isdn@FreeBSD.ORG
Subject:   Re: spppcontrol do not compile on NetBSD-1.4
Message-ID:  <378E49CE.D2524BFC@uni-duisburg.de>
References:  <m114QRp-0003d2C@hcswork.hcs.de> <19990714200929.A24440@etecs3.uni-duisburg.de> <19990714220016.A1349@alaska.cert.siemens.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Udo Schweigert wrote:

> > I tried upgrading my system to the new beta.
> >
> > cc -O2 -g -Wall -I.. -Werror   -c spppcontrol.c
> > In file included from spppcontrol.c:61:
> > ../if_sppp.h:110: field `pp_comp' has incomplete type
> >
> > This is on NetBSD-1.4.
> 
> This is a problem due to VJ compression, which is new in sppp.
> 
> In spppcontrol.c we have at lines 50-58:
> 
> #ifdef __FreeBSD__
> #if  __FreeBSD__ >= 3
> #include <net/if_var.h>
> #endif
> #include <netinet/in.h>
> #include <netinet/in_systm.h>
> #include <netinet/ip.h>
> #include <net/slcompress.h>
> #endif
> 
> Here we should have the appropriate #includes for non-FreeBSD; an inspection
> of i4b_ipr.c shows that something like this could be sufficient:
> 
> #ifdef __FreeBSD__
> #if  __FreeBSD__ >= 3
> #include <net/if_var.h>
> #endif
> #include <netinet/in.h>
> #include <netinet/in_systm.h>
> #else
> #include <netinet/in.h>
> #include <netinet/in_systm.h>
> #include <netinet/in_var.h>
> #endif
> #include <netinet/ip.h>
> #include <net/slcompress.h>
> 
> Maybe you can verify/correct this solution.

Now spppcontrol compiles w/o a problem, but the result
seems to be useless.

spppcontrol  isp0
spppcontrol: SIOCGIFGENERIC(SPPPIOGDEFS): Invalid argument

--
Markus Kurek



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?378E49CE.D2524BFC>