From: "Andrea Dell'Amico" <adellam@zia.ms.it>
To: axp-list@redhat.com
Subject: Re: pppd 2.3.5 doesn't compile
Date: Tue, 22 Sep 1998 18:33:17 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.3.96.980922183011.17084A-100000@icaro.zia.ms.it> (raw)
In-Reply-To: <Pine.LNX.3.96.980922112252.7807A-100000@microwave.ph.msstate.edu>
On Tue, 22 Sep 1998, Jiann-Ming Su wrote:
> > You may try adding
> >
> > #undef _LINUX_TYPES_H
> > #include <asm/types.h>
> >
> > to the top of sys-linux.c . This worked for a similar problem but on
> > Intel-linux.
>
I did this and now get the following:
[...] compilation errors deleted.
You need a patch to compile pppd 2.3.x against kernels 2.0.3x and
glibc. You can find it in the redhat source rpm, or below :-).
ciao
andrea
--- ppp-2.3.5/pppd/sys-linux.c.glibc Fri Jun 5 15:35:39 1998
+++ ppp-2.3.5/pppd/sys-linux.c Fri Jun 5 16:06:36 1998
@@ -55,18 +55,19 @@
#include <net/if_arp.h>
#include <net/route.h>
#include <netinet/if_ether.h>
+#include "/usr/include/net/ppp_defs.h"
+#include "/usr/include/net/if_ppp.h"
#else
#include <linux/if.h>
#include <linux/if_arp.h>
#include <linux/route.h>
#include <linux/if_ether.h>
-#endif
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
#include <linux/types.h>
#include <linux/ppp_defs.h>
#include <linux/if_ppp.h>
+#endif
+#include <netinet/in.h>
+#include <arpa/inet.h>
#include "pppd.h"
#include "fsm.h"
--- ppp-2.3.5/pppstats/pppstats.c.glibc Fri Jun 5 16:29:05 1998
+++ ppp-2.3.5/pppstats/pppstats.c Fri Jun 5 16:30:57 1998
@@ -58,12 +58,14 @@
/* Linux */
#if __GLIBC__ >= 2
#include <net/if.h>
+#include "/usr/include/net/ppp_defs.h"
+#include "/usr/include/net/if_ppp.h"
#else
#include <linux/if.h>
-#endif
#include <linux/types.h>
#include <linux/ppp_defs.h>
#include <linux/if_ppp.h>
+#endif
#endif /* _linux_ */
#else /* STREAMS */
next prev parent reply other threads:[~1998-09-22 16:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-20 17:23 pppd 2.3.5 doesn't compile Jonathan Vafai
1998-09-20 18:53 ` danields
1998-09-20 19:33 ` Jonathan Vafai
1998-09-22 16:23 ` Jiann-Ming Su
1998-09-22 16:33 ` Andrea Dell'Amico [this message]
1998-09-22 18:54 ` Peter Rye
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox