Compiling problem with ppp 2.2.0e

Compiling problem with ppp 2.2.0e

Post by Mikko Rauha » Thu, 04 Jan 1996 04:00:00



Greetings

I tried to install ppp 2.2.0e with kernel 1.3.52. I ran "make kernel" as
was told in the README.linux, and then tried to compile the kernel as
told. I won't put every error message here but here's a snatch from the end:

ppp.c: In function `ppp_alloc':
ppp.c:3323: dereferencing pointer to incomplete type
ppp.c:3339: dereferencing pointer to incomplete type
ppp.c:3341: dereferencing pointer to incomplete type
ppp.c:3342: dereferencing pointer to incomplete type
ppp.c:3343: dereferencing pointer to incomplete type
ppp.c:3315: warning: `ppp' might be used uninitialized in this function
make[2]: *** [ppp.o] Error 1

There was many pages of this same kind of junk. Also the pppd compilation
bombed:
cc -g   -D_linux_=1 -DHAVE_PATHS_H   -c main.c -o main.o
In file included from /usr/include/net/ppp_defs.h:1,
                 from pppd.h:31,
                 from main.c:43:
/usr/include/linux/ppp_defs.h:99: parse error before `ext_accm'
/usr/include/linux/ppp_defs.h:99: warning: data definition has no type or
storag
e class
In file included from main.c:43:
pppd.h:69: parse error before `netmask'
pppd.h:69: warning: data definition has no type or storage class
pppd.h:114: parse error before `GetMask'
pppd.h:114: warning: parameter names (without types) in function declaration
pppd.h:114: warning: data definition has no type or storage class
In file included from main.c:44:
magic.h:23: parse error before `magic'
magic.h:23: warning: data definition has no type or storage class
In file included from main.c:46:
lcp.h:58: parse error before `u_int32_t'
lcp.h:58: warning: no semicolon at end of struct or union
lcp.h:59: warning: data definition has no type or storage class
lcp.h:61: parse error before `lqr_period'

etc.... gives a lot of similiar parse errors...

So, anyone have a clue what's going on here? I'll supply additional
information if needed... Or should I just get some earlier ppp version?

        - Mjr


Disclaimer:
The opinions expressed above are mine and (hopefully) not those of the
Microsoft Corporation (not that I have anything to do with the thing)

 
 
 

Compiling problem with ppp 2.2.0e

Post by c.. » Fri, 05 Jan 1996 04:00:00



   Date: 3 Jan 1996 20:28:46 GMT

   There was many pages of this same kind of junk. Also the pppd compilation
   bombed:
   cc -g   -D_linux_=1 -DHAVE_PATHS_H   -c main.c -o main.o
   In file included from /usr/include/net/ppp_defs.h:1,
                    from pppd.h:31,
                    from main.c:43:
   /usr/include/linux/ppp_defs.h:99: parse error before `ext_accm'
   /usr/include/linux/ppp_defs.h:99: warning: data definition has no type or
   storag
   e class
   In file included from main.c:43:
   pppd.h:69: parse error before `netmask'
   pppd.h:69: warning: data definition has no type or storage class
   pppd.h:114: parse error before `GetMask'
   pppd.h:114: warning: parameter names (without types) in function declaration
   pppd.h:114: warning: data definition has no type or storage class
   In file included from main.c:44:
   magic.h:23: parse error before `magic'
   magic.h:23: warning: data definition has no type or storage class
   In file included from main.c:46:
   lcp.h:58: parse error before `u_int32_t'
   lcp.h:58: warning: no semicolon at end of struct or union
   lcp.h:59: warning: data definition has no type or storage class
   lcp.h:61: parse error before `lqr_period'

I had the same trouble, and fixed it with this patch.  Note that the
patch should be applied to the installed version of this file, which
is "/usr/include/linux/ppp_defs.h".

*** xfer/ppp-2.2.0e/linux/ppp_defs.h.~1~        Wed Dec 27 22:12:15 1995
--- xfer/ppp-2.2.0e/linux/ppp_defs.h    Wed Jan  3 23:25:16 1996
***************
*** 90,96 ****
  #endif
  #endif
  #else
