[Click] proclikefs compile...hack fix
Eddie Kohler
kohler at cs.ucla.edu
Fri Oct 21 03:52:11 EDT 2005
A HA. I think the older versions of this file did not use
KERNEL_VERSION before the #include "proclikefs.h"; and "proclikefs.h"
#includes <linux/version.h>. Added header file. Still don't know
why it compiled for me.
Eddie
On Oct 12, 2005, at 10:01 AM, Jeff Fifield wrote:
>
> Bob-
>
> I'm seeing the same problem here. I don't think your fix is a
> hack, I think it is the correct fix. <linux/version.h> must be
> included so that the macros LINUX_VERSION_CODE and KERNEL_VERSION
> are defined. The error you reported occurred because the macros
> were not defined. The real question is: how were others able to
> get this to build without the proper includes! Note that the
> previous revision of proclikefs.c did not make use of these macros.
>
> -jf
>
> Bob Keyes wrote:
>
>> I have done an ugly hack to make this compile, and modified
>> linuxmodule/proclikefs.c to include <linux/version.h> in the very
>> start.
>> This may push the problem to the background, but doesn't kill it.
>> I'll try
>> to find out what is really going on.
>> This is the contents of linux/version.h:
>> #define UTS_RELEASE "2.6.13.2"
>> #define LINUX_VERSION_CODE 132621
>> #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
>> _______________________________________________
>> click mailing list
>> click at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
More information about the click
mailing list