[pptp-server] PoPToP - MSCHAPv2/MPPE compile fails

Andy Worthington christopherandrew at ou.edu
Mon Oct 23 16:46:48 CDT 2000


It is in the Poptop FAQ:
7.4 Errors while building pppd, pptpd, and kernel modules

7.4.1. Get PPP_VERSION or PPP_MAGIC undefined error message while compiling
ppp kernel modules

Solution: add the following lines to /usr/src/linux/include/linux/if_ppp.h
#define PPP_VERSION "2.3.11"
#define PPP_MAGIC   0x5002  /* Magic value for the ppp structure */
----- Original Message -----
From: "Jamin Collins" <JaminC at adapt-tele.com>
To: <pptp-server at lists.schulte.org>
Sent: Monday, October 23, 2000 4:48 PM
Subject: [pptp-server] PoPToP - MSCHAPv2/MPPE compile fails


> I apologize for this post ahead of time, as I'm sure this has been asked
and
> answered several times before or I'm doing something wrong.  However, I've
> skimmed the archives (couldn't find a search interface) and didn't find
> anything that appeared to be related.
>
> I've got PoPToP installed and configured on my Linux gateway.  I can
connect
> to it without a problem, but I also have absolutely no encryption working
on
> it right now.  I'm attempting to install the MSCHAPv2/MPPE patches as
> outlined in the RedHat-PoPToP HOWTO.  I'm using the 2.2.16 kernel sources
> from RedHat's RPMs, with ppp-2.3.10, and SSLeay-0.9.0b.  Everything is
fine
> right up until I try to compile the modules.  When I do, I get the
following
> list of errors:
>
> [root at AdaptGateway linux]# make modules SUBDIRS=drivers/net
> make -C  drivers/net CFLAGS="-Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer
> -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops=2
> -malign-ju
> mps=2 -malign-functions=2 -DCPU=586 -DMODULE -DMODVERSIONS -include
> /usr/src/ada
> pt-1-2.2.16/include/linux/modversions.h" MAKING_MODULES=1 modules
> make[1]: Entering directory `/usr/src/adapt-1-2.2.16/drivers/net'
>
gcc -D__KERNEL__ -I/usr/src/adapt-1-2.2.16/include -Wall -Wstrict-prototypes
> -O2
>  -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m48
6
> -mal
> ign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -DMODULE
> -DMODVERSIONS
>  -include /usr/src/adapt-1-2.2.16/include/linux/modversions.h
> -DEXPORT_SYMTAB
> -c ppp.c
> ppp.c:98: warning: static declaration for
> `ppp_register_compressor_R9682e733' fo
> llows non-static
> ppp.c:99: warning: static declaration for
> `ppp_unregister_compressor_Ra1b928df'
> follows non-static
> ppp.c:173: `PPP_VERSION' undeclared here (not in a function)
> ppp.c: In function `ppp_tty_open':
> ppp.c:409: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c:409: (Each undeclared identifier is reported only once
> ppp.c:409: for each function it appears in.)
> ppp.c: In function `ppp_tty_close':
> ppp.c:454: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_tty_read':
> ppp.c:502: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_tty_write':
> ppp.c:591: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_tty_ioctl':
> ppp.c:650: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_tty_poll':
> ppp.c:808: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_tty_wakeup':
> ppp.c:836: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_sync_send':
> ppp.c:860: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_tty_sync_push':
> ppp.c:913: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_async_send':
> ppp.c:969: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_tty_push':
> ppp.c:995: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_async_encode':
> ppp.c:1064: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_tty_receive':
> ppp.c:1198: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_dev_close':
> ppp.c:1551: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_dev_ioctl':
> ppp.c:1585: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_ioctl':
> ppp.c:1633: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_receive_error':
> ppp.c:2226: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `rcv_proto_ip':
> ppp.c:2257: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `rcv_proto_ipv6':
> ppp.c:2270: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `rcv_proto_ipx':
> ppp.c:2283: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `rcv_proto_at':
> ppp.c:2296: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `rcv_proto_vjc_comp':
> ppp.c:2311: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `rcv_proto_vjc_uncomp':
> ppp.c:2336: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `rcv_proto_ccp':
> ppp.c:2351: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `rcv_proto_unknown':
> ppp.c:2362: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_send_frame':
> ppp.c:2409: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_output_wakeup':
> ppp.c:2583: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_send_ctrl':
> ppp.c:2599: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_alloc':
> ppp.c:2838: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `ppp_release':
> ppp.c:2924: `PPP_MAGIC' undeclared (first use in this function)
> ppp.c: In function `cleanup_module':
> ppp.c:3128: `PPP_MAGIC' undeclared (first use in this function)
> make[1]: *** [ppp.o] Error 1
> make[1]: Leaving directory `/usr/src/adapt-1-2.2.16/drivers/net'
> make: *** [_mod_drivers/net] Error 2
>
> Any ideas?
>
> Jamin W. Collins
> _______________________________________________
> pptp-server maillist  -  pptp-server at lists.schulte.org
> http://lists.schulte.org/mailman/listinfo/pptp-server
> List services provided by www.schulteconsulting.com!




More information about the pptp-server mailing list