Subject: [BUG] 2.6-osdl1 compiler error.


hi all,

While trying to compile the 2.6-osdl1 with the
''performance-monitoring'' I'm getting this:

CC drivers/perfctr/init.o
drivers/perfctr/init.c:19: version.h: No such file or directory
drivers/perfctr/init.c:36: `VERSION' undeclared here (not in a
function)
drivers/perfctr/init.c:36: initializer element is not constant
drivers/perfctr/init.c:36: (near initialization for
`perfctr_info.driver_version')
drivers/perfctr/init.c:36: parse error before string constant
make[2]: ** [drivers/perfctr/init.o] Error 1
make[1]: ** [drivers/perfctr] Error 2
make: ** [drivers] Error 2


--
Luiz Fernando N. Capitulino

<[email protected]>
<http://www.telecentros.sp.gov.br>


2003-07-16 20:37:40

by Mikael Pettersson

[permalink] [raw]
Subject: Re: [BUG] 2.6-osdl1 compiler error.

On 16 Jul 2003 15:12:04 -0300, Luiz Capitulino wrote:
> While trying to compile the 2.6-osdl1 with the
>''performance-monitoring'' I'm getting this:
>
>CC drivers/perfctr/init.o
>drivers/perfctr/init.c:19: version.h: No such file or directory

The file drivers/perfctr/version.h is missing, apparently due
to an incomplete merge of the external perfctr package. This
will result in the compilation errors you quoted.

Look at the top of drivers/perfctr/RELEASE-NOTES and you'll see
which version of perfctr OSDL is using, get the corresponding
tarball from http://www.csd.uu.se/~mikpe/linux/perfctr/, and
copy its linux/drivers/perfctr/version.h into your kernel.

You should also file a bug report with the OSDL people.

/Mikael