Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jul 1999 22:00:16 +0200
From:      Udo Schweigert <ust@cert.siemens.de>
To:        Markus Kurek <kurek@etecs3.uni-duisburg.de>
Cc:        freebsd-isdn@FreeBSD.ORG
Subject:   Re: spppcontrol do not compile on NetBSD-1.4
Message-ID:  <19990714220016.A1349@alaska.cert.siemens.de>
In-Reply-To: <19990714200929.A24440@etecs3.uni-duisburg.de>; from Markus Kurek on Wed, Jul 14, 1999 at 08:09:29PM %2B0200
References:  <m114QRp-0003d2C@hcswork.hcs.de> <19990714200929.A24440@etecs3.uni-duisburg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 14, 1999 at 08:09:29PM +0200, Markus Kurek wrote:
> On Wed, Jul 14, 1999 at 04:55:49PM +0200, Hellmuth Michaelis wrote:
> > 
> > a new isdn4bsd beta version (i4b-00.82.00-beta-140799.tar.gz) has been made
> > available on the isdn4bsd distribution site.
> > 
> 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.
> 
> Any hints ?
> 

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.

Regards
-------------------------------------------------------------------------------
Udo Schweigert              || Voice      : +49 89 636 42170
Siemens AG, Siemens CERT    || Fax        : +49 89 636 48000
ZT IK 3                     || email      : Udo.Schweigert@mchp.siemens.de
D-81730 Muenchen / Germany  ||            : ust@cert.siemens.de
PGP fingerprint             || 2A 53 F6 A6 30 59 64 02  6B C4 E0 73 B2 C9 6C E7
-------------------------------------------------------------------------------


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?19990714220016.A1349>