Comment 3 for bug 1866057

Revision history for this message
Alexei (386th) wrote :

>> 4. Gsymcheck linking failed. 17 undefined reference errors when linking of gsymcheck

> Which C compiler did you use?
> Could you please try if the following fix works?

Clang 8.0.1 is used!

It seems Your fix works, but I cannot test it, since I simply don't know how to regenerate Makefiles after modifying .am files (automake wants configure.ac, running it from root dir does nothing in subdirs)... :( BUT! Problem was solved by manually adding $(GIO_LIBS) and $(GIO_CFLAGS) to corresponding Makefiles, so I consider this patch will work. After I fix gsymcheck, same problem appeared with the gnetlist-legacy, then with utils/gschlas... It seems ALL .am files in all 'src' subdirs must be modified.

--- a/gsymcheck/src/Makefile.am
+++ b/gsymcheck/src/Makefile.am
@@ -19,3 +19,3
-gsymcheck_CFLAGS = $(GCC_CFLAGS) $(MINGW_CFLAGS) $(GLIB_CFLAGS) \
+gsymcheck_CFLAGS = $(GCC_CFLAGS) $(MINGW_CFLAGS) $(GLIB_CFLAGS) $(GIO_CFLAGS) \
        $(GUILE_CFLAGS) $(GDK_PIXBUF_CFLAGS)
-gsymcheck_LDFLAGS = $(GLIB_LIBS) $(GUILE_LIBS) $(GDK_PIXBUF_LIBS)
+gsymcheck_LDFLAGS = $(GLIB_LIBS) $(GIO_LIBS) $(GUILE_LIBS) $(GDK_PIXBUF_LIBS)