Project

General

Profile

Actions

Bug #4347

closed

--with-sysroot and/or --with-pcap-xxxx flags fail to find pcap.h

Added by Donald Hoskins almost 4 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:

Description

Building inside the OpenWrt buildsystem with --with-sysroot= and --with-libpcap-includes/--with-libpcap-libraries, fails to find the pcap.h file.

grommish@DESKTOP-N35LRJ4:~/openwrt/staging_dir/target-mips64_octeonplus_64_musl$ find ./* -name libpcap*
./usr/lib/libpcap.a
./usr/lib/libpcap.so.1
./usr/lib/libpcap.so.1.9.1
./usr/lib/libpcap.so
grommish@DESKTOP-N35LRJ4:~/openwrt/staging_dir/target-mips64_octeonplus_64_musl$ find ./* -name pcap.h
./usr/include/pcap/pcap.h
./usr/include/pcap.h

Invoked with the following:

CARGO_HOME=/home/grommish/openwrt/staging_dir/hostpkg ac_cv_path_CARGO="/home/grommish/openwrt/staging_dir/hostpkg/bin/cargo" ac_cv_path_RUSTC="/home/grommish/openwrt/staging_dir/hostpkg/bin/rustc"  ./configure --target=mips64-openwrt-linux --host=mips64-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls  --prefix="/usr" --sysconfdir="/etc" --localstatedir="/var" --with-sysroot="/home/grommish/openwrt/staging_dir/target-mips64_octeonplus_64_musl" --with-libpcap-includes="/home/grommish/openwrt/staging_dir/target-mips64_octeonplus_64_musl/usr/include/pcap" --with-libpcap-libraries="/home/grommish/openwrt/staging_dir/target-mips64_octeonplus_64_musl/usr/lib" --enable-nfqueue --enable-af-packet --enable-unittests --enable-luajit --enable-geoip --enable-debug --enable-hiredis --enable-profiling --enable-profiling-locks --host=mips64-openwrt-linux-musl --build=x86_64-unknown-linux-gnu ; fi; )
configure: loading site script /home/grommish/openwrt/include/site/mips64
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mips64-openwrt-linux-musl-strip... mips64-openwrt-linux-musl-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... mips64-openwrt-linux-musl
checking how to print strings... printf
checking for style of include used by make... GNU
checking for mips64-openwrt-linux-musl-gcc... mips64-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 mips64-openwrt-linux-musl-gcc accepts -g... yes
checking for mips64-openwrt-linux-musl-gcc option to accept ISO C89... none needed
checking whether mips64-openwrt-linux-musl-gcc understands -c and -o together... yes
checking dependency style of mips64-openwrt-linux-musl-gcc... gcc3
checking for a sed that does not truncate output... /home/grommish/openwrt/staging_dir/host/bin/sed
checking for grep that handles long lines and -e... /home/grommish/openwrt/staging_dir/host/bin/grep
checking for egrep... /home/grommish/openwrt/staging_dir/host/bin/grep -E
checking for fgrep... /home/grommish/openwrt/staging_dir/host/bin/grep -F
checking for ld used by mips64-openwrt-linux-musl-gcc... mips64-openwrt-linux-musl-ld
checking if the linker (mips64-openwrt-linux-musl-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... mips64-openwrt-linux-musl-gcc-nm
checking the name lister (mips64-openwrt-linux-musl-gcc-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to mips64-openwrt-linux-musl format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for mips64-openwrt-linux-musl-ld option to reload object files... -r
checking for mips64-openwrt-linux-musl-objdump... mips64-openwrt-linux-musl-objdump
checking how to recognize dependent libraries... pass_all
checking for mips64-openwrt-linux-musl-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for mips64-openwrt-linux-musl-ar... mips64-openwrt-linux-musl-gcc-ar
checking for archiver @FILE support... @
checking for mips64-openwrt-linux-musl-strip... (cached) mips64-openwrt-linux-musl-strip
checking for mips64-openwrt-linux-musl-ranlib... mips64-openwrt-linux-musl-gcc-ranlib
checking command to parse mips64-openwrt-linux-musl-gcc-nm output from mips64-openwrt-linux-musl-gcc object... ok
checking for sysroot... /home/grommish/openwrt/staging_dir/target-mips64_octeonplus_64_musl
checking for mips64-openwrt-linux-musl-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking how to run the C preprocessor... mips64-openwrt-linux-musl-gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if mips64-openwrt-linux-musl-gcc supports -fno-rtti -fno-exceptions... no
checking for mips64-openwrt-linux-musl-gcc option to produce PIC... -fPIC -DPIC
checking if mips64-openwrt-linux-musl-gcc PIC flag -fPIC -DPIC works... yes
checking if mips64-openwrt-linux-musl-gcc static flag -static works... yes
checking if mips64-openwrt-linux-musl-gcc supports -c -o file.o... yes
checking if mips64-openwrt-linux-musl-gcc supports -c -o file.o... (cached) yes
checking whether the mips64-openwrt-linux-musl-gcc linker (mips64-openwrt-linux-musl-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking pkg-config is at least version 0.9.0... yes
checking whether GCC or Clang is our compiler... gcc
checking for clang... no
checking gcc version... 10.2.0
checking for gawk... (cached) gawk
checking for mips64-openwrt-linux-musl-gcc... (cached) mips64-openwrt-linux-musl-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether mips64-openwrt-linux-musl-gcc accepts -g... (cached) yes
checking for mips64-openwrt-linux-musl-gcc option to accept ISO C89... (cached) none needed
checking whether mips64-openwrt-linux-musl-gcc understands -c and -o together... (cached) yes
checking dependency style of mips64-openwrt-linux-musl-gcc... (cached) gcc3
checking how to run the C preprocessor... mips64-openwrt-linux-musl-gcc -E
checking for mips64-openwrt-linux-musl-ranlib... (cached) mips64-openwrt-linux-musl-gcc-ranlib
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for grep that handles long lines and -e... (cached) /home/grommish/openwrt/staging_dir/host/bin/grep
checking for cygpath... no
checking for pkg-config... /home/grommish/openwrt/staging_dir/host/bin/pkg-config
checking for python3... /home/grommish/openwrt/staging_dir/hostpkg/bin/python3
checking for python-distutils... yes
checking for python-yaml... no
checking for wget... /home/grommish/openwrt/staging_dir/host/bin/wget
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stdint.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/ioctl.h... (cached) yes
checking linux/if_ether.h usability... yes
checking linux/if_ether.h presence... yes
checking for linux/if_ether.h... yes
checking linux/if_packet.h usability... yes
checking linux/if_packet.h presence... yes
checking for linux/if_packet.h... yes
checking linux/filter.h usability... yes
checking linux/filter.h presence... yes
checking for linux/filter.h... yes
checking linux/ethtool.h usability... yes
checking linux/ethtool.h presence... yes
checking for linux/ethtool.h... yes
checking linux/sockios.h usability... yes
checking linux/sockios.h presence... yes
checking for linux/sockios.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/types.h... (cached) yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/random.h usability... yes
checking sys/random.h presence... yes
checking for sys/random.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking mach/mach.h usability... no
checking mach/mach.h presence... no
checking for mach/mach.h... no
checking stdatomic.h usability... yes
checking stdatomic.h presence... yes
checking for stdatomic.h... yes
checking for sys/socket.h... (cached) yes
checking for net/if.h... yes
checking for sys/mman.h... yes
checking for linux/if_arp.h... yes
checking for windows.h... no
checking for winsock2.h... no
checking for ws2tcpip.h... no
checking for w32api/wtypes.h... no
checking for w32api/winbase.h... no
checking for wincrypt.h... no
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking for pid_t... yes
checking for mode_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for u_int... yes
checking for u_short... yes
checking for u_long... yes
checking for u_char... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for ptrdiff_t... yes
checking for stdbool.h that conforms to C99... (cached) yes
checking for _Bool... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for alarm... yes
checking for working mktime... no
checking for getpagesize... yes
checking for working mmap... no
checking for working strtod... no
checking for pow... yes
checking for memmem... yes
checking for memset... yes
checking for memchr... yes
checking for memrchr... yes
checking for memmove... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strrchr... yes
checking for strdup... yes
checking for strndup... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for strtoul... yes
checking for strstr... yes
checking for strpbrk... yes
checking for strtoull... yes
checking for strtoumax... yes
checking for strerror... (cached) yes
checking for gethostname... yes
checking for inet_ntoa... yes
checking for uname... yes
checking for gettimeofday... (cached) yes
checking for clock_gettime... yes
checking for utime... yes
checking for strptime... yes
checking for tzset... yes
checking for localtime_r... yes
checking for socket... yes
checking for setenv... yes
checking for select... yes
checking for putenv... yes
checking for dup2... yes
checking for endgrent... yes
checking for endpwent... yes
checking for atexit... yes
checking for munmap... yes
checking for fwrite_unlocked... yes
checking whether getrandom is declared... yes
checking for strlcpy... yes
checking for strlcat... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking host os... installation for mips64-openwrt-linux-musl OS... ok
checking for c11 support... yes
checking for thread local storage gnu __thread support... yes
checking for dlfcn.h... (cached) yes
checking for plugin support... yes
checking checking if mips64-openwrt-linux-musl-gcc supports -march=native... no
checking for spatch... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for inflate in -lz... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for pcre_get_substring in -lpcre... yes
checking for LIBPCREVERSION... no
checking for pcre_dfa_exec in -lpcre... yes
checking for PCRE JIT support... yes
checking for PCRE JIT support usability... yes
checking for PCRE JIT exec availability... no
checking for libhs... no
checking hs.h usability... no
checking hs.h presence... no
checking for hs.h... no
checking yaml.h usability... yes
checking yaml.h presence... yes
checking for yaml.h... yes
checking for yaml_parser_initialize in -lyaml... yes
checking for pthread_create in -lpthread... yes
checking for pthread_spin_unlock... yes
checking jansson.h usability... yes
checking jansson.h presence... yes
checking for jansson.h... yes
checking for json_dump_callback in -ljansson... yes
checking for libnetfilter_queue... yes
checking for nfnl_fd in -lnfnetlink... yes
checking for libnetfilter_queue/libnetfilter_queue.h... yes
checking for nfq_open in -lnetfilter_queue... yes
checking for nfq_set_queue_maxlen in -lnetfilter_queue... yes
checking for nfq_set_verdict2 in -lnetfilter_queue... yes
checking for nfq_set_queue_flags in -lnetfilter_queue... yes
checking for nfq_set_verdict_batch in -lnetfilter_queue... yes
checking for signed nfq_get_payload payload argument... no
checking whether OS_WIN32 is declared... no
checking for libnet.h version 1.1.x... no
checking for pcap.h... no
configure: error: pcap.h not found ...

Files

config.log (461 KB) config.log Donald Hoskins, 02/22/2021 07:48 PM
Actions

Also available in: Atom PDF