pppd 2.3.5 compile error under RH5.1

pppd 2.3.5 compile error under RH5.1

Post by MADX » Tue, 08 Sep 1998 04:00:00



hi
(I use Red HAT 5.1, K6)

I just get the new kernel 2.1.120, and pppd 2.3.3 doesn't work.
So i get the last pppd 2.3.5 source code.
When i try to compile pppd I 've got many include error, I did some
modification in the sys-linux.c about the path of some include:

<sys-linux.c>

     53 #include <net/if.h>
     54 #include <net/if_arp.h>
     55 #include <net/route.h>
     56 #include <netinet/if_ether.h>
     57 #include <netinet/in.h>
     58 #include <arpa/inet.h>
     59
     60 #include <linux/types.h>
     61 #include <net/ppp_defs.h>
     62 #include <net/if_ppp.h>
     63
     64 #include "pppd.h"
     65 #include "fsm.h"
     66 #include "ipcp.h"
     67 #include "patchlevel.h"

But I still have some errors:

In file included from sys-linux.c:62:
../include/net/if_ppp.h:78: warning: no semicolon at end of struct or
union
../include/net/if_ppp.h:78: parse error before `.'
../include/net/if_ppp.h:80: parse error before `}'
../include/net/if_ppp.h:83: warning: no semicolon at end of struct or
union
../include/net/if_ppp.h:83: parse error before `.'
../include/net/if_ppp.h:84: conflicting types for `stats'
../include/net/if_ppp.h:79: previous declaration of `stats'
../include/net/if_ppp.h:85: parse error before `}'
sys-linux.c: In function `set_kdebugflag':
sys-linux.c:318: `PPPIOCSDEBUG' undeclared (first use this function)
sys-linux.c:318: (Each undeclared identifier is reported only once
sys-linux.c:318: for each function it appears in.)
sys-linux.c: In function `ppp_available':
sys-linux.c:1799: `SIOCGPPPVER' undeclared (first use this function)
make[1]: *** [sys-linux.o] Error 1
make[1]: Leaving directory `/tmp/ppp-2.3.5/pppd'
make: *** [all] Error 2

So If someone can help me thanks.
Note: I took the RPM binary of pppd 2.3.5 but I have a segmentation
fault when I run it!!

Thanks
                        MADx

 
 
 

pppd 2.3.5 compile error under RH5.1

Post by Henrik Storn » Tue, 08 Sep 1998 04:00:00



Quote:>I just get the new kernel 2.1.120, and pppd 2.3.3 doesn't work.
>So i get the last pppd 2.3.5 source code.
>When i try to compile pppd I 've got many include error

This patch works for me.

--- ppp-2.3.5/include/linux/ppp_defs.h.orig     Tue Sep  1 15:55:48 1998

 #ifndef _PPP_DEFS_H_
 #define _PPP_DEFS_H_

+#include <sys/types.h>
+#include <asm/types.h>
+
 /*
  * The basic PPP frame.
  */

--
Henrik Storner  |  "testing? What's that? If it compiles, it is good,
                |   if it boots up it is perfect."
                |                                    Linus Torvalds

 
 
 

1. Compiling pppd with cbcp (was Re: can't compile pppd)

Good idea - I've now done that. Infact I've even re-installed the whole
OS too, so its now at RH 5.0.

Well, no. I didn't realise there was a version of 2.2.0g with MSCHAP
compiled into it at the time. Anyway, the current situation is like
this;

I've got ppp-2.3.3 (both src and binary RPMs). I've made the assumption
that MSCHAP and call back aren't compiled in by default, and have tried
compiling my own version. The README.MSCHAP80 and README.cbcp files are
very straightforward, and I compiled pppd with MSCHAP support without a
hitch.

As for the callback, when I patch the ./pppd/Makefile.linux file
according to the instructions, I get success almost all the way there,
and then;

--cut--
cc -O2  -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DCBCP_SUPPORT
-DCHAPMS=1 -DUSE_CRYPT=1   -c cbcp.c -o cbcp.o
cbcp.c:50: `PPP_CBCP' undeclared here (not in a function)
cbcp.c:50: initializer element for `cbcp_protent.protocol' is not
constant
cbcp.c: In function `cbcp_send':
cbcp.c:380: `PPP_CBCP' undeclared (first use this function)
cbcp.c:380: (Each undeclared identifier is reported only once
cbcp.c:380: for each function it appears in.)
make: *** [cbcp.o] Error 1
--cut--

When I read the patch that is supposed to update the Makefile to enable
call back, I noticed that the Makefile appears to have changed slightly
since the patch was built (a couple of line numbers are out of sync).

I've never applied a patch before, so I decided to just edit the
Makefile myself. There are only two changes to be made, so I'm confident
I didn't make a balls of it.

I think that the patch was made at version 2.3.0, and I'm trying to
apply it to 2.3.3. I may be talking out of my backside though.
Suggestions, anybody? Please... I'm getting seriously frustrated by this
now, and refuse to revert to Win95. I shan't, I shan't, I shan't....

An easy question - does the binary RPM available from Red Hat's contrib
directory at their ftp site support dial back and MSCHAP by default? I
havn't even considered this possibility, and will be as sick as a pig
(and rather relieved) if it does...

Yes, Red Hat defaults to PPP support via a module. Allegedly.

Thanks for the info.

--
Graham

2. ftape compile error: VERIFY_WRITE undeclared?

3. OpenSuse 11.1 Kinternet error: "pppd[0] died: pppd options error (exit code 2)

4. QIC-Wide drives (IDE and Floppy interface)

5. Change-passwd Compile Error RH5.2

6. AHA 3950U2B

7. diald compile error in RH5.1

8. xlock not working correctly "Can not get hostbyname"

9. RH5 Kernel compile errors 2.0.32

10. RH5.2 Compile Custom Kernel -- ERRORS!

11. pppd - need help compiling pppd 2.2.0f

12. strange compile error with pppd

13. PPPD Compile errors