Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* error comiling linux-2.4.0-test10
@ 2000-11-03 17:43 Toshinao Ishii
  2000-11-04  5:00 ` Pierre Asselin
  0 siblings, 1 reply; 2+ messages in thread
From: Toshinao Ishii @ 2000-11-03 17:43 UTC (permalink / raw)


Hi.

I tried to compile linux-2.4.0-test10 on a 164SX machine
running Debian-2.2 and get the following error.

make[2]: Entering directory `/usr/src/linux-2.4.0-test10/fs'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8
-mcpu=ev5 -Wa,-mev6    -c -o binfmt_elf.o binfmt_elf.c
binfmt_elf.c: In function `create_elf_tables':
binfmt_elf.c:167: `CLOCKS_PER_SEC' undeclared (first use in this
function)
binfmt_elf.c:167: (Each undeclared identifier is reported only once
binfmt_elf.c:167: for each function it appears in.)
make[2]: *** [binfmt_elf.o] Error 1

I compared binfmt_elf.c with one in version 2.4.0-test9.
It is changed from test9. CLOCKS_PER_SEC is newly appeared,
I guess. Can I just copy a line of CLOCKS_PER_SEC definition
from /usr/include/bits/time.h and get it work correctly ?

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Toshinao Ishii  mailto: jsbach@mac.com




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: error comiling linux-2.4.0-test10
  2000-11-03 17:43 error comiling linux-2.4.0-test10 Toshinao Ishii
@ 2000-11-04  5:00 ` Pierre Asselin
  0 siblings, 0 replies; 2+ messages in thread
From: Pierre Asselin @ 2000-11-04  5:00 UTC (permalink / raw)


Toshinao Ishii <jsbach@mac.com> wrote:
 
> make[2]: Entering directory `/usr/src/linux-2.4.0-test10/fs'
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8
> -mcpu=ev5 -Wa,-mev6    -c -o binfmt_elf.o binfmt_elf.c
> binfmt_elf.c: In function `create_elf_tables':
> binfmt_elf.c:167: `CLOCKS_PER_SEC' undeclared (first use in this
> function)
> binfmt_elf.c:167: (Each undeclared identifier is reported only once
> binfmt_elf.c:167: for each function it appears in.)
> make[2]: *** [binfmt_elf.o] Error 1

Luca Giuzzi posted a patch on the linux-kernel list:

   --- /usr/src/linux/include/asm-alpha/param.h.orig Wed Nov 1 12:31:56
   2000
   +++ /usr/src/linux/include/asm-alpha/param.h Wed Nov 1 12:33:22 2000
   @@ -27,4 +27,8 @@

    #define MAXHOSTNAMELEN 64 /* max length of hostname */

   +#ifdef __KERNEL__
   +# define CLOCKS_PER_SEC HZ
   +#endif
   +
    #endif /* _ASM_ALPHA_PARAM_H */


-- 
Pierre Asselin
Westminster, Colorado



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-04  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-03 17:43 error comiling linux-2.4.0-test10 Toshinao Ishii
2000-11-04  5:00 ` Pierre Asselin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox