Bug 6362 - Unable to compile using NDK due to missing network definitions
Summary: Unable to compile using NDK due to missing network definitions
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: Other Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-09 11:13 UTC by KTSamy
Modified: 2016-02-18 06:51 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments
Busybox NDK build log (19.93 KB, application/octet-stream)
2013-07-09 11:13 UTC, KTSamy
Details

Note You need to log in before you can comment on or make changes to this bug.
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.