Re: [Linux-decnet-user] Applying Kernel patch
Brought to you by:
chrissie_c,
ph3-der-loewe
|
From: Patrick C. <pa...@pa...> - 2000-08-11 08:00:10
|
On Thu, Aug 10, 2000 at 08:54:21PM -0400, Akihiko Tanaka wrote:
> I downloaded the latest patch for DECNET and tried to install on my Red Hat 6.2 Kernel 2.2.14-50 i586 machine for the first time. I follwed the Kernel Patch Installation Guide on the web. When I did
>
> patch -p1 <decnet-2_2_16.diff
>
> I got an error and created proc_fs.h.rej file. It seems that patch tried to add PROC_NET_PNP and PROC_NET_DECNET to proc_fs.h file.
>
> I went ahead to execute make zImage. But because PROC_NET_DECNET is not defined in proc_fs.h, I had a compile error from af_decnet.c.
>
> How can I correct a patch error? Do I need to start from patch and the follow the instruction again? 'Make config' asked a lot of questions. It looks like defining a lot of Environment Variables. Can I skip this and use the previously defined values?
That's normal for applying the 2.2.16 patch to a 2.2.14 kernel. You should
either upgrade to 2.2.16 or edit the include/proc_fs.h file as follows:
Look for PROC_NET_LAST and add the following line just before it:
PROC_NET_DECNET,
Don't forget the trailing comma or it won't compile.
<whinge mode>
Considering 2.2.x is supposed to be a stable kernel I find it a little galling
that new /proc/net entries seem to turn up in almost every new release :-(
</whinge mode>
Just to confirm that, the file should look a little like this in that area:
PROC_NET_BRIDGE,
PROC_NET_DECNET,
PROC_NET_LAST
};
enum scsi_directory_inos {
PROC_SCSI_SCSI = 256,
PROC_SCSI_ADVANSYS,
Patrick
|