bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Compilation problems


From: Jim Segrave
Subject: Re: [Bug-gnubg] Compilation problems
Date: Wed, 10 Sep 2003 21:34:37 +0200
User-agent: Mutt/1.4.1i

On Wed 10 Sep 2003 (15:17 +0000), Joern Thyssen wrote:
> On Tue, Sep 09, 2003 at 08:57:38PM +0200, Nis Jorgensen wrote
> > I cannot compile on a linux-box, from a clean CVS checkout. I am running
> > 
> > ./configure --without-python
> > make
> > 
> > I get
> > 
> > 
> > gcc -DHAVE_CONFIG_H -I. -I. -I. -I./lib   -I/usr/include/libxml2
> > -I./intl -DLOCALEDIR=\"/usr/local/share/locale\"   -lpng -lz    -g -O2
> > -c `test -f 'play.c' || echo './'`play.c
> > In file included from play.c:41:
> > backgammon.h:356: `PATH_MAX' undeclared here (not in a function)
> > backgammon.h:358: `PATH_MAX' undeclared here (not in a function)
> 
> Can you check where PATH_MAX is defined, e.g., 
> 
> grep -l PATH_MAX /usr/include/*.h

It needs limits.h, which is explicitly included in gnubg.c where
PATH_MAX is needed. I've checked in a patch which should work as long
as configure sets HAVE_LIMITS_H

> Check if that particular file is included in backgamon.h or play.c
> > 
> > Also, I am experiencing error messages from aclocal almost everytime I
> > try to do a cvs update && make. If someone could advice me on how to
> > avoid this, please tell me.
> 
> run "./autogen.sh" before running make to avoid re-generation of
> autoconf stuff (aclocal, autoconf, automake).

The other way which I've been using is with a script which does:

autoconf 2>&1 | tee autoconf.out
autoheader 2>&1 | tee autoheader.out
aclocal 2>&1 | tee aclocal.out
./configure --with-board3d 2>&1 | tee configure.out
make 2>&1 | tee make.out


-- 
Jim Segrave           address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]