GNOME Bugzilla – Bug 779980
json-glib 1.2.4 autotools build broken
Last modified: 2017-03-13 15:53:09 UTC
Just tried building the json-glib 1.2.4 release on Mac OS X using the autotools scripts resulted in the following error: /bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DPREFIX=\""/usr/local/Cellar/json-glib/1.2.4"\" -DLIBDIR=\""/usr/local/Cellar/json-glib/1.2.4/lib"\" -DJSON_LOCALEDIR=\""/usr/local/Cellar/json-glib/1.2.4/share/locale"\" -DJSON_COMPILATION=1 -DG_LOG_DOMAIN=\"Json\" -I.. -I.. -DJSON_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/usr/local/Cellar/pcre/8.39/include -I/usr/local/Cellar/glib/2.51.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.51.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -g -O2 -c -o libjson_glib_1_0_la-json-enum-types.lo `test -f 'json-enum-types.c' || echo './'`json-enum-types.c clang -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -DJSON_LOCALEDIR=\""/usr/local/Cellar/json-glib/1.2.4/share/locale"\" -D_REENTRANT -I/usr/local/Cellar/pcre/8.39/include -I/usr/local/Cellar/glib/2.51.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.51.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -g -O2 -c -o json_glib_validate-json-glib-validate.o `test -f 'json-glib-validate.c' || echo './'`json-glib-validate.c clang -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -DJSON_LOCALEDIR=\""/usr/local/Cellar/json-glib/1.2.4/share/locale"\" -D_REENTRANT -I/usr/local/Cellar/pcre/8.39/include -I/usr/local/Cellar/glib/2.51.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.51.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -g -O2 -c -o json_glib_format-json-glib-format.o `test -f 'json-glib-format.c' || echo './'`json-glib-format.c cp -f json-glib.pc json-glib-1.0.pc libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DPREFIX=\"/usr/local/Cellar/json-glib/1.2.4\" -DLIBDIR=\"/usr/local/Cellar/json-glib/1.2.4/lib\" -DJSON_LOCALEDIR=\"/usr/local/Cellar/json-glib/1.2.4/share/locale\" -DJSON_COMPILATION=1 -DG_LOG_DOMAIN=\"Json\" -I.. -I.. -DJSON_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/usr/local/Cellar/pcre/8.39/include -I/usr/local/Cellar/glib/2.51.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.51.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -g -O2 -c json-enum-types.c -fno-common -DPIC -o .libs/libjson_glib_1_0_la-json-enum-types.o json-enum-types.c:12:10: fatal error: '../../json-glib/json-parser.h' file not found #include "../../json-glib/json-parser.h" ^ 1 error generated. make[3]: *** [libjson_glib_1_0_la-json-enum-types.lo] Error 1 make[2]: *** [install-recursive] Error 1 make[1]: *** [install] Error 2 make: *** [install-recursive] Error 1 following the standard invocation: ./configure make install Looks like it went looking one level too deep for the header file. The meson build system is currently not a suitable alternative for us due to its incompatibilities with the libtool versioning system (though that is being worked on).
Thanks for the bug report. I re-rolled a new release that should fix this.
1.2.6 works fine. Many thanks for the quick fix!