On Wed, 19 Mar 2003, Aaron Konstam wrote:

> On Tue, Mar 18, 2003 at 11:31:27PM -0800, Pat wrote:
> > Hello,
> > I have seen some messages of this type before but i
> > have yet to find a solution.. here's hoping i get one!
> > 
> > I am having two problems with ppp in Red Hat 7.1
> > First, 
> > when i establish a ppp connection, my messages log
> > shows the error 
> > modprobe: can't locate module ppp-compress-21
> > I read that i need to alias bsd_comp for that name,
> > however my kernel 2.4.18-18.7.x doesn't have this
> > module installed. What can i do?
> To remove that message put the following in /etc/modules.conf
> alias ppp-compress-21 off
> 
    Apparently RedHat once included bsd_comp in its standard 
configuration, but now does not.  So you have to compile it yourself.
I tried something like what I'm about to describe, but with RedHat7.2
and a more recent kernel.
    The source is in kernel-source-2.4.18-18.7.x.i386.rpm, though you may
want to instead get a more recent kernel-source and make yourself a
whole new kernel.  I'll assume you don't want to go quite so far, and
just want bsd_com.  After you've installed kernel-source, go to the
/usr/src/linux-2.4 directory, do

make mrproper
cp config/kernel-2.4.18-i686.config .config

Then edit .config so that the line "# CONFIG_PPP_BSDCOMP is not set"
becomes "CONFIG_PPP_BSDCOMP=m", do

make oldconfig
make dep

The "make dep" command will compile lots of stuff which you don't really 
care about, but this at least should work.  I think it really only is 
needed to get the .h files needed for bsd_comp, and there's probably an
easier way to do this.  Maybe it would now work to do "make modules",
but to just make the module you want, do "cd drivers/net", then do the
one line command (avoiding this command is one reason you might want to
make a whole new kernel):

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-18.7.x/include -Wall \
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common \
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 \
-DMODULE -DMODVERSIONS -include \
/usr/src/linux-2.4.18-26.7.x/include/linux/modversions.h -nostdinc -I \
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include \ 
-c -o bsd_comp.o bsd_comp.c

This should produce a file bsd_comp.o which you can copy to
/lib/modules/2.4.18.7x/kernel/drivers/net.  If you want to try using 
this module without rebooting, you probably should do "depmod -a"
before making sure modules.conf is what you want and then establishing
a ppp connection.

-- 
Steven Yellin



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to