找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1815|回复: 9

萌新求助,编译libpcap不出文件

[复制链接]
发表于 2021-3-11 00:23 | 显示全部楼层 |阅读模式
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/include/site/x86_64
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-openwrt-linux-gnu
checking target system type... x86_64-openwrt-linux-gnu
checking for x86_64-openwrt-linux-gcc... x86_64-openwrt-linux-musl-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-openwrt-linux-musl-gcc accepts -g... yes
checking for x86_64-openwrt-linux-musl-gcc option to accept ISO C89... none needed
checking for x86_64-openwrt-linux-musl-gcc option to accept ISO C99... none needed
checking whether the compiler supports the -fvisibility=hidden option... yes
checking for inline... inline
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking how to run the C preprocessor... x86_64-openwrt-linux-musl-gcc -E
checking for grep that handles long lines and -e... /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/host/bin/grep
checking for egrep... /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/host/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/ioccom.h usability... no
checking sys/ioccom.h presence... no
checking for sys/ioccom.h... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking netpacket/packet.h usability... yes
checking netpacket/packet.h presence... yes
checking for netpacket/packet.h... yes
checking for net/pfvar.h... no
checking for ANSI ioctl definitions... yes
checking for strerror... (cached) yes
checking for strerror_r... yes
checking whether strerror_r is GNU-style... no
checking for vsyslog... yes
checking for vsnprintf... (cached) yes
checking for snprintf... yes
checking for vasprintf... yes
checking for asprintf... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strtok_r... yes
checking for ffs... yes
checking whether ffs is declared... no
checking for getaddrinfo... (cached) yes
checking for library containing putmsg... no
checking whether getnetbyname_r is declared... no
checking whether getprotobyname_r is declared... no
checking for ether_hostton... yes
checking whether ether_hostton is declared... no
checking whether ether_hostton is declared... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create... yes
checking if --disable-protochain option is specified... enabled
checking net/bpf.h usability... no
checking net/bpf.h presence... no
checking for net/bpf.h... no
checking net/pfilt.h usability... no
checking net/pfilt.h presence... no
checking for net/pfilt.h... no
checking net/enet.h usability... no
checking net/enet.h presence... no
checking for net/enet.h... no
checking net/nit.h usability... no
checking net/nit.h presence... no
checking for net/nit.h... no
checking sys/net/nit.h usability... no
checking sys/net/nit.h presence... no
checking for sys/net/nit.h... no
checking linux/socket.h usability... yes
checking linux/socket.h presence... yes
checking for linux/socket.h... yes
checking net/raw.h usability... no
checking net/raw.h presence... no
checking for net/raw.h... no
checking sys/dlpi.h usability... no
checking sys/dlpi.h presence... no
checking for sys/dlpi.h... no
checking config/HaikuConfig.h usability... no
checking config/HaikuConfig.h presence... no
checking for config/HaikuConfig.h... no
checking packet capture type... linux
checking for pkg-config... pkg-config
checking for linux/wireless.h... yes
checking for libnl-genl-3.0 with pkg-config... not found
checking for nl_socket_alloc in -lnl-3... no
checking for struct tpacket_auxdata.tp_vlan_tci... yes
checking for getifaddrs... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking linux/net_tstamp.h usability... yes
checking linux/net_tstamp.h presence... yes
checking for linux/net_tstamp.h... yes
checking for socklen_t... yes
checking dagapi.h usability... no
checking dagapi.h presence... no
checking for dagapi.h... no
checking whether we have Septel API headers... no
checking whether we have Myricom Sniffer API... no
checking whether TurboCap is supported... no
checking whether to enable remote packet capture... no
checking whether to build optimizer debugging code... no
checking whether to build parser debugging code... no
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for capable lex... yes
checking for bison... bison
checking for x86_64-openwrt-linux-ranlib... x86_64-openwrt-linux-musl-gcc-ranlib
checking for x86_64-openwrt-linux-ar... x86_64-openwrt-linux-musl-gcc-ar
checking whether ln -s works... yes
checking for struct sockaddr.sa_len... no
checking for struct sockaddr_storage... yes
checking for dl_hp_ppa_info_t.dl_module_id_1... no
checking for Linux usbmon USB sniffing support... yes
configure: Device for USB sniffing is /dev/usbmon
checking linux/compiler.h usability... no
checking linux/compiler.h presence... no
checking for linux/compiler.h... no
checking linux/usbdevice_fs.h usability... yes
checking linux/usbdevice_fs.h presence... yes
checking for linux/usbdevice_fs.h... yes
checking for struct usbdevfs_ctrltransfer.bRequestType... yes
checking whether we can compile the netfilter support... yes
checking whether we can compile the netmap support... no
checking for DPDK with pkg-config... not found
checking whether we can compile the DPDK support... no
checking bluetooth/bluetooth.h usability... no
checking bluetooth/bluetooth.h presence... no
checking for bluetooth/bluetooth.h... no
configure: Bluetooth sniffing is not supported; install bluez-lib devel to enable it
checking for D-Bus... no
checking for ibv_get_device_list in -libverbs... no
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating grammar.y
config.status: creating pcap-filter.manmisc
config.status: creating pcap-linktype.manmisc
config.status: creating pcap-tstamp.manmisc
config.status: creating pcap-savefile.manfile
config.status: creating pcap.3pcap
config.status: creating pcap_compile.3pcap
config.status: creating pcap_datalink.3pcap
config.status: creating pcap_dump_open.3pcap
config.status: creating pcap_get_tstamp_precision.3pcap
config.status: creating pcap_list_datalinks.3pcap
config.status: creating pcap_list_tstamp_types.3pcap
config.status: creating pcap_open_dead.3pcap
config.status: creating pcap_open_offline.3pcap
config.status: creating pcap_set_immediate_mode.3pcap
config.status: creating pcap_set_tstamp_precision.3pcap
config.status: creating pcap_set_tstamp_type.3pcap
config.status: creating rpcapd/Makefile
config.status: creating rpcapd/rpcapd.manadmin
config.status: creating rpcapd/rpcapd-config.manfile
config.status: creating testprogs/Makefile
config.status: creating config.h
config.status: executing default-1 commands
configure: WARNING: unrecognized options: --disable-nls
touch /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/.built
touch /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/.built_check
CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/usr/include -I/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/include -I/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/include -I/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/include/fortify -I/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/include " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/usr/include -I/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/include -I/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/include -I/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/include/fortify -I/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/include " LDFLAGS="-L/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/usr/lib -L/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/lib -L/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/lib -L/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/lib -znow -zrelro " make -j1 -C /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/. AR="x86_64-openwrt-linux-musl-gcc-ar" AS="x86_64-openwrt-linux-musl-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=x86_64-openwrt-linux-musl-ld NM="x86_64-openwrt-linux-musl-gcc-nm" CC="x86_64-openwrt-linux-musl-gcc" GCC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" RANLIB="x86_64-openwrt-linux-musl-gcc-ranlib" STRIP=x86_64-openwrt-linux-musl-strip OBJCOPY=x86_64-openwrt-linux-musl-objcopy OBJDUMP=x86_64-openwrt-linux-musl-objdump SIZE=x86_64-openwrt-linux-musl-size CROSS="x86_64-openwrt-linux-musl-" ARCH="x86_64" ;
make[3]: Entering directory '/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10'
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./pcap-linux.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./fad-getad.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./pcap-usb-linux.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./pcap-netfilter-linux.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./pcap.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
bison -p pcap_ -o grammar.c -d grammar.y
flex -P pcap_ --header-file=scanner.h --nounput -o scanner.c scanner.l
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./gencode.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./optimize.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./nametoaddr.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./etherent.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./fmtutils.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./savefile.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./sf-pcap.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./sf-pcapng.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./pcap-common.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./bpf_image.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./bpf_filter.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c ./bpf_dump.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c scanner.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc -fvisibility=hidden -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -fpic -I.  -DBUILDING_PCAP -Dpcap_EXPORTS -DHAVE_CONFIG_H  -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10:libpcap-1.10 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro     -c grammar.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
x86_64-openwrt-linux-musl-gcc-ar rc libpcap.a pcap-linux.o fad-getad.o  pcap-usb-linux.o pcap-netfilter-linux.o  pcap.o gencode.o optimize.o nametoaddr.o etherent.o fmtutils.o savefile.o sf-pcap.o sf-pcapng.o pcap-common.o bpf_image.o bpf_filter.o bpf_dump.o scanner.o grammar.o  
x86_64-openwrt-linux-musl-gcc-ranlib libpcap.a
VER=`cat ./VERSION`; \
MAJOR_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' ./VERSION`; \
x86_64-openwrt-linux-musl-gcc -L/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/usr/lib -L/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/lib -L/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/lib -L/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/lib -znow -zrelro   -shared -Wl,-soname,libpcap.so.$MAJOR_VER \
    -o libpcap.so.$VER pcap-linux.o fad-getad.o  pcap-usb-linux.o pcap-netfilter-linux.o  pcap.o gencode.o optimize.o nametoaddr.o etherent.o fmtutils.o savefile.o sf-pcap.o sf-pcapng.o pcap-common.o bpf_image.o bpf_filter.o bpf_dump.o scanner.o grammar.o   
