Hello.
I have a problem building linux kernel with script mk_linux.sh. It was
an error about missing malloc.h. I've tried copying malloc.h to /usr/
include. But a similar error occured - missing elf.h. Here are the
console output:
...
...
scripts/kconfig/conf -s arch/x86/Kconfig
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
sed: 4: "/^\#define/ { s/[^_]*__ ...": bad flag in substitute command:
'}'
  HOSTCC  scripts/mod/mk_elfconfig
scripts/mod/mk_elfconfig.c:4:17: error: elf.h: No such file or
directory
scripts/mod/mk_elfconfig.c: In function ‘main’:
scripts/mod/mk_elfconfig.c:9: error: ‘EI_NIDENT’ undeclared (first use
in this function)
scripts/mod/mk_elfconfig.c:9: error: (Each undeclared identifier is
reported only once
scripts/mod/mk_elfconfig.c:9: error: for each function it appears in.)
scripts/mod/mk_elfconfig.c:19: error: ‘ELFMAG’ undeclared (first use
in this function)
scripts/mod/mk_elfconfig.c:19: error: ‘SELFMAG’ undeclared (first use
in this function)
scripts/mod/mk_elfconfig.c:23: error: ‘EI_CLASS’ undeclared (first use
in this function)
scripts/mod/mk_elfconfig.c:24: error: ‘ELFCLASS32’ undeclared (first
use in this function)
scripts/mod/mk_elfconfig.c:27: error: ‘ELFCLASS64’ undeclared (first
use in this function)
scripts/mod/mk_elfconfig.c:33: error: ‘EI_DATA’ undeclared (first use
in this function)
scripts/mod/mk_elfconfig.c:34: error: ‘ELFDATA2LSB’ undeclared (first
use in this function)
scripts/mod/mk_elfconfig.c:37: error: ‘ELFDATA2MSB’ undeclared (first
use in this function)
scripts/mod/mk_elfconfig.c:9: warning: unused variable ‘ei’
make[2]: *** [scripts/mod/mk_elfconfig] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
cp: linux-2.6.24.3/arch/x86/boot/bzImage: No such file or directory

As far as i understand the problem is with my mac (i have intel mac
with Mac OS X 10.5.7), isn't it? Is it possible to compile this kernel
on mac, maybe some configuration changes are needed or should i get
somewhere proper files? I've seen that there are ready vmlinuz file,
but i want to compile it. Thanks for help.

-- 
To post to this group, send email to atv-bootloader@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/atv-bootloader?hl=en

Reply via email to