Bug 6362

Summary: Unable to compile using NDK due to missing network definitions
Product: Busybox Reporter: KTSamy <thirumalai.dme>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: major CC: busybox-cvs, thirumalai.dme
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:
Attachments: Busybox NDK build log

Description KTSamy 2013-07-09 11:13:36 UTC
Created attachment 4970 [details]
Busybox NDK build log

I am using android ndk r8e.
I have tried to compile busybox 1.21.1 stable from the sources using ndk for my android mobile.
I have not changed any configuration & used the default one "android_ndk_defconfig".
But While compiling I am receiving "networking/udhcp" error.
I have attached detailed build log for reference.
Comment 1 Bernhard Reutner-Fischer 2013-07-09 11:37:14 UTC
+#ifndef PACKET_AUXDATA
+#define PACKET_AUXDATA 8
+
+struct tpacket_auxdata
+{
+	uint32_t	tp_status;
+	uint32_t	tp_len;
+	uint32_t	tp_snaplen;
+	uint16_t	tp_mac;
+	uint16_t	tp_net;
+	uint16_t	tp_vlan_tci;
+	uint16_t	tp_padding;
+};
+#endif

?
Comment 2 Mike Frysinger 2016-02-18 06:51:13 UTC
this should work with the latest NDK as they've synced the kernel headers.  we don't really support older NDK versions.  if that's an issue for you, disable the udhcp applet.