[BusyBox] networking/udhcp/packet.c:122: error: storage sizeof `dest' isn't known
Josh Goebel
josh at dwgsolutions.com
Wed Dec 24 07:28:19 UTC 2003
If I go back a version or two I get a similar (but not exactly the same)
error in socket.c... so I can tell that things have been changed... I
suppose I'm just imagining there is some little detail that's been
missed that is affecting me.
What type of problem would I look for with my headers? I'm using
uclibc's buildroot, the latest release of uclibc and kernel 2.0.39... So
I have uclibc and the standard linux 2.0.39 headers. Has anyone else
here successfully compiled with this combo?
Josh
-----Original Message-----
From: Russ Dill [mailto:Russ.Dill at asu.edu]
Sent: Wednesday, December 24, 2003 1:21 AM
To: Josh Goebel
Cc: busybox at mail.busybox.net
Subject: Re: [BusyBox] networking/udhcp/packet.c:122: error: storage
sizeof `dest' isn't known
On Tue, 2003-12-23 at 22:00, Josh Goebel wrote:
> I have uclibc 0.9.24 compiled against linux 2.0.39. using source from
> busybox-1.00-pre5.
>
>
>
> BusyBox is dying during the compile. Any ideas?
>
>
>
> /home/bootdisks/buildroot/build_i386/staging_dir/bin/i386-linux-gcc
> -I./include -Wall -Wstrict-prototypes -Wshadow -Os -march=i386
> -mpreferred-stack-boundary=2 -falign-functions=0 -falign-jumps=0
> -falign-loops=0 -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG
> -DIN_BUSYBOX -c networking/udhcp/packet.c -o networking/udhcp/packet.o
>
> networking/udhcp/packet.c: In function `raw_packet':
>
> networking/udhcp/packet.c:122: error: storage size of `dest' isn't
> known
>
> networking/udhcp/packet.c:138: error: invalid application of `sizeof'
> to an incomplete type
>
> networking/udhcp/packet.c:122: warning: unused variable `dest'
>
> make[1]: *** [networking/udhcp/packet.o] Error 1
udhcp underwent quite a few changes, but packet.c was barely touched.
According to my man pages, PF_PACKET to be used, the following includes
must be used:
#include <sys/socket.h>
#include <features.h> /* for the glibc version number */
#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
#include <netpacket/packet.h>
#include <net/ethernet.h> /* the L2 protocols */
#else
#include <asm/types.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h> /* The L2 protocols */
#endif
packet.c has these includes. I think there is a problem with your
headers.
--
Russ Dill <Russ.Dill at asu.edu>
More information about the busybox
mailing list