On FreeBSD 5.4 doing a make immediately fails like this: % gmake Failed to create rounding.h! gmake: *** [rounding.h] Error 1
I'd suggest removing the ">/dev/null 2>&1" suffix from the CC command in the rounding.h section of the Makefile to see what is wrong. I'd imagine it is some kind of a compiler failure. I've committed a change to the Makefile.in file to show more info when creating rounding.h fails. You can see that diff via gitweb: http://git.samba.org/?p=rsync.git;a=summary http://git.samba.org/?p=rsync.git;a=commitdiff;h=ebac03192584817d626574db28b97ef274683aa5
Please let me know what the compiler error is you encountered.
No response from reporter... closing.
Sorry for not responding. This is the make output once the redirection to /dev/null is removed: % gmake In file included from ./rounding.c:20: ./rsync.h:390:19: iconv.h: No such file or directory In file included from ./rsync.h:894, from ./rounding.c:20: ./proto.h:266: error: syntax error before "ic" In file included from ./rounding.c:20: ./rsync.h:390:19: iconv.h: No such file or directory In file included from ./rsync.h:894, from ./rounding.c:20: ./proto.h:266: error: syntax error before "ic" In file included from ./rounding.c:20: ./rsync.h:390:19: iconv.h: No such file or directory In file included from ./rsync.h:894, from ./rounding.c:20: ./proto.h:266: error: syntax error before "ic" Failed to create rounding.h! gmake: *** [rounding.h] Error 1
On my system, I have /usr/local/include/iconv.h (FreeBSD convention for non-BSD code) and I did supply CPPFLAGS="-I/usr/local/include" to configure. It seems that the bug is that the rule for rounding.h should be more like if $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) so that the user-provided CPPFLAGS is respected. Bob
Thanks for figuring out what was wrong. I've checked-in a fix for this.