Parse errors compiling PPP 2.2.0e

Parse errors compiling PPP 2.2.0e

Post by David Christens » Tue, 19 Mar 1996 04:00:00



I'm trying to use ppp 2.2.0e with Slackware 3.0.0 and am having troubles
compiling the pppd program.  I receive multiple parse errors.  Apparently there
is a data type u_int32_t which isn't in the ppp_defs.h include file.  I've
tried 1.2.13, and 1.3.72 kernels with the same problem.  I've followed the
directions in the README.linux file (especially the 'make kernel' command which
executes fine on 1.2.13 but doesn't replace anything on the 1.3.72 kernel
because all of the files are newer) but still can't get it to compile.  What am
I missing?  Any help would be appreceiated.

David Christensen

 
 
 

Parse errors compiling PPP 2.2.0e

Post by M.J. Debrece » Wed, 20 Mar 1996 04:00:00




>I'm trying to use ppp 2.2.0e with Slackware 3.0.0 and am having troubles
>compiling the pppd program.  I receive multiple parse errors.  
>Apparently there is a data type u_int32_t which isn't in the ppp_defs.h
>include file.  

[ portion deleted ]

David,

There's an easy workaround for this problem.  Like most other
workarounds, this worked itself out at about 2:00 AM the other night.

The problem is that GCC doesn't know what to do with variables of type
u_int32_t, so it simply throws up its hands in defeat.  It simply doesn't
understand the notation as used in the source for PPP.

Wha did was to add the following line to /usr/include/linux/types.h

                   typedef unsigned int u_int32_t;

Now, any reference to a variable of type u_int32_t will be treated as an
unsigned integer, which GCC should have no problems with.

That seemed to be the only change I had to make.  Everything compiled
properly afterwards, as I remember.

I hope that helps...good luck!!!

Mike Debreceni