No. I am willing to do whatever you need to me to help, but keep in mind my knowledge base is limited. Allow and indulge some stupid questions, and I’ll do what I can.
For example. One of the complicating issues is going to be the OpenWrt environment. I can make the connections between the build system and OpenWrt. I have it building with -g3 and -ggdb3, and --enable-debug. Consistently, when I run gdb on suricata (
gdb --args suricata -c /etc/suricata/suricata.yaml -i eth0) it tells me:
Reading symbols from suricata...
(No debugging symbols found in suricata)
Starting program: /usr/bin/suricata -v -c /etc/suricata/suricata.yaml -i eth0
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Now, I’m building with the right flags, but it can’t find symbols (no
suricata.sym is generated. Is it being created by the build system and I’m just failing to copy it over? I get the same error when I try
suricata --dump-features, and it always seems to error at
Below is what I’m moving over to the device (and where). All that is important to know is that
$(PKG_INSTALL_DIR) is the buildroot for what was installed via
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/suricata $(1)/usr/bin/suricata
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/suricatactl $(1)/usr/bin/suricatactl
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/suricatasc $(1)/usr/bin/suricatasc
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
$(CP) -r $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
$(CP) -r $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
$(CP) $(PKG_BUILD_DIR)/suricata.yaml \
You can see my attached build log for the gritty details.
suricata6.log.tgz (36.8 KB)