After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 779980 - json-glib 1.2.4 autotools build broken
json-glib 1.2.4 autotools build broken
Status: RESOLVED FIXED
Product: json-glib
Classification: Core
Component: Core
1.2.x
Other All
: Normal critical
: ---
Assigned To: json-glib-maint
json-glib-maint
Depends on:
Blocks:
 
 
Reported: 2017-03-13 13:36 UTC by Tom Schoonjans
Modified: 2017-03-13 15:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tom Schoonjans 2017-03-13 13:36:53 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).
Comment 1 Emmanuele Bassi (:ebassi) 2017-03-13 15:36:40 UTC
Thanks for the bug report.

I re-rolled a new release that should fix this.
Comment 2 Tom Schoonjans 2017-03-13 15:53:09 UTC
1.2.6 works fine. Many thanks for the quick fix!