On Wed, 30 Aug 2023 at 18:55, andy pugh <bodge...@gmail.com> wrote: > > The "-o ../bin/rtapi_app" indicates that we're building rtapi_app from a > > bunch of object files and libraries. Is it really rtapi_app that needs > > to be linked against libgpiod, isn't it the hal_gpiod driver? > > Adding the -lgpiod to rtapi_app is what fixed the same problem on Buster. > (Note that it all works just fine on Buster, just not bookworm. This > could be a gcc / c++ version difference) > > It is possible that hal_gpio _also_ needs a -lgpiod though I am not > sure how to arrange that.
It seems that the answer was to move $(LDFLAGS) to the end of the list in a couple of places. hal_gpio.so seems to need the library in Bookworm, and it seems that rtapi_app doesn't. But for whatever reason the converse seems to be true with Buster. This isn't a problem, as both modules get the LDFLAGS so can link it if they need to, in both OSes. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers