* 2.4 test10 bug
@ 2000-11-09 4:44 Eric Reischer
2000-11-11 22:36 ` [PATCH] " Bartlomiej Zolnierkiewicz
0 siblings, 1 reply; 2+ messages in thread
From: Eric Reischer @ 2000-11-09 4:44 UTC (permalink / raw)
To: linux-kernel
When cross compiling a PowerPC kernel on an i386 machine, got the following
error:
binfmt_elf.c: In function 'create_elf_tables':
binfmt_elf.c:166: 'CLOCKS_PER_SEC' undeclared (first use in this function)
binfmt_elf.c:166: (Each undeclared identifier is reported only once
binfmt_elf.c:166: for each function it appears in.)
make[2]: *** [binfmt_elf.o] Error 1
for folder /usr/src/cross/powerpc-unknown-linux-gnu/src/linux/fs
Copied the binfmt_elf.c code from the test9 tree and recompiled. Compile
then proceeded without errors. If whoever is in charge of this section
would like a copy of the .config file, I would be more than willing to
attach it. On a side note the kernel was being compiled for a POWER3
processor, but it doesn't appear as though that would be a factor here.
----------
Eric Reischer "You can't depend on your eyes
emr@engr.de.psu.edu if your imagination is out of focus."
emr@ccil.org -- Mark Twain
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] Re: 2.4 test10 bug
2000-11-09 4:44 2.4 test10 bug Eric Reischer
@ 2000-11-11 22:36 ` Bartlomiej Zolnierkiewicz
0 siblings, 0 replies; 2+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2000-11-11 22:36 UTC (permalink / raw)
To: Eric Reischer; +Cc: linux-kernel
On Wed, 8 Nov 2000, Eric Reischer wrote:
> When cross compiling a PowerPC kernel on an i386 machine, got the following
> error:
>
> binfmt_elf.c: In function 'create_elf_tables':
> binfmt_elf.c:166: 'CLOCKS_PER_SEC' undeclared (first use in this function)
> binfmt_elf.c:166: (Each undeclared identifier is reported only once
> binfmt_elf.c:166: for each function it appears in.)
> make[2]: *** [binfmt_elf.o] Error 1
This quick fix should help you:
--- linux-240t10/include/asm-ppc/param.h Sat Nov 25 18:49:06 1995
+++ linux/include/asm-ppc/param.h Sat Nov 11 17:18:50 2000
@@ -17,4 +17,8 @@
#define MAXHOSTNAMELEN 64 /* max length of hostname */
+#ifdef __KERNEL__
+# define CLOCKS_PER_SEC HZ /* frequency at which times() counts */
+#endif
+
#endif
--
Bartlomiej Zolnierkiewicz
<bkz@linux-ide.org>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-11-11 22:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-09 4:44 2.4 test10 bug Eric Reischer
2000-11-11 22:36 ` [PATCH] " Bartlomiej Zolnierkiewicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®