GOBJECT_INTROSPECTION_CHECK syntax error on configure
Asked Answered
T

1

8

On "./configure" of an open source project I get:

user agent OS = Linux
./configure: line 13957: syntax error near unexpected token 0.9.3'
./configure: line 13957: GOBJECT_INTROSPECTION_CHECK(0.9.3)'
make: *** [config.status] Error 2

Ubuntu 12.04 package "gobject-introspection" and "libgirepository1.0-dev" are present. Removing the GOBJECT_INTROSPECTION_CHECK line allows configure to complete, but the project fails a dependency later.

How can I get past this configure step cleanly? Googling for this issue shows bugs filed against numerous OS projects for this same blocking issue, but the usual answer is "install gobject-introspection".

Tonsure answered 5/9, 2014 at 18:2 Comment(2)
Did you run an autogen.sh or similar script to generate configure? Did you do that before you installed the gobject-introspection package? Does re-running whatever you ran let configure work if you try it again after?Amok
That's it. I needed to run autogen a second time. Post an answer and take credit @EtanReisnerTonsure
A
13

As the OP discovered on his own he had to install the gobject-introspection package to get the m4 macros that were being used.

The error message has the raw macro in it, as configure scripts are generated from configure.in/configure.ac files via m4/etc the fact that the raw macro is in the output file indicates that the macro did not get translated at generation time.

The gobject-introspection m4 files were apparently installed after autogen.sh (or equivalent) was run to generate the configure script. Re-running the autogen.sh script should regenerate the configure script and run the macro correctly.

Amok answered 5/9, 2014 at 23:20 Comment(1)
I don't know the details, but I had to install also libgirepository1.0-dev (According to this thread)Dilapidated

© 2022 - 2024 — McMap. All rights reserved.