busybox compile error: gcc3.4.1 for busybox1.4.0

huangxiangyu at bj.xinwei.com.cn huangxiangyu at bj.xinwei.com.cn
Wed Mar 7 02:00:16 PST 2007



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"
/usr/include/linux/netlink.h:30: error: syntax error before "nlmsg_flags"
/usr/include/linux/netlink.h:31: error: syntax error before "nlmsg_seq"
/usr/include/linux/netlink.h:32: error: syntax error before "nlmsg_pid"
/usr/include/linux/netlink.h:82: error: field `msg' has incomplete type
In file included from networking/libiproute/libnetlink.h:6,
                 from networking/libiproute/utils.h:7,
                 from networking/ip.c:17:
/usr/include/linux/rtnetlink.h:247: error: syntax error before "__u32"
/usr/include/linux/rtnetlink.h:249: error: syntax error before
"rta_expires"
/usr/include/linux/rtnetlink.h:250: error: syntax error before "rta_error"
/usr/include/linux/rtnetlink.h:251: error: syntax error before "rta_used"
/usr/include/linux/rtnetlink.h:254: error: syntax error before "rta_id"
/usr/include/linux/rtnetlink.h:255: error: syntax error before "rta_ts"
/usr/include/linux/rtnetlink.h:256: error: syntax error before "rta_tsage"
/usr/include/linux/rtnetlink.h:325: error: syntax error before "__s32"
/usr/include/linux/rtnetlink.h:351: error: syntax error before "__u16"
/usr/include/linux/rtnetlink.h:353: error: syntax error before "ndm_type"
/usr/include/linux/rtnetlink.h:395: error: syntax error before "__u32"
/usr/include/linux/rtnetlink.h:397: error: syntax error before
"ndm_updated"
/usr/include/linux/rtnetlink.h:398: error: syntax error before "ndm_refcnt"
/usr/include/linux/rtnetlink.h:494: error: syntax error before "__u32"
/usr/include/linux/rtnetlink.h:496: error: syntax error before "tcm_info"
In file included from networking/libiproute/utils.h:7,
                 from networking/ip.c:17:
networking/libiproute/libnetlink.h:11: error: field `local' has incomplete
type
networking/libiproute/libnetlink.h:12: error: field `peer' has incomplete
type

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.
make[1]: *** [applets/applets.o] error1
make: *** [applets] error2

Thanks!



More information about the busybox mailing list