On Mon, May 1, 2023 at 10:35 AM David Pirotte <da...@altosw.be> wrote:
> Hi Aleix, > > Hi there! > > Making install in libg-golf > > > > CC libg_golf_la-gg-ffi.lo > > CC libg_golf_la-gg-utils.lo > > CC libg_golf_la-gg-glib.lo > > CC libg_golf_la-gg-gobject.lo > > CC libg_golf_la-gg-callback.lo > > CC libg_golf_la-gg-test-suite.lo > > CC libg_golf_la-g-golf.lo > > CCLD libg-golf.la > > Undefined symbols for architecture arm64: > > "_ffi_prep_cif", referenced from: > > _gg_ffi_prep_cif in libg_golf_la-gg-ffi.o > > (maybe you meant: _gg_ffi_prep_cif) > > ld: symbol(s) not found for architecture arm64 > > clang: error: linker command failed with exit code 1 (use -v to see > > invocation) > > The gg-ffi.c[h] files were changed after 0.8.0-a.2, introducing those > new functions, see commit 15e689d3446632d4a78e4b02c20495b4b0a4ba22 > Jan the 16th 2023. > > I would recommend to uninstall g-golf, clear your cache(s), clear the > build repo and try again. > > I cleaned everything up and had the same issue. This time I investigated a bit. The Makefile.am refers to FFI_CFLAGS and FFI_LIBS, but I don't see any reference to them and there's no PKG_CHECK_MODULES or anything that could define those in configure.ac or any m4 macro. Adding PKG_CHECK_MODULES line solved the issue: PKG_CHECK_MODULES(FFI, libffi >= 3.3.0) In 0.8.0-a.2 I guess libffi was really not used yet and as long as you had the header file you were fine. Let me know if this makes sense or if I'm missing something. Thank you! Aliex