Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* pppd 2.3.5 doesn't compile
@ 1998-09-20 17:23 Jonathan Vafai
  1998-09-20 18:53 ` danields
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Vafai @ 1998-09-20 17:23 UTC (permalink / raw)
  To: axp-list

Has anyone gotten pppd 2.3.5 to compile?

2.3.3 doesn't want to work under kernel 2.1


I tried applying the alpha patches for 2.3.3 to 2.3.5 but it still doesn't
work.
make stops when it gets to  sys-linux.c


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pppd 2.3.5 doesn't compile
  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
  0 siblings, 1 reply; 6+ messages in thread
From: danields @ 1998-09-20 18:53 UTC (permalink / raw)
  To: axp-list

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.

On Sun, 20 Sep 1998, Jonathan Vafai wrote:

> Has anyone gotten pppd 2.3.5 to compile?
> 
> 2.3.3 doesn't want to work under kernel 2.1
> 
> 
> I tried applying the alpha patches for 2.3.3 to 2.3.5 but it still doesn't
> work.
> make stops when it gets to  sys-linux.c
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 
> 
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pppd 2.3.5 doesn't compile
  1998-09-20 18:53 ` danields
@ 1998-09-20 19:33   ` Jonathan Vafai
  1998-09-22 16:23     ` Jiann-Ming Su
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Vafai @ 1998-09-20 19:33 UTC (permalink / raw)
  To: axp-list

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



THANK YOU!

this makes it work.

-Jon


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pppd 2.3.5 doesn't compile
  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
  0 siblings, 2 replies; 6+ messages in thread
From: Jiann-Ming Su @ 1998-09-22 16:23 UTC (permalink / raw)
  To: axp-list


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

cd chat; make  all
make[1]: Entering directory `/usr/local/src/ppp-2.3.5/chat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/ppp-2.3.5/chat'
cd pppd; make  all
make[1]: Entering directory `/usr/local/src/ppp-2.3.5/pppd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/ppp-2.3.5/pppd'
cd pppstats; make  all
make[1]: Entering directory `/usr/local/src/ppp-2.3.5/pppstats'
cc -O -D_linux_ -I../include -o pppstats pppstats.c 
make[1]: Leaving directory `/usr/local/src/ppp-2.3.5/pppstats'
cd chat; make  all
make[1]: Entering directory `/usr/local/src/ppp-2.3.5/chat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/ppp-2.3.5/chat'
cd pppd; make  all
make[1]: Entering directory `/usr/local/src/ppp-2.3.5/pppd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/ppp-2.3.5/pppd'
cd pppstats; make  all
make[1]: Entering directory `/usr/local/src/ppp-2.3.5/pppstats'
cc -O -D_linux_ -I../include -o pppstats pppstats.c 
In file included from pppstats.c:65:
../include/linux/ppp_defs.h:97: parse error before `ext_accm'
../include/linux/ppp_defs.h:97: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:113: parse error before `__u32'
../include/linux/ppp_defs.h:113: warning: no semicolon at end of struct or union
../include/linux/ppp_defs.h:115: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:116: parse error before `ppp_ioctects'
../include/linux/ppp_defs.h:116: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:117: parse error before `ppp_ipackets'
../include/linux/ppp_defs.h:117: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:118: parse error before `ppp_ierrors'
../include/linux/ppp_defs.h:118: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:119: parse error before `ppp_ilqrs'
../include/linux/ppp_defs.h:119: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:121: parse error before `ppp_obytes'
../include/linux/ppp_defs.h:121: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:122: parse error before `ppp_ooctects'
../include/linux/ppp_defs.h:122: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:123: parse error before `ppp_opackets'
../include/linux/ppp_defs.h:123: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:124: parse error before `ppp_oerrors'
../include/linux/ppp_defs.h:124: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:125: parse error before `ppp_olqrs'
../include/linux/ppp_defs.h:125: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:129: parse error before `__u32'
../include/linux/ppp_defs.h:129: warning: no semicolon at end of struct or union
../include/linux/ppp_defs.h:130: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:131: parse error before `vjs_searches'
../include/linux/ppp_defs.h:131: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:132: parse error before `vjs_misses'
../include/linux/ppp_defs.h:132: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:133: parse error before `vjs_uncompressedin'
../include/linux/ppp_defs.h:133: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:134: parse error before `vjs_compressedin'
../include/linux/ppp_defs.h:134: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:135: parse error before `vjs_errorin'
../include/linux/ppp_defs.h:135: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:136: parse error before `vjs_tossed'
../include/linux/ppp_defs.h:136: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:140: parse error before `__u32'
../include/linux/ppp_defs.h:140: warning: no semicolon at end of struct or union
../include/linux/ppp_defs.h:141: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:142: parse error before `comp_bytes'
../include/linux/ppp_defs.h:142: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:143: parse error before `comp_packets'
../include/linux/ppp_defs.h:143: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:144: parse error before `inc_bytes'
../include/linux/ppp_defs.h:144: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:145: parse error before `inc_packets'
../include/linux/ppp_defs.h:145: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:148: parse error before `in_count'
../include/linux/ppp_defs.h:148: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:149: parse error before `bytes_out'
../include/linux/ppp_defs.h:149: warning: data definition has no type or storage class
../include/linux/ppp_defs.h:152: parse error before `}'
../include/linux/ppp_defs.h:155: field `p' has incomplete type
../include/linux/ppp_defs.h:156: field `vj' has incomplete type
../include/linux/ppp_defs.h:160: field `c' has incomplete type
../include/linux/ppp_defs.h:161: field `d' has incomplete type
In file included from pppstats.c:66:
../include/linux/if_ppp.h:92: parse error before `__u8'
../include/linux/if_ppp.h:92: warning: no semicolon at end of struct or union
../include/linux/if_ppp.h:93: warning: data definition has no type or storage class
../include/linux/if_ppp.h:95: parse error before `}'
make[1]: *** [pppstats] Error 1
make[1]: Leaving directory `/usr/local/src/ppp-2.3.5/pppstats'
make: *** [all] Error 2



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pppd 2.3.5 doesn't compile
  1998-09-22 16:23     ` Jiann-Ming Su
@ 1998-09-22 16:33       ` Andrea Dell'Amico
  1998-09-22 18:54       ` Peter Rye
  1 sibling, 0 replies; 6+ messages in thread
From: Andrea Dell'Amico @ 1998-09-22 16:33 UTC (permalink / raw)
  To: axp-list

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 */



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pppd 2.3.5 doesn't compile
  1998-09-22 16:23     ` Jiann-Ming Su
  1998-09-22 16:33       ` Andrea Dell'Amico
@ 1998-09-22 18:54       ` Peter Rye
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Rye @ 1998-09-22 18:54 UTC (permalink / raw)
  To: axp-list

>>>>> "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. */


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1998-09-22 22:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox