[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: pppd 2.3.5 doesn't compile
- 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)
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 */
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]