Thanks, I also opened an issue for Gpiod.jl. In there I reported on how to compile version 2.2.1. It successfully compiled but now the write function is giving me an error. From the comment above I recompiled libgpiod from version 2.2 and now all is well. Thanks for the information on the minimal interface. This is not a problem with my application but is good to know.
Since it seems that Gpiod.jl is specific to the PI and that it is specific to libgpiod version 2.2, I am wondering if we can bypass binary builder and just put the libgpiod.so file in the src directory of Gpiod. That is easy to do and will make Gpiod.jl just work.