pppd 2.3.9 won't compile

pppd 2.3.9 won't compile

Post by dps » Tue, 31 Aug 1999 04:00:00



Hello all ...

Can't get pppd 2.3.9 to compile on my slackware (kernel 2.2.12) box. I've
followed the readme directions but it still bombs out with the following:

------------------------------------------------------------
sys-linux.c: In function `ppp_available':
sys-linux.c:1640: warning: implicit declaration of function `makedev'
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include -
DCHAPMS=1 -DUSE_CRYPT=1 -DHAS_SHADOW   -c ipxcp.c -o ipxcp.o
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include -
DCHAPMS=1 -DUSE_CRYPT=1 -DHAS_SHADOW   -c md4.c -o md4.o
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include -
DCHAPMS=1 -DUSE_CRYPT=1 -DHAS_SHADOW   -c chap_ms.c -o chap_ms.o
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include -
DCHAPMS=1 -DUSE_CRYPT=1 -DHAS_SHADOW -o pppd main.o magic.o fsm.o lcp.o
ipcp.o upap.o chap.o md5.o ccp.o auth.o options.o demand.o utils.o
sys-linux.o ipxcp.o md4.o chap_ms.o
sys-linux.o: In function `ppp_available':
/usr/include/sys/stat.h:169: undefined reference to `makedev'
make[1]: *** [pppd] Error 1
make[1]: Leaving directory `/usr/src/ppp-2.3.9/pppd'
make: *** [all] Error 2
------------------------------------------------------------
I've just upgraded to gcc ver 2.7.2.3, enabled PPP in my new kernel rebuild,
and I am at a standstill here.

Can anyone help?

Thanks for any and all assistance,

peter steele

 
 
 

pppd 2.3.9 won't compile

Post by Kees Leun » Wed, 01 Sep 1999 04:00:00



> cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include -
> DCHAPMS=1 -DUSE_CRYPT=1 -DHAS_SHADOW   -c chap_ms.c -o chap_ms.o
> cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include -
> DCHAPMS=1 -DUSE_CRYPT=1 -DHAS_SHADOW -o pppd main.o magic.o fsm.o lcp.o
> ipcp.o upap.o chap.o md5.o ccp.o auth.o options.o demand.o utils.o
> sys-linux.o ipxcp.o md4.o chap_ms.o
> sys-linux.o: In function `ppp_available':
> /usr/include/sys/stat.h:169: undefined reference to `makedev'

In sys-linux.c, add a line

#include <sys/sysmacros.h>

directly after the line that includes sys/stat.h

That did the trick for me.

-Kees ...-.-

--

Tilburg University, The Netherlands          | Phone: +31 13 466 2688
http://infolab.kub.nl/people/kees/           | HAM: PA3HFB

 
 
 

pppd 2.3.9 won't compile

Post by bill davids » Wed, 01 Sep 1999 04:00:00



| Can't get pppd 2.3.9 to compile on my slackware (kernel 2.2.12) box. I've
| followed the readme directions but it still bombs out with the following:

Did I miss the announce? What's in 2.3.9 from 2.3.8?

--

"So let it be written, so let it be dumb." Pharaoh Dufus the last...

 
 
 

pppd 2.3.9 won't compile

Post by Kevin Philli » Wed, 01 Sep 1999 04:00:00



>Hello all ...

>Can't get pppd 2.3.9 to compile on my slackware (kernel 2.2.12) box. I've
>followed the readme directions but it still bombs out with the following:

>------------------------------------------------------------
>sys-linux.c: In function `ppp_available':
>sys-linux.c:1640: warning: implicit declaration of function `makedev'
>cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include -
>DCHAPMS=1 -DUSE_CRYPT=1 -DHAS_SHADOW   -c ipxcp.c -o ipxcp.o
>cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include -
>DCHAPMS=1 -DUSE_CRYPT=1 -DHAS_SHADOW   -c md4.c -o md4.o
>cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include -
>DCHAPMS=1 -DUSE_CRYPT=1 -DHAS_SHADOW   -c chap_ms.c -o chap_ms.o
>cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include -
>DCHAPMS=1 -DUSE_CRYPT=1 -DHAS_SHADOW -o pppd main.o magic.o fsm.o lcp.o
>ipcp.o upap.o chap.o md5.o ccp.o auth.o options.o demand.o utils.o
>sys-linux.o ipxcp.o md4.o chap_ms.o
>sys-linux.o: In function `ppp_available':
>/usr/include/sys/stat.h:169: undefined reference to `makedev'
>make[1]: *** [pppd] Error 1
>make[1]: Leaving directory `/usr/src/ppp-2.3.9/pppd'
>make: *** [all] Error 2
>------------------------------------------------------------
>I've just upgraded to gcc ver 2.7.2.3, enabled PPP in my new kernel rebuild,
>and I am at a standstill here.

>Can anyone help?

Hi!

I here's a fix that worked for me:  (WARNING: THIS IS FROM MEMORY,
AND MY NEURAL MEMORY IS DEFINITELY NOT NON-VOLATILE :-) )

Add the following line somewhere in the beginning of sys-linux.c
(in the pppd directory of the source code for pppd):

#include <sys/sysmacros.h>

makedev() is a macro that takes two arguments and is defined in
/usr/include/sys/sysmacros.h.

Best regards,
Kevin

 
 
 

pppd 2.3.9 won't compile

Post by dps » Wed, 01 Sep 1999 04:00:00


Thank you all ... worked like a charm!!

Forgive me if this was something obvious that I overlooked in my haste.

- peter

 
 
 

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. WebServer, Mail Server and Firewall ?

3. HELP: pppd won't talk to modem, and won't link up with ISP

4. Welcome to comp.unix.questions [Frequent posting]

5. pppd won't compile :-((

6. Sis 6326 on board video driver issues

7. pppd 2.2.0e won't compile

8. APM support and removable media

9. pppd-2.3.5 won't compile with glibc-2.7.3

10. pppd won't compile

11. PPPD 2.2 won't compile under 1.3.83

12. pppd 2.2.0f won't compile under Kernel 2.0.20

13. help needed: AWE32 PNP won't work - kernel won't compile - gurus read this!