#1253 compiling of dune core modules fail with automake 1.13 and libtool 2.4.2
Metadata
Property | Value |
---|---|
Reported by | arya fallahi (arya.fallahi@gmail.com) |
Reported at | Feb 15, 2013 13:24 |
Type | Bug Report |
Version | 2.2 |
Operating System | Linux |
Last edited by | Markus Blatt (markus@dr-blatt.de) |
Last edited at | Feb 15, 2013 14:20 |
Closed by | Markus Blatt (markus@dr-blatt.de) |
Closed at | Feb 15, 2013 14:20 |
Closed in version | Unknown |
Resolution | Not a bug |
Comment | Seems to have been invalid. |
Description
Dear Dune support team,
Trying to install dune on a server, I faced with a problem which I would like to first ask you before changing the configure files in Dune.
I downloaded the latest version of dune using svn. Particularly for dune-common where I received the problem, I have:
svn info dune-common Path: dune-common URL: https://svn.dune-project.org/svn/dune-common/branches/release-2.2 Repository Root: https://svn.dune-project.org/svn/dune-common Repository UUID: 419231ca-4411-0410-aba2-fc6cf8c4f609 Revision: 7124 Node Kind: directory Schedule: normal Last Changed Author: mblatt Last Changed Rev: 7109 Last Changed Date: 2013-02-07 13:44:27 +0100 (Thu, 07 Feb 2013)
the version of libtool and automake I am also using is:
libtool --version libtool (GNU libtool) 2.4.2 Written by Gordon Matzigkeit gord@gnu.ai.mit.edu, 1996
automake --version automake (GNU automake) 1.13
when I first tried to compile dune, I received the following error message:
autoheader: error: AC_CONFIG_HEADERS not found in configure.ac --- Failed to build dune-common ---
Based on the quote from "info automake optional", which returns:
AC_CONFIG_HEADERS' Automake will generate rules to rebuild these headers. Older versions of Automake required the use of
AM_CONFIG_HEADER' (*note
Macros::); this is no longer the case today.
I changed the AM_CONFIG_HEADER to AC_CONFIG_HEADER in configure.ac by myself. However, I then received the following error message:
--- going to build dune-common dune-geometry dune-grid dune-istl dune-localfunctions dune-grid-howto ---
--- calling all for dune-common ---
--- calling autogen for dune-common ---
Found am directory /afs/desy.de/user/a/afallahi/workspace/dune-common/am
--> dunedoxynize...
Generating doc/doxygen/Doxyfile.in from
global style
and dune-common config
... done
--> libtoolize...
libtoolize: putting auxiliary files in .'. libtoolize: linking file
./ltmain.sh'
libtoolize: You should add the contents of the following files to aclocal.m4': libtoolize:
/tools/libtool-2.4.2/share/aclocal/libtool.m4'
libtoolize: /tools/libtool-2.4.2/share/aclocal/ltoptions.m4' libtoolize:
/tools/libtool-2.4.2/share/aclocal/ltversion.m4'
libtoolize: /tools/libtool-2.4.2/share/aclocal/ltsugar.m4' libtoolize:
/tools/libtool-2.4.2/share/aclocal/lt~obsolete.m4'
libtoolize: Remember to add LT_INIT' to configure.ac. libtoolize: Consider adding
AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
--> writing /afs/desy.de/user/a/afallahi/workspace/dune-common/dependencies.m4
for dune-common 2.2.1beta1 dune-devel@dune-project.org
requires
suggests
--> aclocal...
configure.ac:13: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_all.m4:51: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_DISABLE_SHARED is m4_require'd but not m4_defun'd
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_all.m4:51: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_all.m4:51: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_common.m4:78: DUNE_COMMON_CHECKS is expanded from...
dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_all.m4:51: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_common.m4:78: DUNE_COMMON_CHECKS is expanded from...
dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_all.m4:51: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_all.m4:51: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_DISABLE_SHARED is m4_require'd but not m4_defun'd
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_all.m4:51: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_all.m4:51: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_common.m4:78: DUNE_COMMON_CHECKS is expanded from...
dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_all.m4:51: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_common.m4:78: DUNE_COMMON_CHECKS is expanded from...
dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
/afs/desy.de/user/a/afallahi/workspace/dune-common/m4/dune_all.m4:51: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
--> autoheader...
configure.ac:13: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
aclocal.m4:2015: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_DISABLE_SHARED is m4_require'd but not m4_defun'd
aclocal.m4:2015: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd
aclocal.m4:2015: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
aclocal.m4:2257: DUNE_COMMON_CHECKS is expanded from...
dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
aclocal.m4:2015: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd
aclocal.m4:2257: DUNE_COMMON_CHECKS is expanded from...
dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
aclocal.m4:2015: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
--> automake...
configure.ac:13: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
aclocal.m4:2015: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_DISABLE_SHARED is m4_require'd but not m4_defun'd
aclocal.m4:2015: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd
aclocal.m4:2015: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
aclocal.m4:2257: DUNE_COMMON_CHECKS is expanded from...
dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
aclocal.m4:2015: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd
aclocal.m4:2257: DUNE_COMMON_CHECKS is expanded from...
dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
aclocal.m4:2015: DUNE_CHECK_ALL is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and will soon be removed.
configure.ac:13: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:13: and use '(MKDIR_P)' instead of '
(mkdir_p)'in your Makefile.am files.
configure.ac:13: installing './config.guess' configure.ac:13: installing './config.sub' configure.ac:5: installing './install-sh' configure.ac:5: installing './missing' dune/common/Makefile.am:6: error: Libtool library used but 'LIBTOOL' is undefined dune/common/Makefile.am:6: The usual way to define 'LIBTOOL' is to add 'LT_INIT' dune/common/Makefile.am:6: to 'configure.ac' and run 'aclocal' and 'autoconf' again. dune/common/Makefile.am:6: If 'LT_INIT' is in 'configure.ac', make sure dune/common/Makefile.am:6: its definition is in aclocal's search path. dune/common/Makefile.am: installing './depcomp' parallel-tests: installing './test-driver' lib/Makefile.am:8: error: Libtool library used but 'LIBTOOL' is undefined lib/Makefile.am:8: The usual way to define 'LIBTOOL' is to add 'LT_INIT' lib/Makefile.am:8: to 'configure.ac' and run 'aclocal' and 'autoconf' again. lib/Makefile.am:8: If 'LT_INIT' is in 'configure.ac', make sure lib/Makefile.am:8: its definition is in aclocal's search path. --- Failed to build dune-common ---
I could go further to change the configure.ac file. However, I believe the Dune team probably had already faced with these problems and know a better way to deal with it. So, my question is that should I really change the configure files. If yes, is it any reason why LT_INIT is not added to the configure.ac?
Thank you very much for your help and assistance and best regards, Arya