CurlyMoo
CurlyMoo
As you can see here, you should not only preload the shared library, but also compile with it: ``` gcc -o test test.c ./libpilight.so ./libgpio.so -I../libs -lwiringx ```
No, not at the moment. Libgpio.so was only preloaded. But because we added unsupported wiringx functions we also need to compile with it.
No, because this feature is only of interest in a unittest environment.
I've changed the cmakescript so it uses libgpio.so as i intended it to be in this discussion. ``` # readelf -d ./pilight-unittest Dynamic section at offset 0xff060 contains 36 entries:...
Are there more users that can confirm these changes?
> This PR ist just for show the problem here: That's fine It's just hard to help you with the issue when there are pieces missing. I see the protocol...
You forgot one spot: https://github.com/pilight/pilight/blob/master/libs/pilight/protocols/protocol.c#L41 https://github.com/pilight/pilight/blob/master/libs/pilight/protocols/protocol.c#L101
Does the `validate` succeed?
Can you also do a PR on the rewrite branch including a unit test. A good reference PR can be found here: https://github.com/pilight/pilight/pull/426