Error compiling 2.5.69
I get the following error trying to compile 2.5.69. This is the same config as 2.5.68, make with 'make oldconfig' and 'make bzlilo && make modules modules_install'.
Config and config.old attached.
Error:arch/i386/oprofile/init.c: In function `oprofile_arch_init':arch/i386/oprofile/init.c:25: `ENODEV' undeclared (first use in this function) arch/i386/oprofile/init.c:25: (Each undeclared identifier is reported only once arch/i386/oprofile/init.c:25: for each function it appears in.) arch/i386/oprofile/init.c:27: warning: control reaches end of non-void function make[1]: *** [arch/i386/oprofile/init.o] Error 1
make: *** [arch/i386/oprofile] Error 2
--
/"\ / For information and quotes, email us at
\ / ASCII RIBBON CAMPAIGN / [email protected] X AGAINST HTML MAIL / http://www.lrsehosting.com/ / \ AND POSTINGS / [email protected]
-------------------------------------------------------------------------
RE: Error compiling 2.5.69 - gcc version
I'm using:
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs gcc version 2.95.3 20010315 (release)
If anyone cares.
--
/"\ / For information and quotes, email us at
\ / ASCII RIBBON CAMPAIGN / [email protected] X AGAINST HTML MAIL / http://www.lrsehosting.com/ / \ AND POSTINGS / [email protected]
-------------------------------------------------------------------------
Quoted 37 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of [email protected]
Sent: Sunday, May 04, 2003 11:58 PM
To: Lkml (E-mail)
Subject: Error compiling 2.5.69I get the following error trying to compile 2.5.69. This is the same config as 2.5.68, make with 'make oldconfig' and 'make bzlilo && make modules
modules_install'.Config and config.old attached.
Error:
arch/i386/oprofile/init.c: In function `oprofile_arch_init':arch/i386/oprofile/init.c:25: `ENODEV' undeclared (first use in this function)arch/i386/oprofile/init.c:25: (Each undeclared identifier is reported only oncearch/i386/oprofile/init.c:25: for each function it appears in.)arch/i386/oprofile/init.c:27: warning: control reaches end of non-void function
make[1]: *** [arch/i386/oprofile/init.o] Error 1
make: *** [arch/i386/oprofile] Error 2--
/"\ / For information and quotes, email us at
\ / ASCII RIBBON CAMPAIGN / [email protected] X AGAINST HTML MAIL / http://www.lrsehosting.com/ / \ AND POSTINGS / [email protected]--------------------------------------------------------------
-----------
PATCH 1/1 fix oprofile/init.c compilation
In reply to [email protected]Quoted 4 lines · On Sun, May 04, 2003 at 11:57:50PM -0500, [email protected] wrote:
I get the following error trying to compile 2.5.69. This is the same config as 2.5.68, make with 'make oldconfig' and 'make bzlilo && make modules
modules_install'.Config and config.old attached.
Quoted 8 lines
Error:
arch/i386/oprofile/init.c: In function `oprofile_arch_init':arch/i386/oprofile/init.c:25: `ENODEV' undeclared (first use in this function)arch/i386/oprofile/init.c:25: (Each undeclared identifier is reported only oncearch/i386/oprofile/init.c:25: for each function it appears in.)arch/i386/oprofile/init.c:27: warning: control reaches end of non-void function make[1]: *** [arch/i386/oprofile/init.o] Error 1
make: *** [arch/i386/oprofile] Error 2
The following patch should fix it:
arch/i386/oprofile/init.c renamed from arch/i386/oprofile/init.c.old +1 -0
@@ -9,6 +9,7 @@#include <linux/oprofile.h> #include <linux/init.h> +#include <linux/errno.h> /* We support CPUs that have performance counters like the Pentium Pro * with the NMI mode driver.
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed