Suricata 6.0.0.4: Build failure with --enable-debug

Hi,
I am currently using Suricata 6.0.4 version. i need to build with --enable-debug option to get “SCLogDebug(”“)” messages. when i enable --enable-debug option build failure occurs.

suricata makefile searching for rust/target/debug/libsuricata.a where as it got generated in rust/target/release/libsuricata.a

Error:
make[2]: *** No rule to make target ‘…/rust/target/aarch64-cnos-linux/debug/libsuricata.a’, needed by ‘suricata’. Stop.
Makefile:1965: recipe for target ‘all’ failed
make[1]: *** [all] Error 2

where as libsuricata.a gnerated in directory rust/target/release/
enable-debug option not honored by rust makefile.

First of all, 6.0.10 is out and we highly recommend to use that version.

How do you run the ./configure and make command?

i use yocto bitbake recipe to trigger suricata configure and make

http://layers.openembedded.org/layerindex/recipe/177129/
recipe file: suricata_6.0.6.bb « suricata « recipes-ids - meta-security - Security tools for Internet connected devices

Well I see this custom patch removing rust parts fixup.patch « files « suricata « recipes-ids - meta-security - Security tools for Internet connected devices so in that case I would contact the maintainer of this recipe.

I would recommend trying your own build based on our official release if you want to have debug. Otherwise it’s a bit hard to support customized build like this recipe without more background on yocto.