Real bugs or am I a mentally retarded moronic idiot?

Denys Vlasenko vda.linux at googlemail.com
Wed Oct 16 12:11:16 UTC 2013


On Tuesday 15 October 2013 19:21, A B wrote:
> The error messages as returned by make -i -k >&    a:
> 
> 
> 
> miscutils/ubi_tools.c:67:26: error: mtd/ubi-user.h: No such file or directory
> miscutils/ubi_tools.c: In function ‘ubi_tools_main’:
> miscutils/ubi_tools.c:137: error: ‘UBI_DEV_NUM_AUTO’ undeclared (first use
> in this function)
> miscutils/ubi_tools.c:137: error: (Each undeclared identifier is reported
> only once
> miscutils/ubi_tools.c:137: error: for each function it appears in.)
> miscutils/ubi_tools.c:138: error:
>  ‘UBI_VOL_NUM_AUTO’ undeclared (first use
> in this function)
> miscutils/ubi_tools.c:157: error: storage size of ‘req’ isn’t known
> miscutils/ubi_tools.c:165: error: ‘UBI_IOCATT’ undeclared (first use in
> this function)
> miscutils/ubi_tools.c:157: warning: unused variable ‘req’
> miscutils/ubi_tools.c:171: error: ‘UBI_IOCDET’ undeclared (first use in
> this function)
> miscutils/ubi_tools.c:174: error: storage size of ‘req’ isn’t known
> miscutils/ubi_tools.c:181: error: ‘UBI_MAX_VOLUME_NAME’ undeclared (first
> use in this function)
> miscutils/ubi_tools.c:188: error: ‘UBI_STATIC_VOLUME’ undeclared (first
> use in this function)
> miscutils/ubi_tools.c:190: error: ‘UBI_DYNAMIC_VOLUME’ undeclared (first
> use in this function)
> miscutils/ubi_tools.c:199: error: ‘UBI_IOCMKVOL’ undeclared (first use in
> this function)
> miscutils/ubi_tools.c:174: warning: unused variable
>  ‘req’
> miscutils/ubi_tools.c:205: error: ‘UBI_IOCRMVOL’ undeclared (first use in
> this function)
> miscutils/ubi_tools.c:208: error: storage size of ‘req’ isn’t known
> miscutils/ubi_tools.c:218: error: ‘UBI_IOCRSVOL’ undeclared (first use in
> this function)
> miscutils/ubi_tools.c:208: warning: unused variable ‘req’
> miscutils/ubi_tools.c:226: error: ‘UBI_IOCVOLUP’ undeclared (first use in
> this function)


Your compiler's kernel headers do not contain MTD-related headers.

Disable ubiattach, ubidetach, ubimkvol, ubirmvol, ubirsvol, ubiupdatevol
applets on .config and try "make" again.

If you must have those applets, then install a newer kernel headers
(the procedure to do this is toolchain-specific).


>   CC      networking/udhcp/dhcpc.o
> networking/udhcp/dhcpc.c: In function ‘udhcp_recv_raw_packet’:
> networking/udhcp/dhcpc.c:839: error: invalid application of ‘sizeof’ to
> incomplete type ‘struct tpacket_auxdata’
> 
> networking/udhcp/dhcpc.c:902:
>  error: ‘PACKET_AUXDATA’ undeclared (first
> use in this function)

dhcpc.c has "#include <linux/if_packet.h>" statement. Apparently your
if_packet.h is old too. Mine has these two declarations:

struct tpacket_auxdata {
        __u32           tp_status;
        __u32           tp_len;
        __u32           tp_snaplen;
        __u16           tp_mac;
        __u16           tp_net;
        __u16           tp_vlan_tci;
        __u16           tp_padding;
};

#define PACKET_AUXDATA                  8

your does not.

> Yep, this is Fedora 6, my kernel is 2.6.18.

You need to update your /usr/include/linux/* files with newer kernel
headers. If you can't do a "normal" update, try manually downloading
a more recent gcc RPM and replacing only that directory.

-- 
vda


More information about the busybox mailing list