busybox compile error: gcc3.4.1 for busybox1.4.0

Denis Vlasenko vda.linux at googlemail.com
Wed Mar 7 22:20:02 UTC 2007


On Wednesday 07 March 2007 11:00, huangxiangyu at bj.xinwei.com.cn wrote:
> 
> First question:
> I utilitied the default configuration for busybox1.4.0,and errors showed:
> 
>   SPLIT   include/autoconf.h -> include/config/*
>   GEN     include/bbconfigopts.h
>   CC      miscutils/bbconfig.o
>   AR      miscutils/lib.a
>   CC      networking/ip.o
> In file included from networking/libiproute/libnetlink.h:5,
>                  from networking/libiproute/utils.h:7,
>                  from networking/ip.c:17:
> /usr/include/linux/netlink.h:22: error: syntax error before "__u32"
> /usr/include/linux/netlink.h:28: error: syntax error before "__u32"

Apparently you have some (probably slight) problem with kernel headers
(missing #define or typedef). We need to see your 
/usr/include/linux/netlink.h file (at least).

> Another question: if the high version busybox(saying 1.3.2) didn't support
> static linking? the errors like:
>   CC      applets/applets.o
> applets/applets.c:22:2: #warning Static linking against glibc produces
> buggy executables
> applets/applets.c:23:2: #warning (glibc does not cope well with ld
> --gc-sections).
> applets/applets.c:24:2: #warning See
> sources.redhat.com/bugzilla/show_bug.cgi?id=3400
> applets/applets.c:25:2: #warning Note that glibc is utterly unsuitable for
> static linking anyway.

Ain't the message explaining itself already?
(and newer versions of busybox emit an even more detailed one - check those)
--
vda



More information about the busybox mailing list