./config.status --file=libpcap.pc.tmp:./libpcap.pc.in
config.status: creating libpcap.pc.tmp
mv libpcap.pc.tmp libpcap.pc
./config.status --file=pcap-config.tmp:./pcap-config.in
config.status: creating pcap-config.tmp
mv pcap-config.tmp pcap-config
chmod a+x pcap-config
make[3]: Leaving directory '/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10'
touch /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/.built
rm -rf /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/.pkgdir/libpcap.installed /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/.pkgdir/libpcap
mkdir -p /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/.pkgdir/libpcap
install -d -m0755 /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/.pkgdir/libpcap/usr/bin
#install -m0755 /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10libpcap /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/.pkgdir/libpcap/usr/bin
install -d -m0755 /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/.pkgdir/libpcap/usr/lib
#cp -fpR /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-install/usr/lib/libpcap*.so* /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/.pkgdir/libpcap/usr/lib/
touch /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/.pkgdir/libpcap.installed
mkdir -p /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/root-x86/stamp
SHELL= flock /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/tmp/.root-copy.flock -c 'cp -fpR /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/.pkgdir/libpcap/. /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/root-x86/'
touch /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/root-x86/stamp/.libpcap_installed
removed '/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/bin/packages/x86_64/base/libpcap_1.10-1_x86_64.ipk'
mkdir -p /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/bin/targets/x86/64/packages /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-x86_64/libpcap/CONTROL /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo
install -d -m0755 /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-x86_64/libpcap/usr/bin
#install -m0755 /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10libpcap /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-x86_64/libpcap/usr/bin
install -d -m0755 /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-x86_64/libpcap/usr/lib
#cp -fpR /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-install/usr/lib/libpcap*.so* /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-x86_64/libpcap/usr/lib/
find /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-x86_64/libpcap -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="x86_64-openwrt-linux-musl-"   ; NM="x86_64-openwrt-linux-musl-nm" STRIP="/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/host/bin/sstrip" STRIP_KMOD="/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/scripts/strip-kmod.sh" PATCHELF="/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/host/bin/patchelf" /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/scripts/rstrip.sh /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-x86_64/libpcap
(cd /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-x86_64/libpcap/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -x "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -x "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/bin/packages/x86_64/base
/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/scripts/ipkg-build -c -o 0 -g 0 /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-x86_64/libpcap /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/bin/packages/x86_64/base
Packaged contents of /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-x86_64/libpcap into /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/bin/packages/x86_64/base/libpcap_1.10-1_x86_64.ipk
rm -rf /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/tmp/stage-libpcap
mkdir -p /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/tmp/stage-libpcap/host /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/packages /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/host/packages
install -d -m0755 /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/tmp/stage-libpcap/usr/include
install -d -m0755 /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/tmp/stage-libpcap/usr/include/pcap
cp -fpR /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/pcap.h /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/tmp/stage-libpcap/usr/include/
cp -fpR /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/pcap/* /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/tmp/stage-libpcap/usr/include/pcap/
#cp -fpR /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-install/pcap/* /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/tmp/stage-libpcap/usr/include/pcap/
install -d -m0755 /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/tmp/stage-libpcap/usr/lib
cp -fpR /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/libpcap.a /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/tmp/stage-libpcap/usr/lib/
cp -fpR /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-install/* /home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/tmp/stage-libpcap/usr/lib/
cp: cannot stat '/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/libpcap/libpcap-1.10/ipkg-install/*': No such file or directory
Makefile:49: recipe for target '/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/stamp/.libpcap_installed' failed
make[2]: *** [/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/stamp/.libpcap_installed] Error 1
make[2]: Leaving directory '/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/package/libpcap'
time: package/libpcap/compile#14.88#9.34#27.00
package/Makefile:111: recipe for target 'package/libpcap/compile' failed
make[1]: *** [package/libpcap/compile] Error 2
make[1]: Leaving directory '/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64'
/home/kinoko/Desktop/openwrt-sdk-19.07.4-x86-64_gcc-7.5.0_musl.Linux-x86_64/include/toplevel.mk:218: recipe for target 'package/libpcap/compile' failed
make: *** [package/libpcap/compile] Error 2

大佬求助,编译libpcap(https://github.com/the-tcpdump-group/libpcap)编译不出文件,没有libpcap没法继续开发ipk程序

只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
 楼主| 发表于 2021-3-11 00:25 | 显示全部楼层
#以下是makefile内容
include $(TOPDIR)/rules.mk

PKG_NAME:=libpcap

PKG_VERSION:=1.10

PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git

PKG_SOURCE_URL:=https://github.com/the-tcpdump-group/libpcap.git

PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)

PKG_SOURCE_VERSION:=32962b021d875978a70bfd91e9687684712f608f

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/libpcap

        SECTION:=libs

        CATEGORY:=Libraries

        TITLE:=Library which implementation

        URL:=https://github.com/the-tcpdump-group

endef

define Package/libpcap/description

        null

endef

define Build/InstallDev

        $(INSTALL_DIR) $(1)/usr/include

        $(INSTALL_DIR) $(1)/usr/include/pcap

        $(CP) $(PKG_BUILD_DIR)/pcap.h $(1)/usr/include/

        $(CP) $(PKG_BUILD_DIR)/pcap/* $(1)/usr/include/pcap/

        #$(CP) $(PKG_INSTALL_DIR)/pcap/* $(1)/usr/include/pcap/

        $(INSTALL_DIR) $(1)/usr/lib

        $(CP) $(PKG_BUILD_DIR)/libpcap.a $(1)/usr/lib/

        $(CP) $(PKG_INSTALL_DIR)/* $(1)/usr/lib/

        #.so not found

endef

define Package/libpcap/install

        $(INSTALL_DIR) $(1)/usr/bin

        #$(INSTALL_BIN) $(PKG_BUILD_DIR)libpcap $(1)/usr/bin

        $(INSTALL_DIR) $(1)/usr/lib

        #$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap*.so* $(1)/usr/lib/

endef


$(eval $(call BuildPackage,libpcap))
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2021-3-11 00:25 | 显示全部楼层
#以下是makefile内容
include $(TOPDIR)/rules.mk

PKG_NAME:=libpcap

PKG_VERSION:=1.10

PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git

PKG_SOURCE_URL:=https://github.com/the-tcpdump-group/libpcap.git

PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)

PKG_SOURCE_VERSION:=32962b021d875978a70bfd91e9687684712f608f

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/libpcap

        SECTION:=libs

        CATEGORY:=Libraries

        TITLE:=Library which implementation

        URL:=https://github.com/the-tcpdump-group

endef

define Package/libpcap/description

        null

endef

define Build/InstallDev

        $(INSTALL_DIR) $(1)/usr/include

        $(INSTALL_DIR) $(1)/usr/include/pcap

        $(CP) $(PKG_BUILD_DIR)/pcap.h $(1)/usr/include/

        $(CP) $(PKG_BUILD_DIR)/pcap/* $(1)/usr/include/pcap/

        #$(CP) $(PKG_INSTALL_DIR)/pcap/* $(1)/usr/include/pcap/

        $(INSTALL_DIR) $(1)/usr/lib

        $(CP) $(PKG_BUILD_DIR)/libpcap.a $(1)/usr/lib/

        $(CP) $(PKG_INSTALL_DIR)/* $(1)/usr/lib/

        #.so not found

endef

define Package/libpcap/install

        $(INSTALL_DIR) $(1)/usr/bin

        #$(INSTALL_BIN) $(PKG_BUILD_DIR)libpcap $(1)/usr/bin

        $(INSTALL_DIR) $(1)/usr/lib

        #$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap*.so* $(1)/usr/lib/

endef


$(eval $(call BuildPackage,libpcap))
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2021-3-11 07:56 | 显示全部楼层
看过程好像编译是成功了,但是最后打包出了问题,你最好建个op完整环境把Makefile放进去完整编译,交叉编译太麻烦,有查错的时间老早整体编译完了。

点评

好,我用完整的环境尝试  详情 回复 发表于 2021-3-11 14:47
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2021-3-11 08:09 | 显示全部楼层
         #$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap*.so* $(1)/usr/lib/
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2021-3-11 14:47 来自手机 | 显示全部楼层
mike22437120 发表于 2021-3-11 07:56
看过程好像编译是成功了,但是最后打包出了问题,你最好建个op完整环境把Makefile放进去完整编译,交叉编译 ...

好,我用完整的环境尝试
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2021-3-20 15:46 | 显示全部楼层
下载一个新的源码环境,./scripts/feeds update -a
后 ./scripts/feeds install -a
把libpcap的makefile放到sdk目录里面就有文件了

点评

SDK目录在哪里?新建一个吗?  详情 回复 发表于 2023-1-6 16:45
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2021-4-4 18:35 | 显示全部楼层
#package/libpcap/Makefile
#
# Copyright (C) 2006-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=libpcap
PKG_VERSION:=1.9.1
PKG_RELEASE:=2.1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.us.tcpdump.org/release/ \
        http://www.tcpdump.org/release/
PKG_HASH:=635237637c5b619bcceba91900666b64d56ecb7be63f298f601ec786ce087094
PKG_FIXUP:=patch-libtool

PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>

PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=0
PKG_LICENSE:=BSD-3-Clause

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/kernel.mk

define Package/libpcap
  SECTION:=libs
  CATEGORY:=Libraries
  TITLE:=Low-level packet capture library
  URL:=http://www.tcpdump.org/
  MENU:=1
  ABI_VERSION:=1
endef

define Package/libpcap/description
This package contains a system-independent library for user-level network packet
capture.
endef

define Package/libpcap/config
        source "$(SOURCE)/Config.in"
endef

TARGET_CFLAGS += \
        -ffunction-sections \
        -fdata-sections

CONFIGURE_VARS += \
        ac_cv_linux_vers=$(LINUX_VERSION) \
        ac_cv_header_libusb_1_0_libusb_h=no

ifeq ($(CONFIG_PCAP_HAS_NETFILTER),)
CONFIGURE_VARS += \
        ac_cv_netfilter_can_compile=no
endif

CONFIGURE_ARGS += \
        --enable-shared \
        --disable-yydebug \
        --with-pcap=linux \
        --without-septel \
        --without-dag \
        --without-libnl \
        --without-snf \
        --disable-can \
        --disable-canusb \
        --disable-dbus \
        --disable-bluetooth

ifeq ($(CONFIG_IPV6),y)
CONFIGURE_ARGS += \
        --enable-ipv6
endif

MAKE_FLAGS += \
        CCOPT="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include"

define Build/Configure
        $(call Build/Configure/Default)
        $(if $(CONFIG_PCAP_HAS_USB),,$(SED) '/^#define PCAP_SUPPORT_USB/D' $(PKG_BUILD_DIR)/config.h)
        $(if $(CONFIG_PCAP_HAS_USB),,$(SED) 's/pcap-usb-linux.c *//' $(PKG_BUILD_DIR)/Makefile)
        $(if $(CONFIG_PCAP_HAS_BT),,$(SED) '/^#define PCAP_SUPPORT_BT/D' $(PKG_BUILD_DIR)/config.h)
        $(if $(CONFIG_PCAP_HAS_BT),,$(SED) 's/pcap-bt-linux.c *//' $(PKG_BUILD_DIR)/Makefile)

        # Workaround https://bugs.openwrt.org/index.php?do=details&task_id=2970
        mkdir $(PKG_BUILD_DIR)/debian
        echo "libpcap (1-0)" > $(PKG_BUILD_DIR)/debian/changelog
endef

define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/pcap* $(1)/usr/include/

        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.{a,so*} $(1)/usr/lib/
endef

define Package/libpcap/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.so.* $(1)/usr/lib/
endef

$(eval $(call BuildPackage,libpcap))


#package/libpcap/Config.in
menu "Configuration"
        depends on PACKAGE_libpcap

config PCAP_HAS_USB
        bool "Include USB support"
        default n

config PCAP_HAS_BT
        bool "Include bluetooth support"
        depends on BROKEN
        default n

config PCAP_HAS_NETFILTER
        bool "Include netfilter support"
        default n

endmenu
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2021-11-20 09:06 | 显示全部楼层
后来怎么解决的?
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2023-1-6 16:45 | 显示全部楼层
kinoko 发表于 2021-3-20 15:46
下载一个新的源码环境,./scripts/feeds update -a
后 ./scripts/feeds install -a
把libpcap的makefile ...

SDK目录在哪里?新建一个吗?
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-9-23 21:31

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表