! #include <sys/types.h>   /* This defines u_int32_t */
  #endif

  /*
--- 90,96 ----
  #endif
  #endif
  #else
! #include <sys/bitypes.h>   /* This defines u_int32_t */
  #endif

  /*

 
 
 

Compiling problem with ppp 2.2.0e

Post by Al Longye » Fri, 05 Jan 1996 04:00:00



>I tried to install ppp 2.2.0e with kernel 1.3.52. I ran "make kernel" as
>was told in the README.linux, and then tried to compile the kernel as
>told. I won't put every error message here but here's a snatch from the end:
>ppp.c: In function `ppp_alloc':
>ppp.c:3323: dereferencing pointer to incomplete type
>ppp.c:3339: dereferencing pointer to incomplete type
>ppp.c:3341: dereferencing pointer to incomplete type
>ppp.c:3342: dereferencing pointer to incomplete type
>ppp.c:3343: dereferencing pointer to incomplete type
>ppp.c:3315: warning: `ppp' might be used uninitialized in this function
>make[2]: *** [ppp.o] Error 1
>There was many pages of this same kind of junk. Also the pppd compilation
>bombed:
>cc -g   -D_linux_=1 -DHAVE_PATHS_H   -c main.c -o main.o
>In file included from /usr/include/net/ppp_defs.h:1,
>                 from pppd.h:31,
>                 from main.c:43:
>/usr/include/linux/ppp_defs.h:99: parse error before `ext_accm'
>/usr/include/linux/ppp_defs.h:99: warning: data definition has no type or
>storag
>e class
>In file included from main.c:43:
>pppd.h:69: parse error before `netmask'
>pppd.h:69: warning: data definition has no type or storage class
>pppd.h:114: parse error before `GetMask'
>pppd.h:114: warning: parameter names (without types) in function declaration
>pppd.h:114: warning: data definition has no type or storage class
>In file included from main.c:44:
>magic.h:23: parse error before `magic'
>magic.h:23: warning: data definition has no type or storage class
>In file included from main.c:46:
>lcp.h:58: parse error before `u_int32_t'
>lcp.h:58: warning: no semicolon at end of struct or union
>lcp.h:59: warning: data definition has no type or storage class
>lcp.h:61: parse error before `lqr_period'
>etc.... gives a lot of similiar parse errors...
>So, anyone have a clue what's going on here? I'll supply additional
>information if needed... Or should I just get some earlier ppp version?

When I built the 2.2.0e version of pppd, I used the 1.3.50 kernel and the
5.2.18 version of libc's include files. Those were the current versions
of the tools at that time.

My entire system is ELF. I could not get the 1.2.13 kernel to build at all
since I did not apply the ELF patches to the thing.

I received numerious errors in building the ppp code because the define
'u_int32_t' was redeclared in the headers.

The only solution was to include the proper header file rather than defining
the value myself. I put code into the ppp_defs.h file which says

#if 0   /* << This was added */
#ifndef __BIT_TYPES_DEFINED__
#ifdef  UINT32_T
typedef UINT32_T        u_int32_t;
#else
typedef unsigned int    u_int32_t;
#endif
#endif
#else   /* << This was added */
#include <sys/types.h>   /* This defines u_int32_t */
#endif  /* << This was added */

It seems that Linus added the u_int32_t to the linux/types.h file in that
version of the kernel and this causes problems.

I do not know of a way to detect whether or not u_int32_t is defined or not
since the whole concept of types seems to be a very fluid thing.

Solution for you:

Go to the /usr/include/linux/ppp_defs.h file and change the "#if 0" to
be "#if 1".

Or, use the 1.3.53 kernel. :)

--

The above opinions do not necessarily represent those of the Management
of System Integrators nor any of its subsidiaries.

 
 
 

1. compiling ppp.2.2.0e and 13.12 kernel problem

I compilied ppp2.2.0.e using the following:

               configure

                make kernel
                make install
We get:
cd chat make BinDer /usr/sbin
Man Dir = /usr/man
make [1]:Entering directory /usr/ppp-2.2.0e/chat
make[1]:no rule to target install stop
make[1]:Leaving directory /usr/ppp-2.2.0e/chat
make***[install-progr]Error 2

We are using the ELF version

thanks in advance...................................

2. Help: File for Multiple Users as Once

3. PPP 2.2.0e Compiling Trouble

4. Partitioning problem

5. HELP: Compiling PPP 2.2.0e on 1.3.84 (Part 2)

6. Please help me for XF86Config

7. HELP: Compiling PPP 2.2.0e on 1.2.84 w/ gcc 2.7.2

8. Unix DNS resolver dnt work on alias

9. Can't compile kernel with ppp 2.2.0e

10. Parse errors compiling PPP 2.2.0e

11. PPP 2.2.0e wont compile, Want my TRS-80 back

12. pppd 2.2.0e on 1.2.11 compile problems