Problem in compiling busybox 1.14.2
Baruch Siach
baruch at tkos.co.il
Mon Aug 3 18:07:05 UTC 2009
Hi Zvi,
On Mon, Aug 03, 2009 at 04:31:00PM +0200, Vered Zvi wrote:
> I built using Dan Kegel's crossbuild tool. The toolchain is
> gcc-4.1.0-glibc-2.3.6 for i686 targets.
>
> Using this toolchain I built busybox 1.14.2 with:
> make ARCH=x86 defconfig
> make ARCH=x86 CROSS_COMPILE=i686-unknown-linux-gnu
>
> and got the following 2 errors:
>
> miscutils/ionice.c: In function 'ioprio_set':
> miscutils/ionice.c:16: error: 'SYS_ioprio_set' undeclared (first use in
> this function)
> miscutils/ionice.c:16: error: (Each undeclared identifier is reported
> only once
> miscutils/ionice.c:16: error: for each function it appears in.)
> miscutils/ionice.c: In function 'ioprio_get':
> miscutils/ionice.c:21: error: 'SYS_ioprio_get' undeclared (first use in
> this function)
> make[1]: *** [miscutils/ionice.o] Error 1
> make: *** [miscutils] Error 2
The ioprio_set system call is only available since kernel version 2.6.13. The
toolchains from Dan Kegel's tool use older kernel headers (2.6.12). So, your
options are:
1. Disable the ionice Busybox applet.
2. Use a newer toolcahin (from CodeSourcery, for example)
3. Copy a newer kernel header file into your current toolchain
> util-linux/acpid.c: In function 'acpid_main':
> util-linux/acpid.c:145: error: 'EV_SW' undeclared (first use in this
> function)
> util-linux/acpid.c:145: error: (Each undeclared identifier is reported
> only once
> util-linux/acpid.c:145: error: for each function it appears in.)
> util-linux/acpid.c:146: error: 'SW_LID' undeclared (first use in this
> function)
> make[1]: *** [util-linux/acpid.o] Error 1
> make: *** [util-linux] Error 2
The same here. EV_SW first appeared in kernel version 2.6.13, and SW_LID in
version 2.6.17.
> I had to lanuch xconfig to unselect ionice and acpid utilities in order
> to finish the build.
> Is this a BUG ?
>
> With the default gcc installed in my RHEL (for x64) the compilation
> ended successfully.
> I can't use this gcc. My target is 32 bits (Pentium-M)
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
More information about the busybox
mailing list