Hi,
I am compiling iw tools for IMX6 Android Marshmallow. I am getting the following error.
Please , anyone help me to fix this?
root@cpu331:~/myandroid/external/iw-android# mm
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
TARGET_PRODUCT=sabresd_6dq
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=2.1.0-ga-rc2
OUT_DIR=out
============================================
No private recovery resources for TARGET_DEVICE sabresd_6dq
make: Entering directory `/home/test/myandroid'
target thumb C: iw <= external/iw-android/iw.c
No private recovery resources for TARGET_DEVICE sabresd_6dq
make: Entering directory `/home/test/myandroid'
target thumb C: iw <= external/iw-android/iw.c
external/iw-android/iw.c:28:33: error: conflicting types for 'nl_socket_alloc'
static inline struct nl_handle *nl_socket_alloc(void)
external/iw-android/iw.c:33:20: error: conflicting types for 'nl_socket_free'
static inline void nl_socket_free(struct nl_sock *h)
external/iw-android/iw.c:40:25: error: too few arguments to function 'genl_ctrl_alloc_cache'
struct nl_cache *tmp = genl_ctrl_alloc_cache(h);
external/iw-android/iw.c: In function 'error_handler':
external/iw-android/iw.c:234:46: warning: unused parameter 'nla' [-Wunused-parameter]
static int error_handler(struct sockaddr_nl *nla, struct nlmsgerr *err,
make: *** [out/target/product/sabresd_6dq/obj/EXECUTABLES/iw_intermediates/iw.o] Error 1
make: Leaving directory `/home/test/myandroid'
#### make failed to build some targets (1 seconds) ####
Regards
Susan