midgardproject / midgard-core

The base library of the Midgard Content Repository
http://midgard-project.org/docs/
Other
37 stars 6 forks source link

Syntax error when running autogen #119

Open flack opened 13 years ago

flack commented 13 years ago

When running

./autogen.sh --prefix=/usr --with-dbus-support --enable-introspection=no

on current ratatoskr, I get

checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gobject-introspection... /var/repos/midgard-core/configure: line 2887: syntax error near unexpected token `gobject-introspection-1.0,,'
/var/repos/midgard-core/configure: line 2887: `            PKG_CHECK_EXISTS(gobject-introspection-1.0,,'

Run `make` to compile

Since this is a fresh server, I'm sure I'm just missing a required package, but it still doesn't look like this is supposed to happen (also, which package is missing? Server is Debian 6 AMD64).

piotras commented 13 years ago

Did you try to install packages from dev repo? http://download.opensuse.org/repositories/home:/midgardproject:/ratatoskr-dev/Debian_6.0/amd64/

Not sure yet, but it looks like some autoconf issue or introspection.m4 file.

flack commented 13 years ago

I try to avoid the deb packages because there's always a time lag, and so far, every installation I did had to switch to the git version sooner or later to test fixes for some issues, so I'd like to use the git version on this machine right from the start.

BTW: Is there a checklist of dependencies somewhere?

piotras commented 13 years ago

As of today, debs == git version.

The dependencies list (for midgard-core) is defined in configure script:

PKG_CHECK_MODULES(MIDGARD, glib-2.0 gobject-2.0 libxml-2.0 libgda-4.0 $dbus_libs)

The error you have comes from introspection macro. Probably it's located in '/usr/share/aclocal/introspection.m4'. You can copy it to midgard-core's 'm4' directory.

flack commented 13 years ago

I played around a little and AFAICT the problem was that pkg-config was not installed. after installing it, it now shows me which packages are missing.

So no pkg-config leads to syntax error