[Dune] build problems on mac os x 10.8.4

Steffen Müthing steffen.muething at iwr.uni-heidelberg.de
Wed Jul 31 07:50:45 CEST 2013


Am 30.07.2013 um 19:31 schrieb Benedikt Oswald:

> Hello  Steffen, thanks, I have installed:
> 
> Benedikts-iMac:hades oswald$ pkg-config --version
> 0.28

that's the same version I have on Lion, so that can't be it.

> 
> I am not sure, my problem is related to this pkg-config
> since it complains about LIBTOOL not being defined.

Actually, it complains about a number of M4 macros being undefined,
probably because it doesn't properly search the location they have been
installed to - unfortunately, my knowledge of this stuff is pretty limited.

> 
> 
> In fact, when I use dunecontrol with --use-cmake
> 
> then It runs through.

Well, that's consistent with an M4 problem because cmake doesn't use
M4 for the config tests; it has its own language for that.

> 
> what is the status of the cmake build system ?

It should work AFAIK, but I've never really tried it on a Mac. Christoph?

Steffen

> 
> Greetings, Benedikt 
> 
> 
> 
> 
> --------------------------------------------------------------------------------------------------------------------------------------------------------------
> Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone - +41 43 366 90 74
> Technoparkstrasse 1, CH-8005 Zürich, benedikt.oswald at lspr.ch
> "Passion is required for any great work, and for the Revolution passion and audacity are required in big doses." 
> Ernesto 'Che' Guevara, Letter to his parents.
> --------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> On Jul 30, 2013, at 7:09 PM, Steffen Müthing <steffen.muething at iwr.uni-heidelberg.de> wrote:
> 
>> Hi Benedikt,
>> 
>> I'm not really the expert here, but PKG_PROG_PKG_CONFIG is somehow tied to pkg-config.
>> Do you have a current version installed? I also found a discussion on Stackexchange where someone
>> was able to resolve the problem by adding the directory containing pkg.m4 to the M4PATH explicitly:
>> 
>> http://stackoverflow.com/questions/17089858/pkg-config-pkg-prog-pkg-config-command-not-found
>> 
>> Could you try that?
>> 
>> Best,
>> Steffen
>> 
>> Am 30.07.2013 um 18:46 schrieb Benedikt Oswald:
>> 
>>> 
>>> Dear Dune,
>>> 
>>> I am currently installing Dune on an iMac with Mac OS 10.8.4 and receive this error message when starting
>>> dunecontrol, cf. below. Essentially, it breaks with saying that Libtool library used but 'LIBTOOL' is undefined.
>>> 
>>> Now, I have installed the latest auto tools, namely;
>>> 
>>> libtool  2.4.2
>>> autoconf 2.69
>>> automake 1.14
>>> 
>>> gcc 4.8.1
>>> 
>>> Dune versions are:
>>> 
>>> Benedikts-iMac:hades oswald$ cd dune-common/
>>> Benedikts-iMac:dune-common oswald$ git log -n1
>>> commit 892d2043ab7554c69e6c99b985a33ced4d3bc627
>>> Author: Martin Nolte <nolte at mathematik.uni-freiburg.de>
>>> Date:   Sat Jul 13 07:45:23 2013 +0200
>>> 
>>>    add missing include
>>> 
>>> 
>>> 
>>> 
>>> I am a bit confused on what is the problem. I should say that
>>> on Mac OS X 10.7 all went smooth.
>>> 
>>> thanks for your suggestions, Benedikt
>>> 
>>> 
>>> =================================
>>> 
>>> 
>>> 
>>> Benedikts-iMac:hades oswald$ time ./dune-common/bin/dunecontrol --opts=os.imac.lsprag.git.superludist25.gcc481.opts all
>>> USE_CMAKE=no DUNE_BUILDDIR=
>>> --- going to build dune-common dune-geometry dune-grid dune-istl dune-grid-howto dune-localfunctions hades  ---
>>> --- calling all for dune-common ---
>>> --- calling vcsetup for dune-common ---
>>> --- calling autogen for dune-common ---
>>> Found am directory /Users/oswald/gitwork/hades/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:   `/Users/oswald/extlib/libtool/2.4.2/gcc/4.8.1/share/aclocal/libtool.m4'
>>> libtoolize:   `/Users/oswald/extlib/libtool/2.4.2/gcc/4.8.1/share/aclocal/ltoptions.m4'
>>> libtoolize:   `/Users/oswald/extlib/libtool/2.4.2/gcc/4.8.1/share/aclocal/ltversion.m4'
>>> libtoolize:   `/Users/oswald/extlib/libtool/2.4.2/gcc/4.8.1/share/aclocal/ltsugar.m4'
>>> libtoolize:   `/Users/oswald/extlib/libtool/2.4.2/gcc/4.8.1/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.
>>> --> USE_CMAKE=no DUNE_BUILDDIR=
>>> writing /Users/oswald/gitwork/hades/dune-common/dependencies.m4
>>>    for dune-common 2.3-svn dune-devel at dune-project.org
>>>        requires 
>>>        suggests 
>>> --> aclocal...
>>> configure.ac:13: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
>>> /Users/oswald/gitwork/hades/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
>>> /Users/oswald/gitwork/hades/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
>>> /Users/oswald/gitwork/hades/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
>>> /Users/oswald/gitwork/hades/dune-common/m4/dune_common.m4:75: DUNE_COMMON_CHECKS is expanded from...
>>> dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
>>> /Users/oswald/gitwork/hades/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
>>> /Users/oswald/gitwork/hades/dune-common/m4/dune_common.m4:75: DUNE_COMMON_CHECKS is expanded from...
>>> dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
>>> /Users/oswald/gitwork/hades/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
>>> /Users/oswald/gitwork/hades/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
>>> /Users/oswald/gitwork/hades/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
>>> /Users/oswald/gitwork/hades/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
>>> /Users/oswald/gitwork/hades/dune-common/m4/dune_common.m4:75: DUNE_COMMON_CHECKS is expanded from...
>>> dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
>>> /Users/oswald/gitwork/hades/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
>>> /Users/oswald/gitwork/hades/dune-common/m4/dune_common.m4:75: DUNE_COMMON_CHECKS is expanded from...
>>> dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
>>> /Users/oswald/gitwork/hades/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:2520: 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:2520: 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:2520: 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:2777: DUNE_COMMON_CHECKS is expanded from...
>>> dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
>>> aclocal.m4:2520: 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:2777: DUNE_COMMON_CHECKS is expanded from...
>>> dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
>>> aclocal.m4:2520: 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:2520: 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:2520: 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:2520: 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:2777: DUNE_COMMON_CHECKS is expanded from...
>>> dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
>>> aclocal.m4:2520: 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:2777: DUNE_COMMON_CHECKS is expanded from...
>>> dependencies.m4:19: DUNE_CHECK_MOD_DEPENDENCIES is expanded from...
>>> aclocal.m4:2520: DUNE_CHECK_ALL is expanded from...
>>> configure.ac:13: the top level
>>> 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.
>>> 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 ---
>>> Terminating dunecontrol due to previous errors!
>>> 
>>> 
>>> 
>>> 
>>> 
>>> --------------------------------------------------------------------------------------------------------------------------------------------------------------
>>> Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone - +41 43 366 90 74
>>> Technoparkstrasse 1, CH-8005 Zürich, benedikt.oswald at lspr.ch
>>> "Passion is required for any great work, and for the Revolution passion and audacity are required in big doses." 
>>> Ernesto 'Che' Guevara, Letter to his parents.
>>> --------------------------------------------------------------------------------------------------------------------------------------------------------------
>>> 
>>> _______________________________________________
>>> Dune mailing list
>>> Dune at dune-project.org
>>> http://lists.dune-project.org/mailman/listinfo/dune
>> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20130731/20c29a17/attachment.sig>


More information about the Dune mailing list