2003-05-05 04:46:15

by [email protected]

[permalink] [raw]
Subject: 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]
-------------------------------------------------------------------------


Attachments:
config (23.65 kB)
config.old (24.34 kB)
Download all attachments

2003-05-05 06:15:22

by [email protected]

[permalink] [raw]
Subject: 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]
-------------------------------------------------------------------------

> -----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.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]
> --------------------------------------------------------------
> -----------
>


2003-05-05 06:43:19

by Adrian Bunk

[permalink] [raw]
Subject: [2.5 patch] fix oprofile/init.c compilation

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.
>
> 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


The following patch should fix it:

--- linux-2.5.69-full/arch/i386/oprofile/init.c.old 2003-05-05 08:51:10.000000000 +0200
+++ linux-2.5.69-full/arch/i386/oprofile/init.c 2003-05-05 08:51:37.000000000 +0200
@@ -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

--

"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