I am trying to build package/app/utility which has to use kernel header (for gpio ) and library headers.
openwrt/build_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/linux-3.10.14/arch/mips/include/asm/socket.h:30:2: error: redeclaration of enumerator 'SOCK_DGRAM'
SOCK_DGRAM = 1,
^
/hopenwrt/staging_dir/toolchain-mipsel_1004kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include/bits/socket.h:44:3: note: previous definition of 'SOCK_DGRAM' was here
SOCK_DGRAM = 1, /* Connectionless, unreliable datagrams
^
/openwrt/build_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/linux-3.10.14/arch/mips/include/asm/socket.h:31:2: error: redeclaration of enumerator 'SOCK_STREAM'
SOCK_STREAM = 2,
^
/openwrt/staging_dir/toolchain-mipsel_1004kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include/bits/socket.h:47:3: note: previous definition of 'SOCK_STREAM' was here
SOCK_STREAM = 2, /* Sequenced, reliable, connection-based
^
/openwrt/build_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/linux-3.10.14/arch/mips/include/asm/socket.h:32:2: error: redeclaration of enumerator 'SOCK_RAW'
SOCK_RAW = 3,
^
/openwrt/staging_dir/toolchain-mipsel_1004kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include/bits/socket.h:50:3: note: previous definition of 'SOCK_RAW' was here
SOCK_RAW = 3, /* Raw protocol interface. */
^
/openwrt/build_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/linux-3.10.14/arch/mips/include/asm/socket.h:33:2: error: redeclaration of enumerator 'SOCK_RDM'
SOCK_RDM = 4,
While compiling i get above conflict error , how can it be fixed ?
(Last edited by geek007 on 9 Feb 2018, 07:30)