[PROBLEM] Building GNU Classpath on Darwin
Hi, I'm trying to build GNU Classpath CVS HEAD on Mac OS X 10.6.7. I followed these instructions to satisfy the autoconf 2.65 requirement: http://www.mattvsworld.com/blog/2010/02/install-the-latest-autoconf-and-automake-on-mac-os-10-6/ However, when I try to run 'autogen.sh' I get the following error: $ sh autogen.sh configure.ac:503: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd m4/iconv.m4:11: AM_ICONV_LINKFLAGS_BODY is expanded from... m4/iconv.m4:22: AM_ICONV_LINK is expanded from... m4/iconv.m4:77: AM_ICONV is expanded from... configure.ac:503: the top level configure.ac:503: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd configure.ac:503: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd m4/iconv.m4:11: AM_ICONV_LINKFLAGS_BODY is expanded from... m4/iconv.m4:22: AM_ICONV_LINK is expanded from... m4/iconv.m4:77: AM_ICONV is expanded from... configure.ac:503: the top level configure.ac:503: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. libtoolize: copying file `m4/libtool.m4' libtoolize: copying file `m4/ltoptions.m4' libtoolize: copying file `m4/ltsugar.m4' libtoolize: copying file `m4/ltversion.m4' libtoolize: copying file `m4/lt~obsolete.m4' configure.ac:503: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd m4/iconv.m4:11: AM_ICONV_LINKFLAGS_BODY is expanded from... m4/iconv.m4:22: AM_ICONV_LINK is expanded from... m4/iconv.m4:77: AM_ICONV is expanded from... configure.ac:503: the top level configure.ac:503: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd configure.ac:503: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd m4/iconv.m4:11: AM_ICONV_LINKFLAGS_BODY is expanded from... m4/iconv.m4:22: AM_ICONV_LINK is expanded from... m4/iconv.m4:77: AM_ICONV is expanded from... configure.ac:503: the top level configure.ac:503: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd configure:17858: error: possibly undefined macro: AC_LIB_PREPARE_PREFIX If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure:17859: error: possibly undefined macro: AC_LIB_RPATH configure:17864: error: possibly undefined macro: AC_LIB_LINKFLAGS_BODY configure:17872: error: possibly undefined macro: AC_LIB_APPENDTOVAR autoreconf: /usr/local/bin/autoconf failed with exit status: 1 Any ideas what's going wrong here? Pekka
Re: [PROBLEM] Building GNU Classpath on Darwin
Hi Pekka, On Tue, 2011-07-05 at 12:28 +0300, Pekka Enberg wrote: > I'm trying to build GNU Classpath CVS HEAD on Mac OS X 10.6.7. I > followed these instructions to satisfy the autoconf 2.65 requirement: > > http://www.mattvsworld.com/blog/2010/02/install-the-latest-autoconf-and-automake-on-mac-os-10-6/ > > However, when I try to run 'autogen.sh' I get the following error: > > $ sh autogen.sh > configure.ac:503: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but > not m4_defun'd > m4/iconv.m4:11: AM_ICONV_LINKFLAGS_BODY is expanded from... > m4/iconv.m4:22: AM_ICONV_LINK is expanded from... > m4/iconv.m4:77: AM_ICONV is expanded from... > configure.ac:503: the top level [...] > autoreconf: /usr/local/bin/autoconf failed with exit status: 1 > > Any ideas what's going wrong here? I am not sure, but you might be missing gettext, and our configure picks up the local m4/iconv.m4. We don't actually use gettext, but we try to use iconv. See the installation instructions at http://www.gnu.org/software/libiconv/ which has a little section on iconv.m4. So try installing gettext, or find an updated version of the libiconv iconv.m4 and install that under the classpath/m4/ directory. Please let us know if that helps or not. Cheers, Mark
Re: [PROBLEM] Building GNU Classpath on Darwin
On Tue, Jul 5, 2011 at 12:53 PM, Mark Wielaard wrote: > Hi Pekka, > > On Tue, 2011-07-05 at 12:28 +0300, Pekka Enberg wrote: >> I'm trying to build GNU Classpath CVS HEAD on Mac OS X 10.6.7. I >> followed these instructions to satisfy the autoconf 2.65 requirement: >> >> http://www.mattvsworld.com/blog/2010/02/install-the-latest-autoconf-and-automake-on-mac-os-10-6/ >> >> However, when I try to run 'autogen.sh' I get the following error: >> >> $ sh autogen.sh >> configure.ac:503: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but >> not m4_defun'd >> m4/iconv.m4:11: AM_ICONV_LINKFLAGS_BODY is expanded from... >> m4/iconv.m4:22: AM_ICONV_LINK is expanded from... >> m4/iconv.m4:77: AM_ICONV is expanded from... >> configure.ac:503: the top level > [...] >> autoreconf: /usr/local/bin/autoconf failed with exit status: 1 >> >> Any ideas what's going wrong here? > > I am not sure, but you might be missing gettext, and our configure picks > up the local m4/iconv.m4. We don't actually use gettext, but we try to > use iconv. See the installation instructions at > http://www.gnu.org/software/libiconv/ which has a little section on > iconv.m4. So try installing gettext, or find an updated version of the > libiconv iconv.m4 and install that under the classpath/m4/ directory. > Please let us know if that helps or not. I had gettext installed but I had to do 'brew link' on it: sudo brew link gettext for it to become visible in PATH. After I did that, autogen.sh started working. I wonder why the error message is so darn cryptic, though... ;-) Anyway, thanks!