Skip to contentSkip to conversation

PPTP and mppe module

DISCUSSION Josh Huber 2 participants 2 messages Jun 22, 2000

lore
Share & tools
lore

Josh Huber

author
#0 lore raw

In an effort to set up the pptp client on my powerbook, I downloaded the PPP source, patched it with the required patch, installed the proper rc4* files into the ppp source tree, and installed the new ppp files into the kernel. the kernel I'm using is the latest BK tree in the 2.2 series.

Now, everything seemed to be working as planned, but when I went to build and install the ppp drivers, I ran into a couple of problems.

First, the 2.3.10 ppp header for include/linux/if_ppp.h doesn't have defines for PPP_MAGIC and PPP_VERSION which is used throughout the ppp.c driver. I added the proper defines and the build continued.

The only issue I had left was the ppp_mppe.o module had unresolved symbols...a couple of strange ones too:

# insmod ./ppp_mppe.o
./ppp_mppe.o: unresolved symbol __floatsidf
./ppp_mppe.o: unresolved symbol __adddf3

Which both appear to be in libgcc:

$ nm /usr/lib/gcc-lib/powerpc-linux/2.95.2/libgcc.a|grep floatsidf
0000128c T __floatsidf
$ nm /usr/lib/gcc-lib/powerpc-linux/2.95.2/libgcc.a|grep adddf3
0000069c T __adddf3

So, I tried linking libgcc with ld like so:

$ ld -r /usr/lib/gcc-lib/powerpc-linux/2.95.2/libgcc.a ppp_mppe.o -o tmp.o

This seems to allow the module to load, but I won't be able to test it until I get home.

Anyone know what's going on here? I looked at the code, and couldn't find any reference to floating point math there...

Anyone tried getting a VPN client working on PPC?

Josh

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw

Josh Huber wrote:
[]

Quoted 1 line

Anyone tried getting a VPN client working on PPC?

Sure. France Telecom ADSL runs with pptp, and I have been using this for quite a while. I compiled a Mandrake SRPM, pptp-adsl-fr-1.0.2-2mdk, without any problem. There wasn't any kernel patching involved. My ppp RPM is version 2.3.11, also compiled from a SRPM without problem. They run with 2.2.17pre kernels as well as with 2.4.0-test1 kernels.

We discussed the include/linux/if_ppp.h problems already 2 weeks ago on the list (maybe on linuxppc-user?). The one I get from both linux-pmac-stable and from bitkeeper linux_2_2 via rsync has
#define PPP_VERSION "2.3.7"
#define PPP_MAGIC 0x5002 /* Magic value for the ppp structure */
inside. It seems that others are able to get different versions from the same rsync server. Mystery.

--
Martin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/