[gobolinux-users] Failed to compile libmng (1.0.10)

Daniele Maccari gobo.users at gmail.com
Thu Feb 7 05:26:55 NZDT 2008

Thomas Queste wrote:
> I failed to compile libmng.
> The error is :
>   configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
> or
>   Makefile.am:12: Libtool library used but `LIBTOOL' is undefined
> I don't know what to to in this case. Any idea ?
> Full stack :
> ------------------------------------------
> gobo at Gobo ~]Compile libmng
> Compile: Locating a recipe for libmng ...
> Compile: Found recipe for libmng
> GetRecipe: Trying to get /Files/Compile/Recipes/LibMNG/1.0.10-r1
> Compile: Recipe placed in /Files/Compile/Recipes/LibMNG/1.0.10-r1
> Compile: Checking dependencies...
> Compile: Compiling LibMNG version 1.0.10, revision r1.
> Compile: Directory '/Files/Compile/Sources/libmng-1.0.10' already exists.
> Compile: What to do? [R]emove and reunpack/[B]ackup and reunpack/[U]se
> it/[C]ancel.
> r
> Compile: Unpacking file /Files/Compile/Archives/libmng-1.0.10.tar.gz...
> aclocal: aclocal: file `/Programs/Automake/1.10.1/share/aclocal/pilot-link.m4'
> does not exist
> configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
> configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
> configure.in: that aclocal.m4 is present in the top-level directory,
> configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
> configure.in:23: installing `./install-sh'
> Makefile.am:12: Libtool library used but `LIBTOOL' is undefined
> Makefile.am:12:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
> Makefile.am:12:   to `configure.in' and run `aclocal' and `autoconf' again.
> Makefile.am:12:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
> Makefile.am:12:   its definition is in aclocal's search path.
> configure.in:9: error: possibly undefined macro: AM_INIT_AUTOMAKE
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> configure.in:18: error: possibly undefined macro: AM_C_PROTOTYPES
> configure.in:22: error: possibly undefined macro: AM_PROG_LIBTOOL
> PrepareProgram: Preparing...
> PrepareProgram: Autoconf configure script detected.
> ./configure: line 1700: syntax error near unexpected token `libmng,'
> ./configure: line 1700: `AM_INIT_AUTOMAKE(libmng, 1.0.9)'
> PrepareProgram: configure failed.
> Compile: Preparation step failed.
> ------------------------------------------
> Thanks,
> Thomas
I experienced the same problem not long ago, and solved by installing 
the official package :D
This of course is just a fallback solution, but I couldn't find what the 
problem is, since AM_INIT_AUTOMAKE is actually called in the config.in file.

More information about the gobolinux-users mailing list