Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error on Mac OS X #176

Closed
mike-lawrence opened this issue May 16, 2011 · 9 comments
Closed

build error on Mac OS X #176

mike-lawrence opened this issue May 16, 2011 · 9 comments

Comments

@mike-lawrence
Copy link

Cloned the repo with git, read the README, grabbed mono, monodevelop, & monomac, didn't use macports but instead downloaded and installed automake and intltool from source. Upon running ./autogen.sh, I get the error:

Mike-Lawrences-MacBook-Pro:SparkleShare mike$ ./autogen.sh
gnome-doc-utils not found; user help will not be built
Submodule 'SmartIrc4net' (git://git.qnetp.net/smartirc4net.git) registered for path 'SmartIrc4net'
Cloning into SmartIrc4net...
remote: Counting objects: 1743, done.
remote: Compressing objects: 100% (680/680), done.
remote: Total 1743 (delta 1182), reused 1487 (delta 1011)
Receiving objects: 100% (1743/1743), 366.69 KiB | 257 KiB/s, done.
Resolving deltas: 100% (1182/1182), done.
Submodule path 'SmartIrc4net': checked out '036e2233aea9bd3b4a30f8c5136daff0187eb5ec'
Running intltoolize --force --copy ...
You should add the contents of '/usr/local/share/aclocal/intltool.m4' to 'aclocal.m4'.
Running glibtoolize --force --copy --automake ...
Running aclocal -I build/m4/sparkleshare -I build/m4/shamrock -I build/m4/shave -I build/m4 ...
Running autoconf ...
configure.ac:25: warning: AM_NLS is m4_require'd but not m4_defun'd
aclocal.m4:162: IT_PROG_INTLTOOL is expanded from...
configure.ac:25: the top level
configure:2625: error: possibly undefined macro: AM_NLS
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
Error: Could not run autoconf, which is required to configure sparkleshare

@mike-lawrence
Copy link
Author

To establish the versions of intltool, automake and autoconf I have installed:

Mike-Lawrences-MacBook-Pro:SparkleShare mike$ intltool-extract --version
intltool-extract (intltool) 0.40.6
Copyright (C) 2000, 2003 Free Software Foundation, Inc.
Written by Kenneth Christiansen, 2000.

This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Mike-Lawrences-MacBook-Pro:SparkleShare mike$ automake --version
automake (GNU automake) 1.11.1
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl-2.0.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey tromey@redhat.com
and Alexandre Duret-Lutz adl@gnu.org.

Mike-Lawrences-MacBook-Pro:SparkleShare mike$ autoconf --version
autoconf (GNU Autoconf) 2.68
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html, http://gnu.org/licenses/exceptions.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

@hbons
Copy link
Owner

hbons commented May 16, 2011

I've no clue what's going on here... Can't you try with macports for some reason?

@arjun810
Copy link

I got this working by downloading nls.m4 and placing it in /usr/local/share/aclocal/nls.m4

I used homebrew to install intltools, etc.

nls.m4:

nls.m4 serial 3 (gettext-0.15)

dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl
dnl This file can can be used in projects which are not available under
dnl the GNU General Public License or the GNU Library General Public
dnl License but which still want to provide support for the GNU gettext
dnl functionality.
dnl Please note that the actual code of the GNU gettext library is covered
dnl by the GNU Library General Public License, and the rest of the GNU
dnl gettext package package is covered by the GNU General Public License.
dnl They are not in the public domain.

dnl Authors:
dnl Ulrich Drepper drepper@cygnus.com, 1995-2000.
dnl Bruno Haible haible@clisp.cons.org, 2000-2003.

AC_PREREQ(2.50)

AC_DEFUN([AM_NLS],
[
AC_MSG_CHECKING([whether NLS is requested])
dnl Default is enabled NLS
AC_ARG_ENABLE(nls,
[ --disable-nls do not use Native Language Support],
USE_NLS=$enableval, USE_NLS=yes)
AC_MSG_RESULT($USE_NLS)
AC_SUBST(USE_NLS)
])

@hbons
Copy link
Owner

hbons commented May 25, 2011

@mike-lawrence did that fix it for you?

@toabi
Copy link
Contributor

toabi commented May 28, 2011

The addition of 'nls.m4' fixed it for me. I had the same issue as mike.

@dermotw
Copy link

dermotw commented May 28, 2011

Didn't work for me, I had to add nls.m4 to build/ - there may be something I'm missing though (i.e., do I have to run something after I copy nsl.m4 to /usr/local/share/aclocal?

@hbons
Copy link
Owner

hbons commented Jun 10, 2011

any luck now?

@tbrandstetter
Copy link

Try to install gettext from source too. This worked for me.

@hbons hbons closed this as completed Jun 29, 2011
@wizonesolutions
Copy link

I got farther with brew link gettext (though I think it's intended that one unlinks it once done). I'm stuck on webkit-sharp now, but that's a different issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants