Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Peter Rye <prye@picu-sgh.demon.co.uk>
To: axp-list@redhat.com
Subject: Re: pppd 2.3.5 doesn't compile
Date: 22 Sep 1998 18:54:29 -0000	[thread overview]
Message-ID: <19980922185429.17266.qmail@picu-sgh.demon.co.uk> (raw)
In-Reply-To: <Pine.LNX.3.96.980922112252.7807A-100000@microwave.ph.msstate.edu> (message from Jiann-Ming Su on Tue, 22 Sep 1998 11:23:28 -0500 (CDT))

>>>>> "Jiann-Ming" == Jiann-Ming Su <js1@microwave.ph.msstate.edu> writes:

    >> > 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.
    >> 

    Jiann-Ming> I did this and now get the following:

<snip>

    Jiann-Ming> make[1]: Entering directory
    Jiann-Ming> `/usr/local/src/ppp-2.3.5/pppstats' cc -O -D_linux_
    Jiann-Ming> -I../include -o pppstats pppstats.c In file included from
    Jiann-Ming> pppstats.c:65: ../include/linux/ppp_defs.h:97: parse error
    Jiann-Ming> before `ext_accm' ../include/linux/ppp_defs.h:97: warning:
    Jiann-Ming> data definition has no type or storage class
    Jiann-Ming> ../include/linux/ppp_defs.h:113: parse error before `__u32'

<snip>

Make a similar change to pppstats.c

Here's a patch I used here

--- ppp-2.3.5/pppd/sys-linux.c  Mon May  4 07:45:00 1998
+++ ppp-mod/pppd/sys-linux.c    Sun Sep 20 21:19:24 1998
@@ -26,6 +26,7 @@
 #include <sys/file.h>
 #include <sys/stat.h>
 #include <sys/utsname.h>
+#include <asm/types.h>

 #include <stdio.h>
 #include <stdlib.h>
--- ppp-2.3.5/pppstats/pppstats.c       Wed Apr  1 00:48:03 1998
+++ ppp-mod/pppstats/pppstats.c Sun Sep 20 21:19:10 1998
@@ -47,6 +47,7 @@
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/ioctl.h>
+#include <asm/types.h>

 #ifndef STREAMS
 #include <sys/socket.h>                /* *BSD, Linux, NeXT, Ultrix etc. */


      parent reply	other threads:[~1998-09-22 22:18 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
1998-09-22 18:54       ` Peter Rye [this message]
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