> >I'm trying to get my PPP to work again under the new kernel - 1.3.83 - but
> >gcc doesn't like some of the source files in the pppd/ directory. For
> >both ppp-2.2.0d and ppp-2.2.0e, I get the same errors - something like
> >parsing errors in a few of the .h files there. Has anyone else had these
> >errors? Any ideas?
I ran into the same problems and spent hours on fixing it :I. As a result I
know all the relevant information by heart now so I can complete the missing
parts in Hyun-Min's reply :).
> You need to do 2 things.
> In newer kernels, the header file has been changed around
> a bit. So, you need to shange the header file that the
> PPP #includes.
> This isn't too bad, very simple thing to do:
> Change all the occurence of #include <sys/types.h>
> into #include <sys/bitypes.h>
This was easy to solve, indeed the undefined type (u_int32_t) is defined in
> Then, when you make all, and during the linking
> phase, there will be 1 unresolved symbol, it is
> defined as extern.
> The definition for this symbol is found in
> <linux/net-*** ( i forgot the exact wording.. DARN!!)>
> Darn!! I will have to look for it when I get home.
The name of the undefined symbol is MAX_ADDR_LEN which is defined as 7 in
Quote:> Well, anyways, do NOT include that file, just edit
> the ppp-main.c (or was it just main.c) so that the
> definition is in there
> #define WHATEVER 7 (as far as I remember, it was 7)
Now this is where I lost all my valuable time! Just thinking that it would
be sufficient to include linux/net-device.h I went on with my tweaking. Then
I ran into a few dozen undefined symbols on linking pppd : __memset_generic_,
__constant_and_c_memset_,... However I couldn't find at all how these symbols
came into my sys-linux.o (in the pppd-directory). Anyway, in the end I
found out that I got this problem by including net-device.h in sys-linux.h.
CAN ANYONE ENLIGHTEN ME and tell me how this simple include suddenly gives a
couple of undefined memset- and memcopy-derivates in the object module while
there is no trace of them in net-device.h ??????????? And what is the meaning
of symbols __memset_generic, __constant_and_c_memset, etc.. ????
Dept. of Computer Science WWW : http://www.cs.kuleuven.ac.be/~henk/
K.U.Leuven - Belgium