[pptp-server] Compiling PPP with MSCHAPv2/MPPE.

Paul.Clark at scapatech.com Paul.Clark at scapatech.com
Thu Nov 1 10:27:16 CST 2001


Now when I try to compile I the modules it fails at slhc.c with the 
following output.

Anyone any ideas?



[root at fw 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 
-m386 -DCPU=386 -DMODULE -DMODVERSIONS -include 
/usr/src/linux/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.2.16/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce 
-m386 -DCPU=386 -DMODULE -DMODVERSIONS -include 
/usr/src/linux/include/linux/modversions.h   -DEXPORT_SYMTAB -c slhc.c
In file included from slhc.c:55:
/usr/src/linux/include/linux/module.h:145: `get_module_symbol_R_ver_str' 
declared as function returning a function
/usr/src/linux/include/linux/module.h:145: warning: parameter names 
(without types) in function declaration
In file included from /usr/src/linux/include/linux/sched.h:20,
                 from slhc.c:62:
/usr/src/linux/include/linux/smp.h:77:49: warning: "smp_num_cpus" 
redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:28:1: warning: this 
is the location of the previous definition
/usr/src/linux/include/linux/smp.h:83:26: warning: "smp_call_function" 
redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:118:1: warning: this 
is the location of the previous definition
In file included from /usr/src/linux/include/linux/sched.h:74,
                 from slhc.c:62:
/usr/src/linux/include/asm/processor.h:96:18: warning: "cpu_data" 
redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:6:1: warning: this 
is the location of the previous definition
In file included from /usr/src/linux/include/linux/interrupt.h:51,
                 from /usr/src/linux/include/linux/netdevice.h:334,
                 from slhc.c:70:
/usr/src/linux/include/asm/hardirq.h:23:24: warning: "synchronize_irq" 
redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:138:1: warning: this 
is the location of the previous definition
In file included from /usr/src/linux/include/linux/interrupt.h:52,
                 from /usr/src/linux/include/linux/netdevice.h:334,
                 from slhc.c:70:
/usr/src/linux/include/asm/softirq.h:75:23: warning: "synchronize_bh" 
redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:142:1: warning: this 
is the location of the previous definition
{standard input}: Assembler messages:
{standard input}:9: Warning: Ignoring changed section attributes for 
.modinfo
make[1]: *** [slhc.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.2.16/drivers/net'
make: *** [_mod_drivers/net] Error 2

Thanks

Paul


> -----Original Message-----
> From: shost [mailto:shost at intellimec.com]
> Sent: 01 November 2001 15:35
> To: Paul Clark; pptp-server
> Subject: Re: [pptp-server] Compiling PPP with MSCHAPv2/MPPE.
> 
> 
> From: http://mirror.binarix.com/ppp-mppe/README
> 
> Edit ppp.c. Find the below and make the change at line approx 2563:
> 
> Change:
>  kill_fasync (ppp->tty->fasync, SIGIO);
> 
> to:
> kill_fasync (ppp->tty->fasync, SIGIO, POLL_IN);
> 
> 
> Patch is below:
> 
> 
> RedHat update 14/10/2000
> ------------------------
> A number of people have reported problems with RedHat 
> supplied kernels in
> RedHat 6.2 and 7.0. Harv Frost pointed out a patch that fixes 
> a compilation
> problem:
> 
> ppp.c: In function `rcv_proto_unknown':
> ppp.c:2563: too few arguments to function `kill_fasync_R5e73d35d'
> 
> Patch:
> 
> --- ./drivers/net/ppp.c~ Wed Apr 12 19:56:45 2000
> +++ ./drivers/net/ppp.c Wed Apr 12 20:28:39 2000
> @@ -2560,7 +2560,7 @@
> 
>  wake_up_interruptible (&ppp->read_wait);
>  if (ppp->tty->fasync != NULL)
> -  kill_fasync (ppp->tty->fasync, SIGIO);
> +  kill_fasync (ppp->tty->fasync, SIGIO, POLL_IN);
> 
>  return 1;
>  }
> 
> 
> 
> ----- Original Message ----- 
> From: <Paul.Clark at scapatech.com>
> To: <pptp-server at lists.schulte.org>
> Sent: Thursday, November 01, 2001 9:15 AM
> Subject: RE: [pptp-server] Compiling PPP with MSCHAPv2/MPPE.
> 
> 
> > I as suggested have been trying to compile ppp 2.3.11 and 
> when try to 
> > compile the modules I get the following output, any ideas.
> > 
> > 
> > 
> > [root at fw 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-jumps=2 -malign-functions=2 -DCPU=686 
> > -DMODULE -DMODVERSIONS -include 
> > /usr/src/linux/include/linux/modversions.h" MAKING_MODULES=1 modules
> > make[1]: Entering directory `/usr/src/linux-2.2.16/drivers/net'
> > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall 
> -Wstrict-prototypes -O2 
> > -fomit-frame-pointer -fno-strict-aliasing -pipe 
> -fno-strength-reduce 
> > -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 
> > -DMODULE -DMODVERSIONS -include 
> > /usr/src/linux/include/linux/modversions.h   
> -DEXPORT_SYMTAB -c ppp.c
> > In file included from /usr/src/linux/include/linux/sched.h:20,
> >                  from ppp.c:54:
> > /usr/src/linux/include/linux/smp.h:77:49: warning: "smp_num_cpus" 
> > redefined
> > /usr/src/linux/include/linux/modules/i386_ksyms.ver:28:1: 
> warning: this 
> > is the location of the previous definition
> > /usr/src/linux/include/linux/smp.h:83:26: warning: 
> "smp_call_function" 
> > redefined
> > /usr/src/linux/include/linux/modules/i386_ksyms.ver:118:1: 
> warning: this 
> > is the location of the previous definition
> > In file included from /usr/src/linux/include/linux/sched.h:74,
> >                  from ppp.c:54:
> > /usr/src/linux/include/asm/processor.h:96:18: warning: "cpu_data" 
> > redefined
> > /usr/src/linux/include/linux/modules/i386_ksyms.ver:6:1: 
> warning: this 
> > is the location of the previous definition
> > In file included from /usr/src/linux/include/linux/interrupt.h:51,
> >                  from ppp.c:57:
> > /usr/src/linux/include/asm/hardirq.h:23:24: warning: 
> "synchronize_irq" 
> > redefined
> > /usr/src/linux/include/linux/modules/i386_ksyms.ver:138:1: 
> warning: this 
> > is the location of the previous definition
> > In file included from /usr/src/linux/include/linux/interrupt.h:52,
> >                  from ppp.c:57:
> > /usr/src/linux/include/asm/softirq.h:75:23: warning: 
> "synchronize_bh" 
> > redefined
> > /usr/src/linux/include/linux/modules/i386_ksyms.ver:142:1: 
> warning: this 
> > is the location of the previous definition
> > ppp.c:188: warning: static declaration for 
> > `ppp_register_compressor_R9682e733' follows non-static
> > ppp.c:189: warning: static declaration for 
> > `ppp_unregister_compressor_Ra1b928df' follows non-static
> > {standard input}: Assembler messages:
> > {standard input}:9: Warning: Ignoring changed section 
> attributes for 
> > .modinfo
> > ppp.c: In function `rcv_proto_unknown':
> > ppp.c:2563: too few arguments to function 
> > `kill_fasync_R__ver_kill_fasync'
> > make[1]: *** [ppp.o] Error 1
> > make[1]: Leaving directory `/usr/src/linux-2.2.16/drivers/net'
> > make: *** [_mod_drivers/net] Error 2
> > 
> > Thanks 
> > 
> > Paul
> > 
> > _______________________________________________
> > pptp-server maillist  -  pptp-server at lists.schulte.org
> > http://lists.schulte.org/mailman/listinfo/pptp-server
> > --- To unsubscribe, go to the url just above this line. --
> > 
> 
> _______________________________________________
> pptp-server maillist  -  pptp-server at lists.schulte.org
> http://lists.schulte.org/mailman/listinfo/pptp-server
> --- To unsubscribe, go to the url just above this line. --
> 




More information about the pptp-server mailing list