Applying ./patches/100-daemon.patch using plaintext: patching file ntpclient.c make[3]: Entering directory '/immortalwrt/openwrt-18.06-k5.4/build_dir/target-arc_archs_glibc/ntpclient-2015' ccache_cc -Os -pipe -matomic -mcpu=archs -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/immortalwrt/openwrt-18.06-k5.4/build_dir/target-arc_archs_glibc/ntpclient-2015=ntpclient-2015 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/immortalwrt/openwrt-18.06-k5.4/staging_dir/toolchain-arc_archs_gcc-8.4.0_glibc/usr/include -I/immortalwrt/openwrt-18.06-k5.4/staging_dir/toolchain-arc_archs_gcc-8.4.0_glibc/include -std=c99 -D_POSIX_C_SOURCE=199309 -D_BSD_SOURCE -W -Wall -O2 -DPRECISION_SIOCGSTAMP -DENABLE_DEBUG -DENABLE_REPLAY -c -o ntpclient.o ntpclient.c In file included from /immortalwrt/openwrt-18.06-k5.4/staging_dir/toolchain-arc_archs_gcc-8.4.0_glibc/include/bits/libc-header-start.h:33, from /immortalwrt/openwrt-18.06-k5.4/staging_dir/toolchain-arc_archs_gcc-8.4.0_glibc/include/stdio.h:27, from ntpclient.c:32: /immortalwrt/openwrt-18.06-k5.4/staging_dir/toolchain-arc_archs_gcc-8.4.0_glibc/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ ntpclient.c: In function 'set_time': ntpclient.c:184:25: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type '__time_t' {aka 'long long int'} [-Wformat=] printf("set time to %lu.%.9lu\n", tv_set.tv_sec, tv_set.tv_nsec); ~~^ ~~~~~~~~~~~~~ %llu ntpclient.c: In function 'get_packet_timestamp': ntpclient.c:254:18: error: 'SIOCGSTAMP' undeclared (first use in this function); did you mean 'SIOCGARP'? if ( ioctl(usd, SIOCGSTAMP, &udp_arrival) < 0 ) { ^~~~~~~~~~ SIOCGARP ntpclient.c:254:18: note: each undeclared identifier is reported only once for each function it appears in ntpclient.c: In function 'main': ntpclient.c:661:5: warning: ignoring return value of 'daemon', declared with attribute warn_unused_result [-Wunused-result] daemon(0, 0); ^~~~~~~~~~~~ make[3]: *** [: ntpclient.o] Error 1 make[3]: Leaving directory '/immortalwrt/openwrt-18.06-k5.4/build_dir/target-arc_archs_glibc/ntpclient-2015' make[2]: *** [Makefile:60: /immortalwrt/openwrt-18.06-k5.4/build_dir/target-arc_archs_glibc/ntpclient-2015/.built] Error 2 time: package/feeds/packages/ntpclient/compile#0.19#0.05#0.32