[ISOLATED] Re: was error in latest build, svn 15200: Enable getopt long
Robert P. J. Day
rpjday at mindspring.com
Sun May 28 21:16:21 UTC 2006
ok, here's the deal. it's that nasty
#include <asm/byteorder.h>
in hdparm.c that's causing the problem. if i just flat out delete
that line, then
$ make defconfig busybox
builds just fine until the very end:
AR cru libbb/libbb.a
LINK busybox_unstripped
/home/rpjday/bbx/busybox.new/miscutils/miscutils.a(hdparm.o): In function `process_dev':
hdparm.c:(.text+0x2b24): undefined reference to `__le16_to_cpus'
/home/rpjday/bbx/busybox.new/miscutils/miscutils.a(hdparm.o): In function `hdparm_main':
hdparm.c:(.text+0x2d11): undefined reference to `__le16_to_cpus'
collect2: ld returned 1 exit status
make[1]: *** [busybox_unstripped] Error 1
make: *** [busybox] Error 2
so, sure, losing that include means that "__le16_to_cpus" is
undefined, but we shouldn't be using that routine by including it from
that header file anyway. that header file is, as it warns at build
time, a *private kernel header*.
so what's the *proper* way to do this? and whatever it is, it
shouldn't involve including private kernel header files.
rday
More information about the busybox
mailing list