I downloaded latest snapshot of Xboard/Winboard from GIT repository but failed to compile it properly. I ran autogen.sh, then configure but with make I got an error message that malloc.h is missing. See below :
make all-am
Updating ./version.texi
restore=: && backupdir=".am$$" && \
am__cwd=`pwd` && cd . && \
rm -rf $backupdir && mkdir $backupdir && \
if (/bin/sh /Users/teun/Downloads/xboard/missing --run makeinfo --version) >/dev/null 2>&1; then \
for f in xboard.info xboard.info-[0-9] xboard.info-[0-9][0-9] xboard.i[0-9] xboard.i[0-9][0-9]; do \
if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
done; \
else :; fi && \
cd "$am__cwd"; \
if /bin/sh /Users/teun/Downloads/xboard/missing --run makeinfo -I . \
-o xboard.info xboard.texi; \
then \
rc=0; \
cd .; \
else \
rc=$?; \
cd . && \
$restore $backupdir/* `echo "./xboard.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
depbase=`echo backend.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -DSYSCONFDIR='"/usr/local/etc"' -MT backend.o -MD -MP -MF $depbase.Tpo -c -o backend.o backend.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo book.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -DSYSCONFDIR='"/usr/local/etc"' -MT book.o -MD -MP -MF $depbase.Tpo -c -o book.o book.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo childio.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -DSYSCONFDIR='"/usr/local/etc"' -MT childio.o -MD -MP -MF $depbase.Tpo -c -o childio.o childio.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo gamelist.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -DSYSCONFDIR='"/usr/local/etc"' -MT gamelist.o -MD -MP -MF $depbase.Tpo -c -o gamelist.o gamelist.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lists.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -DSYSCONFDIR='"/usr/local/etc"' -MT lists.o -MD -MP -MF $depbase.Tpo -c -o lists.o lists.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo moves.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -DSYSCONFDIR='"/usr/local/etc"' -MT moves.o -MD -MP -MF $depbase.Tpo -c -o moves.o moves.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo parser.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -DSYSCONFDIR='"/usr/local/etc"' -MT parser.o -MD -MP -MF $depbase.Tpo -c -o parser.o parser.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo pgntags.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -DSYSCONFDIR='"/usr/local/etc"' -MT pgntags.o -MD -MP -MF $depbase.Tpo -c -o pgntags.o pgntags.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo uci.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -DSYSCONFDIR='"/usr/local/etc"' -MT uci.o -MD -MP -MF $depbase.Tpo -c -o uci.o uci.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo xboard.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -DSYSCONFDIR='"/usr/local/etc"' -MT xboard.o -MD -MP -MF $depbase.Tpo -c -o xboard.o xboard.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from xboard.c:1347:
args.h: In function ‘ParseArgs’:
args.h:999: warning: cast from pointer to integer of different size
args.h:1013: warning: cast from pointer to integer of different size
args.h: In function ‘SetDefaultsFromList’:
args.h:1109: warning: cast from pointer to integer of different size
args.h:1115: warning: cast from pointer to integer of different size
args.h:1123: warning: cast from pointer to integer of different size
args.h:1126: warning: cast from pointer to integer of different size
xboard.c: In function ‘SaveFontArg’:
xboard.c:1454: warning: cast from pointer to integer of different size
xboard.c: In function ‘SaveAttribsArg’:
xboard.c:1486: warning: cast from pointer to integer of different size
xboard.c: In function ‘SaveColor’:
xboard.c:1492: warning: cast from pointer to integer of different size
xboard.c:1493: warning: cast from pointer to integer of different size
depbase=`echo xedittags.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -DSYSCONFDIR='"/usr/local/etc"' -MT xedittags.o -MD -MP -MF $depbase.Tpo -c -o xedittags.o xedittags.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo engineoutput.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -DSYSCONFDIR='"/usr/local/etc"' -MT engineoutput.o -MD -MP -MF $depbase.Tpo -c -o engineoutput.o engineoutput.c &&\
mv -f $depbase.Tpo $depbase.Po
engineoutput.c:31:20: error: malloc.h: No such file or directory
make[1]: *** [engineoutput.o] Error 1
make: *** [all] Error 2
Any suggestions to fix this are welcome