error compiling hgmaster on mac

Discussions about the WinBoard protocol. Here you can also report bugs and request new features.

Moderators: hgm, Andres Valverde

error compiling hgmaster on mac

Postby Josh Pettus » 15 May 2011, 02:04

Hi, all of a sudden i am having difficulty compiling the hgmaster branch on mac. When I run the ./autogen.sh script I get:
Code: Select all
Me-MacBook-Pro:xboard-36aefa2 me$ ./autogen.sh
configure.ac:79: warning: macro `AM_GNU_GETTEXT_VERSION' not found in library
configure.ac:80: warning: macro `AM_GNU_GETTEXT' not found in library
configure.ac:161: installing `./config.sub'
configure.ac:72: installing `./compile'
configure.ac:34: installing `./missing'
configure.ac:161: installing `./config.guess'
Makefile.am: installing `./depcomp'
Makefile.am:49: installing `./mdate-sh'
Makefile.am:49: installing `./texinfo.tex'
configure.ac:79: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:80: error: possibly undefined macro: AM_GNU_GETTEXT


I know it works in fine in linux.
Any ideas?
Josh Pettus
 
Posts: 317
Joined: 11 Mar 2009, 01:11

Re: error compiling hgmaster on mac

Postby H.G.Muller » 15 May 2011, 06:57

Arun is working on getting the internationalization to work with XBoard, and I regularly synchronize hgmaster with GNU-Savannah master nowadays. There is a compiler switch USE_NLS that controls this, but I am not sure how exactly it should be used (and i somehow doubt it would already work at the autogen.sh level).

But I think the error should go away when you install the package 'gettext'.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: error compiling hgmaster on mac

Postby Josh Pettus » 15 May 2011, 07:37

Odd, I installed gettext 0.18.1.1_2 via macports and gave me the same error. i'm sure the problem is on my end with my setup. I'll have to take a closer look at it tomorrow.
Josh Pettus
 
Posts: 317
Joined: 11 Mar 2009, 01:11

Re: error compiling hgmaster on mac

Postby Josh Pettus » 24 May 2011, 16:35

I still don't get it. I tried it from Fink as well which the package actually recognized as being there. But unfortunately it is still at 0.17 which xboard won't except. So it's back to macports. (which I don't like as much anyway cause the way it installs packages) Is there something I have to do with autoconf?
Josh Pettus
 
Posts: 317
Joined: 11 Mar 2009, 01:11

Re: error compiling hgmaster on mac

Postby arun » 28 May 2011, 02:21

can you try to edit configure.ac and change the 0.18... to your 0.17 version and run autogen.sh afterwards? perhaps then your fink package will work...
arun
 
Posts: 6
Joined: 16 May 2011, 17:59

Re: error compiling hgmaster on mac

Postby Josh Pettus » 28 May 2011, 07:36

I get through the error in ./configure but I get another one in make

Code: Select all
Making all in po
*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.18 but the autoconf macros are from gettext version 0.17
make[2]: *** [check-macro-version] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Josh Pettus
 
Posts: 317
Joined: 11 Mar 2009, 01:11

Re: error compiling hgmaster on mac

Postby Josh Pettus » 28 May 2011, 14:30

There, I simply copied/replaced gettext 18.1 from macports over the fink install and it worked. Did it manually. Macports installs in your /usr/local/bin and fink installs everything in a /sw folder so as not to interfere with your other unix stuff including xcode tools.
Josh Pettus
 
Posts: 317
Joined: 11 Mar 2009, 01:11

Re: error compiling hgmaster on mac

Postby Josh Pettus » 25 Oct 2011, 21:27

Well I've had to throw in the towel, this same problem has plagued me for months, ever since I upgraded to Lion. I have tried everything, installing gettext from fink, macports, homebrew, even source. It installs just fine. I type gettext in terminal and it loads up. Except that for some reason autoconf isn't finding it in the "library" or whatever

"configure.ac:79: warning: macro `AM_GNU_GETTEXT_VERSION' not found in library
configure.ac:80: warning: macro `AM_GNU_GETTEXT' not found in library"

I saw you lowered the requirement to 0.17 but now I cant even get that :?

As you said it can't be disabled at the ./autogen.sh level

I don't know...
Josh Pettus
 
Posts: 317
Joined: 11 Mar 2009, 01:11

Re: error compiling hgmaster on mac

Postby H.G.Muller » 26 Oct 2011, 07:44

A 'warning' is not supposed to be fatal, is it? Does something go wrong when you try to ./configure anyway?

I will point out the problem to Arun.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: error compiling hgmaster on mac

Postby John Cheetham » 26 Oct 2011, 12:59

"configure.ac:79: warning: macro `AM_GNU_GETTEXT_VERSION' not found in library
configure.ac:80: warning: macro `AM_GNU_GETTEXT' not found in library"


I got this warning when compiling savannah master on Fedora 15.

I changed the first line of autogen.sh from:
Code: Select all
aclocal \

to
Code: Select all
aclocal -I m4\


then the warning went away.
John Cheetham
 
Posts: 11
Joined: 28 Mar 2011, 07:36

Re: error compiling hgmaster on mac

Postby Josh Pettus » 27 Oct 2011, 01:57

Unfortunately it is fatal :(
As configure will then fail even if I try to disable gettext

"./configure: line 3923: syntax error near unexpected token `0.17'
./configure: line 3923: `AM_GNU_GETTEXT_VERSION(0.17)'"

But on the bright side that trick worked perfectly John! Thank-you so much!

I'm back in business. :D
Josh Pettus
 
Posts: 317
Joined: 11 Mar 2009, 01:11

Re: error compiling hgmaster on mac

Postby arun » 03 Nov 2011, 07:42

Hi

I'll try to look into this... just to make sure in fink you installed the gettext and the gettext-dev? Can you check if you have the file gettext.m4 somewhere in your aclocal path? On my system it's in /usr/share/aclocal/gettext.m4. AFAIK this is the file that defines the macros that seems to be missing on your computer.

Feel free to email me offline if you want to (arun@nubati.net)

Arun
arun
 
Posts: 6
Joined: 16 May 2011, 17:59

Re: error compiling hgmaster on mac

Postby Josh Pettus » 03 Nov 2011, 14:58

Hi Arun,

Thank-you so much for looking into this. You are right, that file was missing from my computer. But now that I know what to look for, I was able to rdl the source and just copy that file into the ../aclocal folder appropriately. (wonder why this wasn't done with "make install") :? Unfortunately a mac gettext-dev does not exist on macports or homebrew, and even on fink is not available for 10.7. (even they are out of date) It was one of the first things I was searching for, but couldn't find.
Josh Pettus
 
Posts: 317
Joined: 11 Mar 2009, 01:11

Re: error compiling hgmaster on mac

Postby arun » 05 Nov 2011, 20:55

Does XBoard compile now that you have that file? Strange that macport and fink are not up to date on gettext, seems to me that lots of other software also would need this file to be able to just even run the configure process..

Arun
arun
 
Posts: 6
Joined: 16 May 2011, 17:59

Re: error compiling hgmaster on mac

Postby Josh Pettus » 06 Nov 2011, 05:08

Yup it compiles now, thanks.

Macport is up to date
save missing the gettext-dev package

its just fink that isn't
which has gettext-dev but also out of date.
:\
Josh Pettus
 
Posts: 317
Joined: 11 Mar 2009, 01:11


Return to WinBoard development and bugfixing

Who is online

Users browsing this forum: No registered users and 0 guests