I am a Suricata/Snort noob, but from my observations we also needs lot's of storage, suricata logs surely filling up really fast.
Suricata also needs Lot's of WebUI solutions I think. Only OpnSense & SELKS seems doing it 'right'.
I am a Suricata/Snort noob, but from my observations we also needs lot's of storage, suricata logs surely filling up really fast.
Suricata also needs Lot's of WebUI solutions I think. Only OpnSense & SELKS seems doing it 'right'.
I have snort on pfsense and it's great, some time ago i had opnsense for testing and also after instalation of suricata with simple config it was doing great. Maybe suricata should stay for big firewall.
I am also a *BSD fans, there are couple of reasoning behind my choice comes with OpenWrt, I don't want to bash another solutions. I hope & wish there will be more real and proper x86-64 OpenWrt developers .
Hey, I am having a bit of issues with trying to get Suricata built with OpenWrt. I am also quite new to this so bear with me.
First up when I try to install the package I get an error that hyperscan-runtime is unavailable. This does not seem to be a package in OpenWrt by default. Would I mess something up if I removed this dependency from the Makefile? I don't see it in Grommish's Makefile and my end goal system isn't supported by it anyway.
Assuming that it is okay to remove this dependency I still run into an issue with Suricata not showing up under make menuconfig Network-->Firewall-->Suricata. Suricata Options appears there, yet Suricata does not. Once again looking at the dependencies I found that removing the libxdp one fixes that issue and causes it to show up.
At this point I am unsure if my changes will impact building the image, but these were what I had to do to get it to a point where I could select Suricata and be ready to build. And once I try to build it I get an error saying if I meant to cross compile, use '--host'.
configure: loading site script /home/user/Desktop/openwrt/include/site/x86_64
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /home/user/Desktop/openwrt/staging_dir/host/bin/install -c
checking whether build environment is sane... yes
checking for a race-free 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-pc-linux-musl
checking host system type... x86_64-pc-linux-musl
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for 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... configure: error: in `/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
make[3]: *** [Makefile:185: /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 77
make[3]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/net/suricata'
time: package/feeds/packages/suricata/compile#283.01#7.96#91.64
ERROR: package/feeds/packages/suricata failed to build.
make[2]: *** [package/Makefile:120: package/feeds/packages/suricata/compile] Error 1
make[2]: Leaving directory '/home/user/Desktop/openwrt'
make[1]: *** [package/Makefile:114: /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/user/Desktop/openwrt'
make: *** [/home/user/Desktop/openwrt/include/toplevel.mk:232: world] Error 2
This was all done from a fresh clone of OpenWrt and only updating and installing feeds before following your guidelines from a couple days ago. (I did also notice the patch got merged before I tried to do this)
Is there something I did wrong here?
Sorry forgot to mention it, Hyperscan lib Package related files available by graysky2 in here , easier to patch it in your OpenWrt buildroot.
patch -p1 < 21471.patch inside your OpenWrt buildroot .
I suggest to use "*" which means built-in all required libs and suricata inside your image than "M" which means "Modules" that requires you to install it manually after your image finished compilation.
About compilation error also check based on your log above "/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/config.log" file, what are making the compiler error, normally incompatible CFLAGS or LDFLAGS being set at the host.
Another tips is to compile specific only package in OpenWrt build system is by :
make package/suricata/{clean,compile} -j9 V=s 2>&1 | tee suricata.log
What is your build host? Debian?
A quickguide by another OpenWrt user, probably helpful.
My build host is a nearly fresh install of Ubuntu, and I made sure first that I was able to compile just OpenWrt and Suricata on their own to ensure they were at least working before I tried this.
I still appear to have the issue of Suricata not showing up in make menuconfig unless I remove "+libxdp" from the DEPENDS in Suricata's Makefile.
(With libxdp)
(Without)
Not sure why as libxdp shows up when I search for it in menuconfig, but I cannot find it in Libraries where it says it will be.
You need to enable BPF for xdp-tools / libxdp "Advanced configuration options (for developers)-> BPF toolchain (Build LLVM toolchain for eBPF)"
Suricata Configuration:
AF_PACKET support: yes
AF_XDP support: yes
DPDK support: no
eBPF support: yes
XDP support: yes
PF_RING support: no
NFQueue support: yes
NFLOG support: yes
IPFW support: no
Netmap support: no
DAG enabled: no
Napatech enabled: no
WinDivert enabled: no
Unix socket enabled: yes
Detection enabled: yes
Libmagic support: yes
libjansson support: yes
hiredis support: yes
hiredis async with libevent: yes
PCRE jit: yes
LUA support: yes, through luajit
libluajit: yes
GeoIP2 support: yes
Non-bundled htp: no
Hyperscan support: yes
Libnet support: no
liblz4 support: yes
Landlock support: yes
Rust support: yes
Rust strict mode: no
Fixed hyperscan, xdp, eBPF. PF_RING Supports seems broken in suricata.
Okay, enabling BPF made it show up as you said. Though I am still running into the same compilation issue.
From my reading of config.log it seems to be missing conftest, causing it to not recognize that it is cross compiling? Not sure what I need to do to remedy this.
config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by suricata configure 7.0.2-dev, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ ./configure --target=x86_64-openwrt-linux --host=x86_64-openwrt-linux --build=x86_64-pc-linux-gnu --disable-dependency-tracking --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 --target= --host= --build= --enable-shared --disable-gccmarch-native --disable-gccprofile --with-gnu-ld --with-sysroot=/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl --enable-libmagic --enable-hiredis
## --------- ##
## Platform. ##
## --------- ##
hostname = user-ThinkCentre-M920s
uname -m = x86_64
uname -r = 6.2.0-34-generic
uname -s = Linux
uname -v = #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2
/usr/bin/uname -p = x86_64
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/host/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/hostpkg/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/host/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/host/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/host/bin/
PATH: /usr/local/sbin/
PATH: /usr/local/bin/
PATH: /usr/sbin/
PATH: /usr/bin/
PATH: /sbin/
PATH: /bin/
PATH: /usr/games/
PATH: /usr/local/games/
PATH: /snap/bin/
PATH: /snap/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2823: loading site script /home/user/Desktop/openwrt/include/site/x86_64
| #!/bin/sh
| . $TOPDIR/include/site/linux
| ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
| ac_cv_c_bigendian=${ac_cv_c_bigendian=no}
|
| ac_cv_sizeof___int64=0
| ac_cv_sizeof_char=1
| ac_cv_sizeof_int=4
| ac_cv_sizeof_int16_t=2
| ac_cv_sizeof_int32_t=4
| ac_cv_sizeof_int64_t=8
| ac_cv_sizeof_long_int=8
| ac_cv_sizeof_long_long=8
| ac_cv_sizeof_long=8
| ac_cv_sizeof_off_t=8
| ac_cv_sizeof_short_int=2
| ac_cv_sizeof_short=2
| ac_cv_sizeof_size_t=8
| ac_cv_sizeof_ssize_t=8
| ac_cv_sizeof_u_int16_t=2
| ac_cv_sizeof_u_int32_t=4
| ac_cv_sizeof_u_int64_t=8
| ac_cv_sizeof_uint16_t=2
| ac_cv_sizeof_uint32_t=4
| ac_cv_sizeof_uint64_t=8
| ac_cv_sizeof_unsigned_int=4
| ac_cv_sizeof_unsigned_long=8
| ac_cv_sizeof_unsigned_long_long=8
| ac_cv_sizeof_unsigned_short=2
| ac_cv_sizeof_void_p=8
configure:3405: looking for aux files: compile config.guess config.sub ltmain.sh missing install-sh
configure:3418: trying ./
configure:3447: ./compile found
configure:3447: ./config.guess found
configure:3447: ./config.sub found
configure:3447: ./ltmain.sh found
configure:3447: ./missing found
configure:3429: ./install-sh found
configure:3570: checking whether make supports nested variables
configure:3588: result: yes
configure:3621: checking for a BSD-compatible install
configure:3694: result: /home/user/Desktop/openwrt/staging_dir/host/bin/install -c
configure:3705: checking whether build environment is sane
configure:3760: result: yes
configure:3919: checking for a race-free mkdir -p
configure:3963: result: /usr/bin/mkdir -p
configure:3970: checking for gawk
configure:3991: found /usr/bin/gawk
configure:4002: result: gawk
configure:4013: checking whether make sets $(MAKE)
configure:4036: result: yes
configure:4128: checking whether UID '1000' is supported by ustar format
configure:4131: result: yes
configure:4138: checking whether GID '1000' is supported by ustar format
configure:4141: result: yes
configure:4149: checking how to create a ustar tar archive
configure:4160: tar --version
tar (GNU tar) 1.34
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
configure:4163: $? = 0
configure:4203: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
configure:4206: $? = 0
configure:4210: tar -xf - <conftest.tar
configure:4213: $? = 0
configure:4215: cat conftest.dir/file
GrepMe
configure:4218: $? = 0
configure:4232: result: gnutar
configure:4335: checking build system type
configure:4350: result: x86_64-pc-linux-musl
configure:4370: checking host system type
configure:4384: result: x86_64-pc-linux-musl
configure:4425: checking how to print strings
configure:4452: result: printf
configure:4486: checking whether make supports the include directive
configure:4501: make -f confmf.GNU && cat confinc.out
make[4]: Entering directory '/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2'
make[4]: Leaving directory '/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2'
this is the am__doit target
configure:4504: $? = 0
configure:4520: result: yes (GNU style)
configure:4596: checking for gcc
configure:4628: result: x86_64-openwrt-linux-musl-gcc
configure:4981: checking for C compiler version
configure:4990: x86_64-openwrt-linux-musl-gcc --version >&5
x86_64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24124-518923178c) 12.3.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:5001: $? = 0
configure:4990: x86_64-openwrt-linux-musl-gcc -v >&5
Reading specs from /home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/12.3.0/specs
COLLECT_GCC=x86_64-openwrt-linux-musl-gcc
COLLECT_LTO_WRAPPER=/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/libexec/gcc/x86_64-openwrt-linux-musl/12.3.0/lto-wrapper
Target: x86_64-openwrt-linux-musl
Configured with: /home/user/Desktop/openwrt/build_dir/toolchain-x86_64_gcc-12.3.0_musl/gcc-12.3.0/configure --with-bugurl=http://bugs.openwrt.org/ --with-pkgversion='OpenWrt GCC 12.3.0 r24124-518923178c' --prefix=/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-openwrt-linux-musl --with-gnu-ld --enable-target-optspace --disable-libgomp --disable-libmudflap --disable-multilib --disable-libmpx --disable-nls --disable-libssp --without-isl --without-cloog --with-host-libstdcxx=-lstdc++ --with-system-zlib=/home/user/Desktop/openwrt/staging_dir/host --with-zstd=/home/user/Desktop/openwrt/staging_dir/host --with-gmp=/home/user/Desktop/openwrt/staging_dir/host --with-mpfr=/home/user/Desktop/openwrt/staging_dir/host --with-mpc=/home/user/Desktop/openwrt/staging_dir/host --disable-decimal-float --with-diagnostics-color=auto-if-env --enable-__cxa_atexit --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new CFLAGS='-O2 -I/home/user/Desktop/openwrt/staging_dir/host/include -pipe' CXXFLAGS='-O2 -I/home/user/Desktop/openwrt/staging_dir/host/include -pipe' 'CFLAGS_FOR_TARGET=-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro' 'CXXFLAGS_FOR_TARGET=-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro' 'GOCFLAGS_FOR_TARGET=-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro' --with-headers=/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include --enable-languages=c,c++ --enable-shared --enable-threads --with-slibdir=/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib --enable-plugins --enable-lto --with-libelf=/home/user/Desktop/openwrt/staging_dir/host --disable-libsanitizer
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.3.0 (OpenWrt GCC 12.3.0 r24124-518923178c)
configure:5001: $? = 0
configure:4990: x86_64-openwrt-linux-musl-gcc -V >&5
x86_64-openwrt-linux-musl-gcc: error: unrecognized command-line option '-V'
x86_64-openwrt-linux-musl-gcc: fatal error: no input files
compilation terminated.
configure:5001: $? = 1
configure:4990: x86_64-openwrt-linux-musl-gcc -qversion >&5
x86_64-openwrt-linux-musl-gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
x86_64-openwrt-linux-musl-gcc: fatal error: no input files
compilation terminated.
configure:5001: $? = 1
configure:4990: x86_64-openwrt-linux-musl-gcc -version >&5
x86_64-openwrt-linux-musl-gcc: error: unrecognized command-line option '-version'
x86_64-openwrt-linux-musl-gcc: fatal error: no input files
compilation terminated.
configure:5001: $? = 1
configure:5021: checking whether the C compiler works
configure:5043: x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib conftest.c >&5
configure:5047: $? = 0
configure:5097: result: yes
configure:5100: checking for C compiler default output file name
configure:5102: result: a.out
configure:5108: checking for suffix of executables
configure:5115: x86_64-openwrt-linux-musl-gcc -o conftest -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib conftest.c >&5
configure:5119: $? = 0
configure:5142: result:
configure:5164: checking whether we are cross compiling
configure:5172: x86_64-openwrt-linux-musl-gcc -o conftest -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib conftest.c >&5
configure:5176: $? = 0
configure:5183: ./conftest
./configure: line 5185: ./conftest: No such file or directory
configure:5187: $? = 127
configure:5194: error: in `/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2':
configure:5196: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-pc-linux-musl
ac_cv_c_bigendian=no
ac_cv_c_gettext_without_libintl=yes
ac_cv_c_littleendian=yes
ac_cv_c_long_double=no
ac_cv_conv_longlong_to_float=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=x86_64-openwrt-linux-musl-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include '
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include '
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include '
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=x86_64-openwrt-linux-musl-g++
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib '
ac_cv_env_LIBHTPDEVVERSION_CFLAGS_set=
ac_cv_env_LIBHTPDEVVERSION_CFLAGS_value=
ac_cv_env_LIBHTPDEVVERSION_LIBS_set=
ac_cv_env_LIBHTPDEVVERSION_LIBS_value=
ac_cv_env_LIBHTPMINVERSION_CFLAGS_set=
ac_cv_env_LIBHTPMINVERSION_CFLAGS_value=
ac_cv_env_LIBHTPMINVERSION_LIBS_set=
ac_cv_env_LIBHTPMINVERSION_LIBS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_LUAJIT_CFLAGS_set=
ac_cv_env_LUAJIT_CFLAGS_value=
ac_cv_env_LUAJIT_LIBS_set=
ac_cv_env_LUAJIT_LIBS_value=
ac_cv_env_LUA_CFLAGS_set=
ac_cv_env_LUA_CFLAGS_value=
ac_cv_env_LUA_LIBS_set=
ac_cv_env_LUA_LIBS_value=
ac_cv_env_PCAP_CFLAGS_set=
ac_cv_env_PCAP_CFLAGS_value=
ac_cv_env_PCAP_LIBS_set=
ac_cv_env_PCAP_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=set
ac_cv_env_PKG_CONFIG_LIBDIR_value=/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/pkgconfig:/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/share/pkgconfig
ac_cv_env_PKG_CONFIG_PATH_set=set
ac_cv_env_PKG_CONFIG_PATH_value=/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/pkgconfig:/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/share/pkgconfig
ac_cv_env_PKG_CONFIG_set=set
ac_cv_env_PKG_CONFIG_value=/home/user/Desktop/openwrt/staging_dir/host/bin/pkg-config
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=
ac_cv_env_libhs_CFLAGS_set=
ac_cv_env_libhs_CFLAGS_value=
ac_cv_env_libhs_LIBS_set=
ac_cv_env_libhs_LIBS_value=
ac_cv_env_libhtp_CFLAGS_set=
ac_cv_env_libhtp_CFLAGS_value=
ac_cv_env_libhtp_LIBS_set=
ac_cv_env_libhtp_LIBS_value=
ac_cv_env_libnetfilter_queue_CFLAGS_set=
ac_cv_env_libnetfilter_queue_CFLAGS_value=
ac_cv_env_libnetfilter_queue_LIBS_set=
ac_cv_env_libnetfilter_queue_LIBS_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=
ac_cv_file__dev_zero=yes
ac_cv_func___adjtimex=yes
ac_cv_func___va_copy=no
ac_cv_func__exit=yes
ac_cv_func_bcmp=yes
ac_cv_func_bcopy=yes
ac_cv_func_bzero=yes
ac_cv_func_cimag=yes
ac_cv_func_creal=yes
ac_cv_func_fchmod=yes
ac_cv_func_getaddrinfo=yes
ac_cv_func_getcwd=yes
ac_cv_func_getdomainname=yes
ac_cv_func_getpgrp_void=yes
ac_cv_func_getpwuid_r=yes
ac_cv_func_gettimeofday=yes
ac_cv_func_index=yes
ac_cv_func_lstat=yes
ac_cv_func_lstat_dereferences_slashed_symlink=yes
ac_cv_func_lstat_empty_string_bug=no
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_malloc_works=yes
ac_cv_func_memcmp_clean=yes
ac_cv_func_memcmp_working=yes
ac_cv_func_posix_getgrgid_r=yes
ac_cv_func_posix_getpwuid_r=yes
ac_cv_func_psignal=yes
ac_cv_func_pthread_key_delete=yes
ac_cv_func_realloc_0_nonnull=yes
ac_cv_func_realloc_works=yes
ac_cv_func_rename=yes
ac_cv_func_rindex=yes
ac_cv_func_setgrent_void=yes
ac_cv_func_setlocale=yes
ac_cv_func_setpgrp_void=yes
ac_cv_func_setresuid=no
ac_cv_func_setvbuf_reversed=no
ac_cv_func_stat_empty_string_bug=no
ac_cv_func_stat_ignores_trailing_slash=no
ac_cv_func_strerror=yes
ac_cv_func_strftime=yes
ac_cv_func_utimes=yes
ac_cv_func_va_copy=no
ac_cv_func_vsnprintf=yes
ac_cv_have_accrights_in_msghdr=no
ac_cv_have_broken_snprintf=no
ac_cv_have_control_in_msghdr=yes
ac_cv_have_decl_sys_siglist=no
ac_cv_have_openpty_ctty_bug=yes
ac_cv_have_space_d_name_in_struct_dirent=yes
ac_cv_header_netinet_sctp_h=no
ac_cv_header_netinet_sctp_uio_h=no
ac_cv_host=x86_64-pc-linux-musl
ac_cv_int64_t=yes
ac_cv_lbl_unaligned_fail=no
ac_cv_linux_kernel_pppoe=yes
ac_cv_linux_vers=2
ac_cv_pack_bitfields_reversed=yes
ac_cv_path_LDCONFIG=
ac_cv_path_install='/home/user/Desktop/openwrt/staging_dir/host/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=x86_64-openwrt-linux-musl-gcc
ac_cv_prog_make_make_set=yes
ac_cv_regexec_segfault_emptystr=no
ac_cv_sctp=no
ac_cv_sizeof___int64=0
ac_cv_sizeof_char=1
ac_cv_sizeof_int16_t=2
ac_cv_sizeof_int32_t=4
ac_cv_sizeof_int64_t=8
ac_cv_sizeof_int=4
ac_cv_sizeof_long=8
ac_cv_sizeof_long_int=8
ac_cv_sizeof_long_long=8
ac_cv_sizeof_off_t=8
ac_cv_sizeof_short=2
ac_cv_sizeof_short_int=2
ac_cv_sizeof_size_t=8
ac_cv_sizeof_ssize_t=8
ac_cv_sizeof_u_int16_t=2
ac_cv_sizeof_u_int32_t=4
ac_cv_sizeof_u_int64_t=8
ac_cv_sizeof_uint16_t=2
ac_cv_sizeof_uint32_t=4
ac_cv_sizeof_uint64_t=8
ac_cv_sizeof_unsigned_int=4
ac_cv_sizeof_unsigned_long=8
ac_cv_sizeof_unsigned_long_long=8
ac_cv_sizeof_unsigned_short=2
ac_cv_sizeof_void_p=8
ac_cv_sys_restartable_syscalls=yes
ac_cv_time_r_type=POSIX
ac_cv_type_suseconds_t=yes
ac_cv_uchar=no
ac_cv_uint64_t=yes
ac_cv_uint=yes
ac_cv_ulong=yes
ac_cv_ushort=yes
ac_cv_va_copy=C99
ac_cv_va_val_copy=yes
am_cv_make_support_nested_variables=yes
am_cv_prog_tar_ustar=gnutar
as_cv_unaligned_access=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} '\''/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/missing'\'' aclocal-1.16'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE='#'
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(shell if ( test "x$(V)" = "x0" ); then echo 0; elif ( test "x$(V)" = "x" ); then echo $(AM_DEFAULT_VERBOSITY); else echo 1; fi)'
AR='x86_64-openwrt-linux-musl-gcc-ar'
AUTOCONF='${SHELL} '\''/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/missing'\'' automake-1.16'
AWK='gawk'
BUILD_EBPF_FALSE=''
BUILD_EBPF_TRUE=''
BUILD_FUZZTARGETS_FALSE=''
BUILD_FUZZTARGETS_TRUE=''
BUILD_SHARED_LIBRARY_FALSE=''
BUILD_SHARED_LIBRARY_TRUE=''
BUILD_UNITTESTS_FALSE=''
BUILD_UNITTESTS_TRUE=''
CARGO=''
CARGO_BUILD_TARGET=''
CARGO_HOME='/home/user/Desktop/openwrt/dl/cargo'
CBINDGEN=''
CC='x86_64-openwrt-linux-musl-gcc'
CCDEPMODE=''
CFLAGS='-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include '
CLANG='/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/clang'
CLANG_CFLAGS=''
CONFIGURE_DATAROOTDIR=''
CONFIGURE_LOCALSTATEDIR=''
CONFIGURE_PREFIX=''
CONFIGURE_SYSCONDIR=''
CPP=''
CPPFLAGS='-I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include '
CSCOPE='cscope'
CTAGS='ctags'
CXX='x86_64-openwrt-linux-musl-g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include '
CYGPATH_W='echo'
DEBUG_FALSE=''
DEBUG_TRUE=''
DEBUG_VALIDATION_FALSE=''
DEBUG_VALIDATION_TRUE=''
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ETAGS='etags'
EXEEXT=''
FGREP=''
FILECMD=''
GCC_CFLAGS=''
GREP=''
HAS_FUZZLDFLAGS_FALSE=''
HAS_FUZZLDFLAGS_TRUE=''
HAS_FUZZPCAP_FALSE=''
HAS_FUZZPCAP_TRUE=''
HAVE_CBINDGEN_FALSE=''
HAVE_CBINDGEN_TRUE=''
HAVE_COCCINELLE_CONFIG=''
HAVE_COCCINELLE_FALSE=''
HAVE_COCCINELLE_TRUE=''
HAVE_CURL=''
HAVE_CYGPATH=''
HAVE_CYGPATH_FALSE=''
HAVE_CYGPATH_TRUE=''
HAVE_FETCH_COMMAND_FALSE=''
HAVE_FETCH_COMMAND_TRUE=''
HAVE_GETCONF_CMD=''
HAVE_GIT_CMD=''
HAVE_LUA_FALSE=''
HAVE_LUA_TRUE=''
HAVE_PCAP_CONFIG=''
HAVE_PDFLATEX=''
HAVE_PDFLATEX_FALSE=''
HAVE_PDFLATEX_TRUE=''
HAVE_PKG_CONFIG=''
HAVE_PYTHON=''
HAVE_PYTHON_FALSE=''
HAVE_PYTHON_TRUE=''
HAVE_RUST_FALSE=''
HAVE_RUST_HEADERS_FALSE=''
HAVE_RUST_HEADERS_TRUE=''
HAVE_RUST_TRUE=''
HAVE_RUST_VENDOR_FALSE=''
HAVE_RUST_VENDOR_TRUE=''
HAVE_SURICATA_MAN_FALSE=''
HAVE_SURICATA_MAN_TRUE=''
HAVE_WGET=''
HAVE_WGET_COMMAND_FALSE=''
HAVE_WGET_COMMAND_TRUE=''
HTP_DIR=''
HTP_LDADD=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INSTALL_SURICATA_UPDATE_FALSE=''
INSTALL_SURICATA_UPDATE_TRUE=''
LD='x86_64-openwrt-linux-musl-ld.bfd'
LDFLAGS='-L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib '
LIBHTPDEVVERSION_CFLAGS=''
LIBHTPDEVVERSION_LIBS=''
LIBHTPMINVERSION_CFLAGS=''
LIBHTPMINVERSION_LIBS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIB_FUZZING_ENGINE=''
LIPO=''
LLC='/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/llc'
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
LUAJIT_CFLAGS=''
LUAJIT_LIBS=''
LUA_CFLAGS=''
LUA_INT8=''
LUA_LIBS=''
MAJOR_MINOR=''
MAKEINFO='${SHELL} '\''/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/missing'\'' makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/bin/mkdir -p'
NM='x86_64-openwrt-linux-musl-gcc-nm'
NMEDIT=''
OBJDUMP='x86_64-openwrt-linux-musl-objdump'
OBJEXT=''
OPTIMIZATION_CFLAGS=''
OTOOL64=''
OTOOL=''
PACKAGE='suricata'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='suricata'
PACKAGE_STRING='suricata 7.0.2-dev'
PACKAGE_TARNAME='suricata'
PACKAGE_URL=''
PACKAGE_VERSION='7.0.2-dev'
PATH_SEPARATOR=':'
PCAP_CFLAGS=''
PCAP_LIBS=''
PKG_CONFIG='/home/user/Desktop/openwrt/staging_dir/host/bin/pkg-config'
PKG_CONFIG_LIBDIR='/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/pkgconfig:/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/share/pkgconfig'
PKG_CONFIG_PATH='/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/pkgconfig:/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/share/pkgconfig'
POW_LIB=''
RANLIB='x86_64-openwrt-linux-musl-gcc-ranlib'
RUSTC=''
RUSTUP_HOME_PATH=''
RUST_BUILD_STD_FALSE=''
RUST_BUILD_STD_TRUE=''
RUST_CROSS_COMPILE_FALSE=''
RUST_CROSS_COMPILE_TRUE=''
RUST_FEATURES=''
RUST_LDADD=''
RUST_SURICATA_LIB=''
RUST_SURICATA_LIBDIR=''
RUST_SURICATA_LIBNAME=''
SECCFLAGS=''
SECLDFLAGS=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
SPHINX_BUILD=''
SPHINX_BUILD_FALSE=''
SPHINX_BUILD_TRUE=''
STRIP='x86_64-openwrt-linux-musl-strip'
SURICATA_UPDATE_DIR=''
VERSION='7.0.2-dev'
ac_ct_AR=''
ac_ct_CC='x86_64-openwrt-linux-musl-gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='tar --format=ustar -chf - "$$tardir"'
am__untar='tar -xf -'
bindir='/usr/bin'
build='x86_64-pc-linux-musl'
build_alias=''
build_cpu='x86_64'
build_os='linux-musl'
build_vendor='pc'
datadir='/usr/share'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
e_datadir=''
e_datarulesdir=''
e_defaultruledir=''
e_enable_evelog=''
e_localstatedir=''
e_logcertsdir=''
e_logdir=''
e_logfilesdir=''
e_magic_file=''
e_magic_file_comment=''
e_rundir=''
e_rustdir=''
e_sysconfdir=''
enable_non_bundled_htp=''
exec_prefix='/usr'
have_rustup=''
host='x86_64-pc-linux-musl'
host_alias=''
host_cpu='x86_64'
host_os='linux-musl'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/info'
install_sh='${SHELL} /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/install-sh'
install_suricata_update_reason=''
libdir='${exec_prefix}/lib'
libexecdir='/usr/lib'
libhs_CFLAGS=''
libhs_LIBS=''
libhtp_CFLAGS=''
libhtp_LIBS=''
libnetfilter_queue_CFLAGS=''
libnetfilter_queue_LIBS=''
localedir='${datarootdir}/locale'
localstatedir='/var'
mandir='/usr/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s&$$&&;s&^&&'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
rust_vendor_comment=''
rustup_home=''
sbindir='/usr/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "suricata"
#define PACKAGE_TARNAME "suricata"
#define PACKAGE_VERSION "7.0.2-dev"
#define PACKAGE_STRING "suricata 7.0.2-dev"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "suricata"
#define VERSION "7.0.2-dev"
configure: exit 77
Hmm, indeed from the config.log, it not really clear about the causes. Have you installed all of the prerequisites for your build host (ubuntu)?.
I have posted revised Suricata 7 OpenWrt Package files above on original post, please also replace current previous old one.
I went back and ensured I had all the prerequisites for building and even made sure I could build OpenWrt, those don't seem to be the issue. Yet I am still getting an error when trying to compile with Suricata enabled.
Though it seems with the updated package files I get a different error than before. It's no longer "cannot run C compiled programs", it's now "compiler cannot create executables."
Here's the logs I get:
config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by suricata configure 7.0.2-dev, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ ./configure --target=x86_64-openwrt-linux --host=x86_64-openwrt-linux --build=x86_64-pc-linux-gnu --disable-dependency-tracking --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 --target= --host= --build= --enable-shared --disable-gccmarch-native --disable-gccprofile --with-gnu-ld --with-sysroot=/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl --enable-libmagic --enable-hiredis
## --------- ##
## Platform. ##
## --------- ##
hostname = user-ThinkCentre-M920s
uname -m = x86_64
uname -r = 6.2.0-34-generic
uname -s = Linux
uname -v = #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2
/usr/bin/uname -p = x86_64
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/host/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/hostpkg/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/host/bin/
PATH: /home/user/Desktop/openwrt/staging_dir/host/bin/
PATH: /usr/local/sbin/
PATH: /usr/local/bin/
PATH: /usr/sbin/
PATH: /usr/bin/
PATH: /sbin/
PATH: /bin/
PATH: /usr/games/
PATH: /usr/local/games/
PATH: /snap/bin/
PATH: /snap/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2823: loading site script /home/user/Desktop/openwrt/include/site/x86_64
| #!/bin/sh
| . $TOPDIR/include/site/linux
| ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
| ac_cv_c_bigendian=${ac_cv_c_bigendian=no}
|
| ac_cv_sizeof___int64=0
| ac_cv_sizeof_char=1
| ac_cv_sizeof_int=4
| ac_cv_sizeof_int16_t=2
| ac_cv_sizeof_int32_t=4
| ac_cv_sizeof_int64_t=8
| ac_cv_sizeof_long_int=8
| ac_cv_sizeof_long_long=8
| ac_cv_sizeof_long=8
| ac_cv_sizeof_off_t=8
| ac_cv_sizeof_short_int=2
| ac_cv_sizeof_short=2
| ac_cv_sizeof_size_t=8
| ac_cv_sizeof_ssize_t=8
| ac_cv_sizeof_u_int16_t=2
| ac_cv_sizeof_u_int32_t=4
| ac_cv_sizeof_u_int64_t=8
| ac_cv_sizeof_uint16_t=2
| ac_cv_sizeof_uint32_t=4
| ac_cv_sizeof_uint64_t=8
| ac_cv_sizeof_unsigned_int=4
| ac_cv_sizeof_unsigned_long=8
| ac_cv_sizeof_unsigned_long_long=8
| ac_cv_sizeof_unsigned_short=2
| ac_cv_sizeof_void_p=8
configure:3405: looking for aux files: compile config.guess config.sub ltmain.sh missing install-sh
configure:3418: trying ./
configure:3447: ./compile found
configure:3447: ./config.guess found
configure:3447: ./config.sub found
configure:3447: ./ltmain.sh found
configure:3447: ./missing found
configure:3429: ./install-sh found
configure:3570: checking whether make supports nested variables
configure:3588: result: yes
configure:3621: checking for a BSD-compatible install
configure:3694: result: /home/user/Desktop/openwrt/staging_dir/host/bin/install -c
configure:3705: checking whether build environment is sane
configure:3760: result: yes
configure:3919: checking for a race-free mkdir -p
configure:3963: result: /usr/bin/mkdir -p
configure:3970: checking for gawk
configure:3991: found /usr/bin/gawk
configure:4002: result: gawk
configure:4013: checking whether make sets $(MAKE)
configure:4036: result: yes
configure:4128: checking whether UID '1000' is supported by ustar format
configure:4131: result: yes
configure:4138: checking whether GID '1000' is supported by ustar format
configure:4141: result: yes
configure:4149: checking how to create a ustar tar archive
configure:4160: tar --version
tar (GNU tar) 1.34
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
configure:4163: $? = 0
configure:4203: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
configure:4206: $? = 0
configure:4210: tar -xf - <conftest.tar
configure:4213: $? = 0
configure:4215: cat conftest.dir/file
GrepMe
configure:4218: $? = 0
configure:4232: result: gnutar
configure:4335: checking build system type
configure:4350: result: x86_64-pc-linux-musl
configure:4370: checking host system type
configure:4384: result: x86_64-pc-linux-musl
configure:4425: checking how to print strings
configure:4452: result: printf
configure:4486: checking whether make supports the include directive
configure:4501: make -f confmf.GNU && cat confinc.out
make[3]: Entering directory '/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2'
make[3]: Leaving directory '/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2'
this is the am__doit target
configure:4504: $? = 0
configure:4520: result: yes (GNU style)
configure:4596: checking for gcc
configure:4628: result: x86_64-openwrt-linux-musl-gcc
configure:4981: checking for C compiler version
configure:4990: x86_64-openwrt-linux-musl-gcc --version >&5
x86_64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24124-518923178c) 12.3.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:5001: $? = 0
configure:4990: x86_64-openwrt-linux-musl-gcc -v >&5
Reading specs from /home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/12.3.0/specs
COLLECT_GCC=x86_64-openwrt-linux-musl-gcc
COLLECT_LTO_WRAPPER=/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/libexec/gcc/x86_64-openwrt-linux-musl/12.3.0/lto-wrapper
Target: x86_64-openwrt-linux-musl
Configured with: /home/user/Desktop/openwrt/build_dir/toolchain-x86_64_gcc-12.3.0_musl/gcc-12.3.0/configure --with-bugurl=http://bugs.openwrt.org/ --with-pkgversion='OpenWrt GCC 12.3.0 r24124-518923178c' --prefix=/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-openwrt-linux-musl --with-gnu-ld --enable-target-optspace --disable-libgomp --disable-libmudflap --disable-multilib --disable-libmpx --disable-nls --disable-libssp --without-isl --without-cloog --with-host-libstdcxx=-lstdc++ --with-system-zlib=/home/user/Desktop/openwrt/staging_dir/host --with-zstd=/home/user/Desktop/openwrt/staging_dir/host --with-gmp=/home/user/Desktop/openwrt/staging_dir/host --with-mpfr=/home/user/Desktop/openwrt/staging_dir/host --with-mpc=/home/user/Desktop/openwrt/staging_dir/host --disable-decimal-float --with-diagnostics-color=auto-if-env --enable-__cxa_atexit --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new CFLAGS='-O2 -I/home/user/Desktop/openwrt/staging_dir/host/include -pipe' CXXFLAGS='-O2 -I/home/user/Desktop/openwrt/staging_dir/host/include -pipe' 'CFLAGS_FOR_TARGET=-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro' 'CXXFLAGS_FOR_TARGET=-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro' 'GOCFLAGS_FOR_TARGET=-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro' --with-headers=/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include --enable-languages=c,c++ --enable-shared --enable-threads --with-slibdir=/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib --enable-plugins --enable-lto --with-libelf=/home/user/Desktop/openwrt/staging_dir/host --disable-libsanitizer
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.3.0 (OpenWrt GCC 12.3.0 r24124-518923178c)
configure:5001: $? = 0
configure:4990: x86_64-openwrt-linux-musl-gcc -V >&5
x86_64-openwrt-linux-musl-gcc: error: unrecognized command-line option '-V'
x86_64-openwrt-linux-musl-gcc: fatal error: no input files
compilation terminated.
configure:5001: $? = 1
configure:4990: x86_64-openwrt-linux-musl-gcc -qversion >&5
x86_64-openwrt-linux-musl-gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
x86_64-openwrt-linux-musl-gcc: fatal error: no input files
compilation terminated.
configure:5001: $? = 1
configure:4990: x86_64-openwrt-linux-musl-gcc -version >&5
x86_64-openwrt-linux-musl-gcc: error: unrecognized command-line option '-version'
x86_64-openwrt-linux-musl-gcc: fatal error: no input files
compilation terminated.
configure:5001: $? = 1
configure:5021: checking whether the C compiler works
configure:5043: x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/lib -lintl -L/home/user/Desktop/openwrt/staging_dir/host/lib -lelf conftest.c >&5
/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/12.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld.bfd: cannot find -lintl: No such file or directory
collect2: error: ld returned 1 exit status
configure:5047: $? = 1
configure:5087: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "suricata"
| #define PACKAGE_TARNAME "suricata"
| #define PACKAGE_VERSION "7.0.2-dev"
| #define PACKAGE_STRING "suricata 7.0.2-dev"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "suricata"
| #define VERSION "7.0.2-dev"
| /* end confdefs.h. */
|
| int
| main (void)
| {
|
| ;
| return 0;
| }
configure:5092: error: in `/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2':
configure:5094: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-pc-linux-musl
ac_cv_c_bigendian=no
ac_cv_c_gettext_without_libintl=yes
ac_cv_c_littleendian=yes
ac_cv_c_long_double=no
ac_cv_conv_longlong_to_float=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=x86_64-openwrt-linux-musl-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs '
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include '
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs '
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=x86_64-openwrt-linux-musl-g++
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/lib -lintl -L/home/user/Desktop/openwrt/staging_dir/host/lib -lelf '
ac_cv_env_LIBHTPDEVVERSION_CFLAGS_set=
ac_cv_env_LIBHTPDEVVERSION_CFLAGS_value=
ac_cv_env_LIBHTPDEVVERSION_LIBS_set=
ac_cv_env_LIBHTPDEVVERSION_LIBS_value=
ac_cv_env_LIBHTPMINVERSION_CFLAGS_set=
ac_cv_env_LIBHTPMINVERSION_CFLAGS_value=
ac_cv_env_LIBHTPMINVERSION_LIBS_set=
ac_cv_env_LIBHTPMINVERSION_LIBS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_LUAJIT_CFLAGS_set=
ac_cv_env_LUAJIT_CFLAGS_value=
ac_cv_env_LUAJIT_LIBS_set=
ac_cv_env_LUAJIT_LIBS_value=
ac_cv_env_LUA_CFLAGS_set=
ac_cv_env_LUA_CFLAGS_value=
ac_cv_env_LUA_LIBS_set=
ac_cv_env_LUA_LIBS_value=
ac_cv_env_PCAP_CFLAGS_set=
ac_cv_env_PCAP_CFLAGS_value=
ac_cv_env_PCAP_LIBS_set=
ac_cv_env_PCAP_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=set
ac_cv_env_PKG_CONFIG_LIBDIR_value=/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/pkgconfig:/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/share/pkgconfig
ac_cv_env_PKG_CONFIG_PATH_set=set
ac_cv_env_PKG_CONFIG_PATH_value=/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/pkgconfig:/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/share/pkgconfig
ac_cv_env_PKG_CONFIG_set=set
ac_cv_env_PKG_CONFIG_value=/home/user/Desktop/openwrt/staging_dir/host/bin/pkg-config
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=
ac_cv_env_libhs_CFLAGS_set=
ac_cv_env_libhs_CFLAGS_value=
ac_cv_env_libhs_LIBS_set=
ac_cv_env_libhs_LIBS_value=
ac_cv_env_libhtp_CFLAGS_set=
ac_cv_env_libhtp_CFLAGS_value=
ac_cv_env_libhtp_LIBS_set=
ac_cv_env_libhtp_LIBS_value=
ac_cv_env_libnetfilter_queue_CFLAGS_set=
ac_cv_env_libnetfilter_queue_CFLAGS_value=
ac_cv_env_libnetfilter_queue_LIBS_set=
ac_cv_env_libnetfilter_queue_LIBS_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=
ac_cv_file__dev_zero=yes
ac_cv_func___adjtimex=yes
ac_cv_func___va_copy=no
ac_cv_func__exit=yes
ac_cv_func_bcmp=yes
ac_cv_func_bcopy=yes
ac_cv_func_bzero=yes
ac_cv_func_cimag=yes
ac_cv_func_creal=yes
ac_cv_func_fchmod=yes
ac_cv_func_getaddrinfo=yes
ac_cv_func_getcwd=yes
ac_cv_func_getdomainname=yes
ac_cv_func_getpgrp_void=yes
ac_cv_func_getpwuid_r=yes
ac_cv_func_gettimeofday=yes
ac_cv_func_index=yes
ac_cv_func_lstat=yes
ac_cv_func_lstat_dereferences_slashed_symlink=yes
ac_cv_func_lstat_empty_string_bug=no
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_malloc_works=yes
ac_cv_func_memcmp_clean=yes
ac_cv_func_memcmp_working=yes
ac_cv_func_posix_getgrgid_r=yes
ac_cv_func_posix_getpwuid_r=yes
ac_cv_func_psignal=yes
ac_cv_func_pthread_key_delete=yes
ac_cv_func_realloc_0_nonnull=yes
ac_cv_func_realloc_works=yes
ac_cv_func_rename=yes
ac_cv_func_rindex=yes
ac_cv_func_setgrent_void=yes
ac_cv_func_setlocale=yes
ac_cv_func_setpgrp_void=yes
ac_cv_func_setresuid=no
ac_cv_func_setvbuf_reversed=no
ac_cv_func_stat_empty_string_bug=no
ac_cv_func_stat_ignores_trailing_slash=no
ac_cv_func_strerror=yes
ac_cv_func_strftime=yes
ac_cv_func_utimes=yes
ac_cv_func_va_copy=no
ac_cv_func_vsnprintf=yes
ac_cv_have_accrights_in_msghdr=no
ac_cv_have_broken_snprintf=no
ac_cv_have_control_in_msghdr=yes
ac_cv_have_decl_sys_siglist=no
ac_cv_have_openpty_ctty_bug=yes
ac_cv_have_space_d_name_in_struct_dirent=yes
ac_cv_header_netinet_sctp_h=no
ac_cv_header_netinet_sctp_uio_h=no
ac_cv_host=x86_64-pc-linux-musl
ac_cv_int64_t=yes
ac_cv_lbl_unaligned_fail=no
ac_cv_linux_kernel_pppoe=yes
ac_cv_linux_vers=2
ac_cv_pack_bitfields_reversed=yes
ac_cv_path_LDCONFIG=
ac_cv_path_install='/home/user/Desktop/openwrt/staging_dir/host/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=x86_64-openwrt-linux-musl-gcc
ac_cv_prog_make_make_set=yes
ac_cv_regexec_segfault_emptystr=no
ac_cv_sctp=no
ac_cv_sizeof___int64=0
ac_cv_sizeof_char=1
ac_cv_sizeof_int16_t=2
ac_cv_sizeof_int32_t=4
ac_cv_sizeof_int64_t=8
ac_cv_sizeof_int=4
ac_cv_sizeof_long=8
ac_cv_sizeof_long_int=8
ac_cv_sizeof_long_long=8
ac_cv_sizeof_off_t=8
ac_cv_sizeof_short=2
ac_cv_sizeof_short_int=2
ac_cv_sizeof_size_t=8
ac_cv_sizeof_ssize_t=8
ac_cv_sizeof_u_int16_t=2
ac_cv_sizeof_u_int32_t=4
ac_cv_sizeof_u_int64_t=8
ac_cv_sizeof_uint16_t=2
ac_cv_sizeof_uint32_t=4
ac_cv_sizeof_uint64_t=8
ac_cv_sizeof_unsigned_int=4
ac_cv_sizeof_unsigned_long=8
ac_cv_sizeof_unsigned_long_long=8
ac_cv_sizeof_unsigned_short=2
ac_cv_sizeof_void_p=8
ac_cv_sys_restartable_syscalls=yes
ac_cv_time_r_type=POSIX
ac_cv_type_suseconds_t=yes
ac_cv_uchar=no
ac_cv_uint64_t=yes
ac_cv_uint=yes
ac_cv_ulong=yes
ac_cv_ushort=yes
ac_cv_va_copy=C99
ac_cv_va_val_copy=yes
am_cv_make_support_nested_variables=yes
am_cv_prog_tar_ustar=gnutar
as_cv_unaligned_access=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} '\''/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/missing'\'' aclocal-1.16'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE='#'
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(shell if ( test "x$(V)" = "x0" ); then echo 0; elif ( test "x$(V)" = "x" ); then echo $(AM_DEFAULT_VERBOSITY); else echo 1; fi)'
AR='x86_64-openwrt-linux-musl-gcc-ar'
AUTOCONF='${SHELL} '\''/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/missing'\'' automake-1.16'
AWK='gawk'
BUILD_EBPF_FALSE=''
BUILD_EBPF_TRUE=''
BUILD_FUZZTARGETS_FALSE=''
BUILD_FUZZTARGETS_TRUE=''
BUILD_SHARED_LIBRARY_FALSE=''
BUILD_SHARED_LIBRARY_TRUE=''
BUILD_UNITTESTS_FALSE=''
BUILD_UNITTESTS_TRUE=''
CARGO=''
CARGO_BUILD_TARGET=''
CARGO_HOME='/home/user/Desktop/openwrt/dl/cargo'
CBINDGEN=''
CC='x86_64-openwrt-linux-musl-gcc'
CCDEPMODE=''
CFLAGS='-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs '
CLANG='/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/clang'
CLANG_CFLAGS=''
CONFIGURE_DATAROOTDIR=''
CONFIGURE_LOCALSTATEDIR=''
CONFIGURE_PREFIX=''
CONFIGURE_SYSCONDIR=''
CPP=''
CPPFLAGS='-I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include '
CSCOPE='cscope'
CTAGS='ctags'
CXX='x86_64-openwrt-linux-musl-g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs '
CYGPATH_W='echo'
DEBUG_FALSE=''
DEBUG_TRUE=''
DEBUG_VALIDATION_FALSE=''
DEBUG_VALIDATION_TRUE=''
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ETAGS='etags'
EXEEXT=''
FGREP=''
FILECMD=''
GCC_CFLAGS=''
GREP=''
HAS_FUZZLDFLAGS_FALSE=''
HAS_FUZZLDFLAGS_TRUE=''
HAS_FUZZPCAP_FALSE=''
HAS_FUZZPCAP_TRUE=''
HAVE_CBINDGEN_FALSE=''
HAVE_CBINDGEN_TRUE=''
HAVE_COCCINELLE_CONFIG=''
HAVE_COCCINELLE_FALSE=''
HAVE_COCCINELLE_TRUE=''
HAVE_CURL=''
HAVE_CYGPATH=''
HAVE_CYGPATH_FALSE=''
HAVE_CYGPATH_TRUE=''
HAVE_FETCH_COMMAND_FALSE=''
HAVE_FETCH_COMMAND_TRUE=''
HAVE_GETCONF_CMD=''
HAVE_GIT_CMD=''
HAVE_LUA_FALSE=''
HAVE_LUA_TRUE=''
HAVE_PCAP_CONFIG=''
HAVE_PDFLATEX=''
HAVE_PDFLATEX_FALSE=''
HAVE_PDFLATEX_TRUE=''
HAVE_PKG_CONFIG=''
HAVE_PYTHON=''
HAVE_PYTHON_FALSE=''
HAVE_PYTHON_TRUE=''
HAVE_RUST_FALSE=''
HAVE_RUST_HEADERS_FALSE=''
HAVE_RUST_HEADERS_TRUE=''
HAVE_RUST_TRUE=''
HAVE_RUST_VENDOR_FALSE=''
HAVE_RUST_VENDOR_TRUE=''
HAVE_SURICATA_MAN_FALSE=''
HAVE_SURICATA_MAN_TRUE=''
HAVE_WGET=''
HAVE_WGET_COMMAND_FALSE=''
HAVE_WGET_COMMAND_TRUE=''
HTP_DIR=''
HTP_LDADD=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INSTALL_SURICATA_UPDATE_FALSE=''
INSTALL_SURICATA_UPDATE_TRUE=''
LD='x86_64-openwrt-linux-musl-ld.bfd'
LDFLAGS='-L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/lib -lintl -L/home/user/Desktop/openwrt/staging_dir/host/lib -lelf '
LIBHTPDEVVERSION_CFLAGS=''
LIBHTPDEVVERSION_LIBS=''
LIBHTPMINVERSION_CFLAGS=''
LIBHTPMINVERSION_LIBS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIB_FUZZING_ENGINE=''
LIPO=''
LLC='/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/llc'
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
LUAJIT_CFLAGS=''
LUAJIT_LIBS=''
LUA_CFLAGS=''
LUA_INT8=''
LUA_LIBS=''
MAJOR_MINOR=''
MAKEINFO='${SHELL} '\''/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/missing'\'' makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/bin/mkdir -p'
NM='x86_64-openwrt-linux-musl-gcc-nm'
NMEDIT=''
OBJDUMP='x86_64-openwrt-linux-musl-objdump'
OBJEXT=''
OPTIMIZATION_CFLAGS=''
OTOOL64=''
OTOOL=''
PACKAGE='suricata'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='suricata'
PACKAGE_STRING='suricata 7.0.2-dev'
PACKAGE_TARNAME='suricata'
PACKAGE_URL=''
PACKAGE_VERSION='7.0.2-dev'
PATH_SEPARATOR=':'
PCAP_CFLAGS=''
PCAP_LIBS=''
PKG_CONFIG='/home/user/Desktop/openwrt/staging_dir/host/bin/pkg-config'
PKG_CONFIG_LIBDIR='/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/pkgconfig:/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/share/pkgconfig'
PKG_CONFIG_PATH='/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/pkgconfig:/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/share/pkgconfig'
POW_LIB=''
RANLIB='x86_64-openwrt-linux-musl-gcc-ranlib'
RUSTC=''
RUSTUP_HOME_PATH=''
RUST_BUILD_STD_FALSE=''
RUST_BUILD_STD_TRUE=''
RUST_CROSS_COMPILE_FALSE=''
RUST_CROSS_COMPILE_TRUE=''
RUST_FEATURES=''
RUST_LDADD=''
RUST_SURICATA_LIB=''
RUST_SURICATA_LIBDIR=''
RUST_SURICATA_LIBNAME=''
SECCFLAGS=''
SECLDFLAGS=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
SPHINX_BUILD=''
SPHINX_BUILD_FALSE=''
SPHINX_BUILD_TRUE=''
STRIP='x86_64-openwrt-linux-musl-strip'
SURICATA_UPDATE_DIR=''
VERSION='7.0.2-dev'
ac_ct_AR=''
ac_ct_CC='x86_64-openwrt-linux-musl-gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='tar --format=ustar -chf - "$$tardir"'
am__untar='tar -xf -'
bindir='/usr/bin'
build='x86_64-pc-linux-musl'
build_alias=''
build_cpu='x86_64'
build_os='linux-musl'
build_vendor='pc'
datadir='/usr/share'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
e_datadir=''
e_datarulesdir=''
e_defaultruledir=''
e_enable_evelog=''
e_localstatedir=''
e_logcertsdir=''
e_logdir=''
e_logfilesdir=''
e_magic_file=''
e_magic_file_comment=''
e_rundir=''
e_rustdir=''
e_sysconfdir=''
enable_non_bundled_htp=''
exec_prefix='/usr'
have_rustup=''
host='x86_64-pc-linux-musl'
host_alias=''
host_cpu='x86_64'
host_os='linux-musl'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/info'
install_sh='${SHELL} /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/install-sh'
install_suricata_update_reason=''
libdir='${exec_prefix}/lib'
libexecdir='/usr/lib'
libhs_CFLAGS=''
libhs_LIBS=''
libhtp_CFLAGS=''
libhtp_LIBS=''
libnetfilter_queue_CFLAGS=''
libnetfilter_queue_LIBS=''
localedir='${datarootdir}/locale'
localstatedir='/var'
mandir='/usr/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s&$$&&;s&^&&'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
rust_vendor_comment=''
rustup_home=''
sbindir='/usr/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "suricata"
#define PACKAGE_TARNAME "suricata"
#define PACKAGE_VERSION "7.0.2-dev"
#define PACKAGE_STRING "suricata 7.0.2-dev"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "suricata"
#define VERSION "7.0.2-dev"
configure: exit 77
And here's suricata.log: (part 1)
make[2]: Entering directory '/home/user/Desktop/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/user/Desktop/openwrt/scripts/config'
make[1]: Entering directory '/home/user/Desktop/openwrt'
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/net/suricata'
rm -rf /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2
rm -f /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/stamp/.suricata_installed
rm -f /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/packages/suricata.list
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/net/suricata'
time: package/feeds/packages/suricata/clean#0.14#0.07#0.20
make[1]: Leaving directory '/home/user/Desktop/openwrt'
make[2]: Entering directory '/home/user/Desktop/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/user/Desktop/openwrt/scripts/config'
make[1]: Entering directory '/home/user/Desktop/openwrt'
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/toolchain'
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/boost'
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/libffi'
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/devel/ragel'
make[2]: Entering directory '/home/user/Desktop/openwrt/package/utils/bzip2'
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/lang/rust'
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/devel/ragel'
time: package/feeds/packages/ragel/host-compile#0.08#0.02#0.10
Selected Boost API sysv for architecture x86_64 and cpu type " "
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/libffi'
time: package/feeds/packages/libffi/host-compile#0.15#0.03#0.16
echo "libc" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libatomic" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libstdcpp" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "librt" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.19#0.05#0.24
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/expat'
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/hiredis'
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/libpcap'
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/liblz4'
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/nspr'
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/zlib'
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/yaml'
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/libcap-ng'
make[2]: Entering directory '/home/user/Desktop/openwrt/package/utils/bzip2'
echo "libhiredis" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/hiredis.default.install
echo "libexpat" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/expat.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/hiredis'
time: package/feeds/packages/hiredis/compile#0.16#0.05#0.24
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/expat'
time: package/feeds/packages/expat/compile#0.15#0.06#0.24
echo "libcap-ng" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/libcap-ng.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/libcap-ng'
echo "libpcap" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/libpcap.default.install
echo "liblz4" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/liblz4.default.install
time: package/feeds/packages/libcap-ng/compile#0.15#0.05#0.25
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/libpcap'
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/liblz4'
time: package/libs/libpcap/compile#0.17#0.04#0.25
time: package/feeds/packages/liblz4/compile#0.15#0.05#0.25
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/argp-standalone'
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/musl-fts'
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/jansson'
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/libmd'
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/libnfnetlink'
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/utils/bzip2'
time: package/utils/bzip2/host-compile#0.40#0.07#0.52
echo "libyaml" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/yaml.default.install
echo "nspr" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/nspr.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/yaml'
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/nspr'
time: package/feeds/packages/nspr/compile#0.18#0.06#0.28
time: package/feeds/packages/yaml/compile#0.19#0.05#0.28
make[2]: Entering directory '/home/user/Desktop/openwrt/package/kernel/bpf-headers'
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/lang/luajit'
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/openssl'
echo "zlib" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/zlib.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/zlib'
time: package/libs/zlib/compile#0.18#0.08#0.31
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/utils/xz'
Package/openssl/add-module 1='provider'; 2='legacy'; 3='/usr/lib/ossl-modules' 4=''
MOD_TYPE='provider'; MOD_NAME='legacy'; MOD_DIR='/usr/lib/ossl-modules' OSSL_PKG='libopenssl-legacy'
Package/openssl/add-module 1='engine'; 2='afalg'; 3='/usr/lib/engines-3' 4=''
MOD_TYPE='engine'; MOD_NAME='afalg'; MOD_DIR='/usr/lib/engines-3' OSSL_PKG='libopenssl-afalg'
Package/openssl/add-module 1='engine'; 2='devcrypto'; 3='/usr/lib/engines-3' 4=''
MOD_TYPE='engine'; MOD_NAME='devcrypto'; MOD_DIR='/usr/lib/engines-3' OSSL_PKG='libopenssl-devcrypto'
Package/openssl/add-module 1='engine'; 2='padlock'; 3='/usr/lib/engines-3' 4=''
MOD_TYPE='engine'; MOD_NAME='padlock'; MOD_DIR='/usr/lib/engines-3' OSSL_PKG='libopenssl-padlock'
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/libmd'
time: package/libs/libmd/compile#0.14#0.06#0.29
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/lang/python/python3'
echo "jansson" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/jansson.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/argp-standalone'
time: package/libs/argp-standalone/compile#0.20#0.08#0.33
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/jansson'
time: package/libs/jansson/compile#0.19#0.05#0.32
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/libnet-1.2.x'
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/libpfring'
echo "libbz2" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/bzip2.default.install
echo "liblzma" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/xz.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/utils/xz'
time: package/feeds/packages/xz/compile#0.16#0.07#0.30
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/utils/bzip2'
time: package/utils/bzip2/compile#0.44#0.08#0.62
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/sqlite3'
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/libbsd'
echo "libnfnetlink" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/libnfnetlink.default.install
echo "luajit" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/luajit.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/musl-fts'
time: package/libs/musl-fts/compile#0.28#0.05#0.40
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/libnfnetlink'
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/lang/luajit'
time: package/feeds/packages/luajit/compile#0.18#0.09#0.37
time: package/libs/libnfnetlink/compile#0.23#0.08#0.39
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/libunwind'
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/pcre2'
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/file'
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/openssl'
time: package/libs/openssl/compile#0.30#0.09#0.45
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/elfutils'
echo "libnet-1.2.x" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/libnet-1.2.x.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/libnet-1.2.x'
time: package/feeds/packages/libnet-1.2.x/compile#0.16#0.06#0.32
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/libevent2'
echo "libsqlite3" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/sqlite3.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/sqlite3'
time: package/feeds/packages/sqlite3/compile#0.19#0.05#0.30
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/nss'
echo "libbsd" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/libbsd.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/libbsd'
time: package/libs/libbsd/compile#0.17#0.06#0.34
echo "libmagic" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/file.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/file'
time: package/feeds/packages/file/compile#0.17#0.05#0.32
echo "libpfring" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/libpfring.default.install
echo "kmod-pf-ring" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/libpfring.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/libpfring'
time: package/feeds/packages/libpfring/compile#0.27#0.09#0.48
echo "libpcre2" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/pcre2.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/pcre2'
time: package/libs/pcre2/compile#0.22#0.09#0.42
echo "libunwind" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/libunwind.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/libunwind'
time: package/libs/libunwind/compile#0.23#0.09#0.46
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/lang/python/python3'
time: package/feeds/packages/python3/host-compile#0.42#0.08#0.59
echo "libelf" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/elfutils.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/elfutils'
time: package/libs/elfutils/compile#0.27#0.07#0.41
echo "libevent2" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/libevent2.default.install
echo "libevent2-core" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/libevent2.default.install
make[2]: Entering directory '/home/user/Desktop/openwrt/package/libs/libbpf'
echo "libevent2-pthreads" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/libevent2.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/libevent2'
time: package/libs/libevent2/compile#0.20#0.06#0.28
echo "libbpf" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/libbpf.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/libs/libbpf'
time: package/libs/libbpf/compile#0.14#0.03#0.16
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/boost'
time: package/feeds/packages/boost/host-compile#1.45#0.50#1.60
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/libs/hyperscan'
echo "hyperscan-runtime" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/hyperscan.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/hyperscan'
time: package/feeds/packages/hyperscan/compile#0.13#0.03#0.15
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/lang/rust'
time: package/feeds/packages/rust/host-compile#1.28#1.19#1.77
echo "libnss" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/nss.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/libs/nss'
time: package/feeds/packages/nss/compile#0.51#0.08#0.61
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/kernel/bpf-headers'
time: package/kernel/bpf-headers/compile#1.29#0.37#1.46
make[2]: Entering directory '/home/user/Desktop/openwrt/package/network/utils/xdp-tools'
echo "libxdp" >> /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/pkginfo/xdp-tools.default.install
make[2]: Leaving directory '/home/user/Desktop/openwrt/package/network/utils/xdp-tools'
time: package/network/utils/xdp-tools/compile#0.13#0.04#0.16
suricata.log (part 2):
make[2]: Entering directory '/home/user/Desktop/openwrt/feeds/packages/net/suricata'
touch /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/.prepared_52b42a3e5df9b1f5693de6b27d2d2e08_6664517399ebbbc92a37c5bb081b5c53_check
. /home/user/Desktop/openwrt/include/shell.sh; xzcat /home/user/Desktop/openwrt/dl/suricata-7.0.2.tar.xz | tar -C /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2
Applying /home/user/Desktop/openwrt/feeds/packages/net/suricata/patches/00-fix-soft-float.patch using plaintext:
patching file rust/Cargo.toml.in
Hunk #1 succeeded at 7 with fuzz 2 (offset 3 lines).
touch /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/.prepared_52b42a3e5df9b1f5693de6b27d2d2e08_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/.configured_*
rm -f /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/stamp/.suricata_installed
( 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 -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs" LD="x86_64-openwrt-linux-musl-ld.bfd" 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 CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs " CPPFLAGS="-I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include " LDFLAGS="-L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/lib -lintl -L/home/user/Desktop/openwrt/staging_dir/host/lib -lelf " CLANG="/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/clang" LLC="/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/llc" PATH="/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin:$PATH" cargo install --root /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/host cbindgen ; cd /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2 && 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 -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs" LD="x86_64-openwrt-linux-musl-ld.bfd" 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 CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs " CPPFLAGS="-I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include " LDFLAGS="-L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/lib -lintl -L/home/user/Desktop/openwrt/staging_dir/host/lib -lelf " CLANG="/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/clang" LLC="/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/llc" PATH="/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin:$PATH" ./scripts/bundle.sh ; cd /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2 && 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 -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs" LD="x86_64-openwrt-linux-musl-ld.bfd" 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 CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs " CPPFLAGS="-I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include " LDFLAGS="-L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/lib -lintl -L/home/user/Desktop/openwrt/staging_dir/host/lib -lelf " CLANG="/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/clang" LLC="/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/llc" PATH="/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin:$PATH" ./autogen.sh && 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 -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs" LD="x86_64-openwrt-linux-musl-ld.bfd" 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 CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs " CPPFLAGS="-I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include " LDFLAGS="-L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/lib -lintl -L/home/user/Desktop/openwrt/staging_dir/host/lib -lelf " CLANG="/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/clang" LLC="/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin/llc" PATH="/home/user/Desktop/openwrt/staging_dir/host/llvm-bpf/bin:$PATH" ./configure --target=x86_64-openwrt-linux --host=x86_64-openwrt-linux --build=x86_64-pc-linux-gnu --disable-dependency-tracking --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 --target= --host= --build= --enable-shared --disable-gccmarch-native --disable-gccprofile --with-gnu-ld --with-sysroot=/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl --enable-libmagic --enable-hiredis ; )
Updating crates.io index
Ignored package `cbindgen v0.26.0` is already installed, use --force to override
===> Bundling https://github.com/OISF/libhtp (0.5.45)
Cloning into './libhtp'...
~/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/libhtp ~/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2
From https://github.com/OISF/libhtp
* tag 0.5.45 -> FETCH_HEAD
HEAD is now at 8bdfe7b Update for 0.5.45
~/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2
===> Bundling https://github.com/OISF/suricata-update (1.3.0)
Cloning into './suricata-update.tmp'...
~/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/suricata-update.tmp ~/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2
From https://github.com/OISF/suricata-update
* tag 1.3.0 -> FETCH_HEAD
HEAD is now at 3d8aa15 version, changelog: 1.3.0
~/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2
Found libtoolize
OpenWrt-libtoolize: putting auxiliary files in '.'.
OpenWrt-libtoolize: copying file './ltmain.sh'
OpenWrt-libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
OpenWrt-libtoolize: copying file 'm4/libtool.m4'
OpenWrt-libtoolize: copying file 'm4/ltoptions.m4'
OpenWrt-libtoolize: copying file 'm4/ltsugar.m4'
OpenWrt-libtoolize: copying file 'm4/ltversion.m4'
OpenWrt-libtoolize: copying file 'm4/lt~obsolete.m4'
OpenWrt-libtoolize: 'AC_PROG_RANLIB' is rendered obsolete by 'LT_INIT'
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: adding subdirectory libhtp to autoreconf
autoreconf: Entering directory 'libhtp'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
OpenWrt-libtoolize: putting auxiliary files in '.'.
OpenWrt-libtoolize: copying file './ltmain.sh'
OpenWrt-libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
OpenWrt-libtoolize: copying file 'm4/libtool.m4'
OpenWrt-libtoolize: copying file 'm4/ltoptions.m4'
OpenWrt-libtoolize: copying file 'm4/ltsugar.m4'
OpenWrt-libtoolize: copying file 'm4/ltversion.m4'
OpenWrt-libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
autoreconf: running: /home/user/Desktop/openwrt/staging_dir/host/bin/autoconf --force
configure.ac:89: warning: The macro `AM_PROG_LIBTOOL' is obsolete.
configure.ac:89: You should run autoupdate.
m4/libtool.m4:101: AM_PROG_LIBTOOL is expanded from...
configure.ac:89: the top level
configure.ac:102: warning: The macro `AC_ERROR' is obsolete.
configure.ac:102: You should run autoupdate.
./lib/autoconf/oldnames.m4:34: AC_ERROR is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/headers.m4:89: _AC_CHECK_HEADER_COMPILE is expanded from...
./lib/autoconf/headers.m4:56: AC_CHECK_HEADER is expanded from...
configure.ac:102: the top level
configure.ac:156: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:156: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/iconv.m4:20: AM_ICONV_LINK is expanded from...
m4/iconv.m4:188: AM_ICONV is expanded from...
configure.ac:156: the top level
configure.ac:156: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:156: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/iconv.m4:20: AM_ICONV_LINK is expanded from...
m4/iconv.m4:188: AM_ICONV is expanded from...
configure.ac:156: the top level
configure.ac:156: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:156: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/iconv.m4:188: AM_ICONV is expanded from...
configure.ac:156: the top level
configure.ac:164: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:164: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
configure.ac:164: the top level
configure.ac:188: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:188: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:188: the top level
configure.ac:201: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:201: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:201: the top level
configure.ac:214: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:214: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:214: the top level
configure.ac:226: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:226: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:226: the top level
configure.ac:235: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:235: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:235: the top level
configure.ac:269: warning: AC_OUTPUT should be used without arguments.
configure.ac:269: You should run autoupdate.
autoreconf: running: /home/user/Desktop/openwrt/staging_dir/host/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:86: installing './compile'
configure.ac:89: installing './config.guess'
configure.ac:89: installing './config.sub'
configure.ac:7: installing './install-sh'
configure.ac:7: installing './missing'
htp/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
autoreconf: Leaving directory 'libhtp'
autoreconf: running: libtoolize --copy --force
OpenWrt-libtoolize: putting auxiliary files in '.'.
OpenWrt-libtoolize: copying file './ltmain.sh'
OpenWrt-libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
OpenWrt-libtoolize: copying file 'm4/libtool.m4'
OpenWrt-libtoolize: copying file 'm4/ltoptions.m4'
OpenWrt-libtoolize: copying file 'm4/ltsugar.m4'
OpenWrt-libtoolize: copying file 'm4/ltversion.m4'
OpenWrt-libtoolize: copying file 'm4/lt~obsolete.m4'
OpenWrt-libtoolize: 'AC_PROG_RANLIB' is rendered obsolete by 'LT_INIT'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
autoreconf: running: /home/user/Desktop/openwrt/staging_dir/host/bin/autoconf --force
autoreconf: running: /home/user/Desktop/openwrt/staging_dir/host/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:9: installing './compile'
configure.ac:9: installing './config.guess'
configure.ac:9: installing './config.sub'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
doc/userguide/Makefile.am:47: warning: SPHINX_BUILD was already defined in condition TRUE, which includes condition SPHINX_BUILD ...
configure.ac:2233: ... 'SPHINX_BUILD' previously defined here
src/Makefile.am: installing './depcomp'
autoreconf: Leaving directory '.'
You can now run "./configure" and then "make".
configure: loading site script /home/user/Desktop/openwrt/include/site/x86_64
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /home/user/Desktop/openwrt/staging_dir/host/bin/install -c
checking whether build environment is sane... yes
checking for a race-free 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-pc-linux-musl
checking host system type... x86_64-pc-linux-musl
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... x86_64-openwrt-linux-musl-gcc
checking whether the C compiler works... no
configure: error: in `/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[2]: *** [Makefile:186: /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/.configured_a17fb5ef857664f03cd0ce37cc5ea591] Error 77
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/net/suricata'
time: package/feeds/packages/suricata/compile#22.86#1.13#27.82
ERROR: package/feeds/packages/suricata failed to build.
make[1]: *** [package/Makefile:120: package/feeds/packages/suricata/compile] Error 1
make[1]: Leaving directory '/home/user/Desktop/openwrt'
make: *** [/home/user/Desktop/openwrt/include/toplevel.mk:232: package/suricata/compile] Error 2
Try Libraries->libintl-full checked & Global build settings->Compile with full language support
I still seem to get a compilation error, though now it's back to "cannot run C compiled programs."
The only thing I can think of is there has to be some discrepancy between what I am doing and what needs to be done. Following my footsteps from the start:
1: I cloned OpenWrt
2: Updated the feeds with ./scripts/feeds update -a
3: Applied the hyperscan patch with 21471.patch (I've been building with bleeding edge that has 22339.patch merged already)
4: Dropped suricata and suricata-update into /feeds/packages/net
5: Made sure all packages were indexed with ./scripts/feeds update -a -i
6: Installed all packages ./scripts/feeds install -a
7: Used make menuconfig and selected x86_64, Advanded-->BPF-->Build LLVM, Libraries-->libintl-full, Global Build-->Compile with full language, and Network-->Firewall-->Suricata
8: Then I built with make -j$(nproc) V=sc download world first, and make package/suricata/{clean,compile} -j$(nproc) V=sc 2>&1 | tee suricata.log to build only Suricata when trying changes.
Is there something obviously wrong with this process?
The only differences is I am doing some mods that are unrelated with current suricata and also my build host is debian testing. [EDIT], Also I am mainly using glibc in x86_64.
Can you re-check your /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/config.log, as now you have already selected libintl-full , your config.log should containing different error log even tough at the same generic error "configure: error: C compiler cannot create executables" at suricata.log or compilation log.
Let me try to reproduce in here on vanilla x86_64 config.
Now hopefully fixed with musl compilation issues .
Don't forget to check CONFIG_KERNEL_XDP_SOCKETS .
Okay, seems like we're making progress as it's now at least attempting to compile.
Though it seems like it's running into trying to check a bad directory. It appears to be looking for:
/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libnet.so
Which seems to be repeating the first part of the staging directory...
/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/12.3.0/../../../../x86_64-openwrt-linux-musl/bin/ar: `u' modifier ignored since `D' is the default (see `U')
x86_64-openwrt-linux-musl-gcc-ranlib libsuricata_c.a
/bin/bash ../libtool --tag=CC --mode=link x86_64-openwrt-linux-musl-gcc -Wextra -Werror-implicit-function-declaration -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -DLOCAL_STATE_DIR=\"/var\" -Wall -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wwrite-strings -Wbad-function-cast -Wformat-security -Wno-format-nonliteral -Wmissing-format-attribute -funsigned-char -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libiconv-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs -fPIC -std=c11 -I./../rust/gen -I./../rust/dist -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libiconv-full/lib -Wl,-rpath-link=/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libiconv-full/lib -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/lib -Wl,-rpath-link=/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/lib -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/lib -lintl -L/home/user/Desktop/openwrt/staging_dir/host/lib -lelf -rdynamic -o suricata main.o libsuricata_c.a ../rust/target/x86_64-unknown-linux-musl/release/libsuricata_rust.a ../libhtp/htp/libhtp.la -ldl -lrt -lm -llz4 -levent_pthreads -levent -lhiredis -lmagic -lunwind -lcap-ng -liconv -lbpf -lxdp -lelf -lpcap -lnet -ljansson -lpthread -lyaml -lhs -lpcre2-8 -lz -L/usr/lib -lhs -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib -lpcap
OpenWrt-libtool: link: x86_64-openwrt-linux-musl-gcc -Wextra -Werror-implicit-function-declaration -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -DLOCAL_STATE_DIR=\"/var\" -Wall -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wwrite-strings -Wbad-function-cast -Wformat-security -Wno-format-nonliteral -Wmissing-format-attribute -funsigned-char -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2=suricata-7.0.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z -Wl,now -Wl,-z -Wl,relro -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libiconv-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include -I/home/user/Desktop/openwrt/staging_dir/host/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/include -I/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/include/hs -fPIC -std=c11 -I./../rust/gen -I./../rust/dist -fuse-ld=bfd -znow -zrelro -Wl,-rpath-link=/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libiconv-full/lib -Wl,-rpath-link=/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/lib -rdynamic -o .libs/suricata main.o -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libiconv-full/lib -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libintl-full/lib -L/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib -L/home/user/Desktop/openwrt/staging_dir/host/lib libsuricata_c.a ../rust/target/x86_64-unknown-linux-musl/release/libsuricata_rust.a ../libhtp/htp/.libs/libhtp.so -lintl -ldl -lrt -lm -llz4 -levent_pthreads -levent -lhiredis -lmagic -lunwind -lcap-ng -liconv -lbpf -lxdp -lelf /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libnet.so -ljansson -lpthread -lyaml -lpcre2-8 -lz -L/usr/lib -lhs -lpcap -Wl,-rpath -Wl,/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib
/home/user/Desktop/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/12.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld.bfd: cannot find /home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/libnet.so: No such file or directory
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:2859: suricata] Error 1
make[5]: Leaving directory '/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/src'
make[4]: *** [Makefile:2684: all] Error 2
make[4]: Leaving directory '/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/src'
make[3]: *** [Makefile:494: all-recursive] Error 1
make[3]: Leaving directory '/home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2'
make[2]: *** [Makefile:186: /home/user/Desktop/openwrt/build_dir/target-x86_64_musl/suricata-7.0.2/.built] Error 2
make[2]: Leaving directory '/home/user/Desktop/openwrt/feeds/packages/net/suricata'
time: package/feeds/packages/suricata/compile#703.38#41.37#206.41
ERROR: package/feeds/packages/suricata failed to build.
make[1]: *** [package/Makefile:120: package/feeds/packages/suricata/compile] Error 1
make[1]: Leaving directory '/home/user/Desktop/openwrt'
make: *** [/home/user/Desktop/openwrt/include/toplevel.mk:232: package/suricata/compile] Error 2
In my build host, suricata 7 built fine without error as such above.
I need your full config.log.
But beforehand try this change : in Suricata Makefile :
TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib -lnet -L$(STAGING_DIR)/usr/lib/libintl-full/lib -lintl -L$(STAGING_DIR_HOST)/lib -lelf
Also check the availability of libnet* in "/home/user/Desktop/openwrt/staging_dir/target-x86_64_musl/usr/lib/"
I'm still having the same issue as my last post.
I was able to confirm the existence of libnet* in the required location, so that does not appear to be the issue.
Here's the config.log you requested:
https://uploadnow.io/f/hlRFh69