[pptp-server] insmod won't work on bsd_comp.o while adding MSCHAPV2

Mark Langlite marklanglite at hotmail.com
Sun Sep 30 17:13:37 CDT 2001


I am trying to add the MSCHAPV2 patch to pptpd (via ppp-2.3.11) as per
poptop.lineo.com. Things work pretty much alright until I do a "modprobe
ppp", (or else I do an "insmode bsd_comp.o"), and get the following
messages:

/lib/modules/2.2.19/net/bsd_comp.o: couldn't find the kernel version the
module was compiled for
/lib/modules/2.2.19/net/bsd_comp.o: insmod
/lib/modules/2.2.19/net/bsd_comp.o failed
/lib/modules/2.2.19/net/bsd_comp.o: insmod ppp failed

I would like it if someone can explain to me how to resolve this problem, so
here are the steps I took leading up to the problem:

1) I was running successfully on Redhat 6.2, kernel 2.2.14-5.0 ("out of the
box"). I then upgraded the kernel to 2.2.19 and everything is running fine. 
I did all steps listed below running from 2.2.19 (I don't even use 
2.2.14-5.0 any more).

2) I have a Pentium II/233 with 128 meg RAM

3) I un-tar and install pptpd-1.0.1.tar.gz

4) I get pptpd working successfully, (but without MSCHAPV2). I can connect
remotely.

5) I then follow the "Redhat PoPToP HOWTO" to apply the MSCHAPV2 patch

6) First I un-tar ppp-2.3.11.tar.gz and linux-2.2.19.tar.gz (for kernel
2.2.19)

7) I then apply the MSCHAPV2 patches, but find that one of these patches
referenced in the HOWTO never works, (ie: the patch
ppp-2.3.11-openssl-0.9.5-mppe.patch.gz always reports loads of bad hunks). I
check out poptop.lineo.com and find a different MSCHAPV2 patch that actually
patches successfully, called ppp-2.3.11-openssl-norc4-mppe.patch.gz. I use
it instead and there are no bad hunks - the patch appears to run good. I
then apply the second patch called ppp_mppe_compressed_data_fix.diff
successfully.

8) To avoid the "PPP_MAGIC" errors during the kernel build I edit the
if_ppp.h file in /usr/src/linux/include/linux to include two new lines as
follows (this suggestion is from
http://www.vibrationresearch.com/pptpd/pptpd-FAQ.txt):

#define PPP_VERSION "2.3.11"
#define PPP_MAGIC 0x5002  /* Magic value for the ppp structure */

9) I do a "make menuconfig" to set up kernel 2.2.19 options.

10) I do a "make dep" and "make clean"

11) In the "ppp-2.3.11" folder I do a "./configure", "make", "make kernel",
and "make install".

12) To avoid the error "dereferencing pointer to incomplete type" while
building the kernel I have to copy rc4*.* from /openssl-0.9.5/crypto/rc4
into /usr/src/linux/drivers/net.

13) I build the kernel with "make bzImage". It seems to go just fine.

14) In "/usr/src/linux" I do a "make modules SUBDIRS=drivers/net".

15) In "/usr/src/linux" I do a "make mdoules_install", and "depmod -a
2.2.19", as well as "depmod -a".

16) I copy ppp.o, slhc.o, bsd_comp.o, ppp_deflate.o, and ppp_mppe.o from
/usr/src/linux/drivers/net into /lib/modules/2.2.19/net.

17) I edit /etc/conf.modules so that it has at least the following info:

alias char-major-108 off
alias ppp-compress-18 ppp_mppe
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate

18) I do an "lsmod" and it reports only two modules, 3C509 and eepro100, (my
two network cards).

19) I do a "modprobe  ppp" and get the errors with bsd_comp.o that I listed
at the top of this post.


Does anyone have an idea what the problem is with bsd_comp.o? By the way I
had already built kernel 2.2.19 successfully prior to attempting the
ppp-2.3.11 and MSCHAPV2 installations. In fact I am running on kernel 2.2.19
all the time, (I rebuild the kernel only to include MSCHAPV2 functionality
with pptpd). Also, as a test of the kernel versions, I try "insmod" on the
bsd_comp.o found under the kernel 2.2.14-5.0 folder on my linux box and it
definitely says it is the wrong kernel version for that file (this is good,
because bsd_comp wasn't built under the 2.2.14-5.0 kernel. It was built
under the 2.2.19 kernel).



Thanks for help in advance,
Mark Langlite




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




More information about the pptp-server mailing list