When adding the protocol file in version 7.0.6, an error occurred and there was no output

I will answer the first question first.

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var

These options, when modify code, will not change the output of s7comm.rs.
but,

./configure

This way, it is possible to print out the hexadecimal content of the data packet. Changes to the code will also change the output.

The second question.
I want to introduce a protocol template and print out the contents of the traffic packet.This is what I currently want to do. The next step is to parse the traffic and output it to eve.json.