Some configure tests broken with -Werror
Christian Stimming
stimming at tuhh.de
Sun Feb 2 14:09:39 CST 2003
-----BEGIN PGP SIGNED MESSAGE-----
During checking whether gnucash easily builds I discovered that several
configure tests fail when -Werror is enabled! In particular, configure.in:554
dnl check for nl_langinfo(D_FMT) which is missing on FreeBSD
LANGINFO_D_FMT_CHECK
fails with the error message given below. Of course this is a BAD THING (tm),
because this will probably result in a non-translated build for no known
reason. AFAIK this check is currently the only one that fails only because of
- -Werror / --enable-error-on-warning. Can we somehow get along without this
one? Otherwise we need to disable --enable-error-on-warning by default,
because the common user will only wonder why his langinfo isn't recognized.
Christian
configure:12749: gcc -o conftest -g -Wall -Werror conftest.c -lm >&5
cc1: warnings being treated as errors
configure: In function `main':
configure:12742: warning: unused variable `cs'
configure:12752: $? = 1
configure: failed program was:
#line 12737 "configure"
#include "confdefs.h"
#include <langinfo.h>
int
main ()
{
char* cs = nl_langinfo(D_FMT);
;
return 0;
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iQCVAwUBPj0Yk2XAi+BfhivFAQH3FgQAl5hTyd/1FX2rzeSO859AfOw1A7gjpL45
HJrNS5V3ZHWswfndnALcPU1u+wsVrEq50te4nNCuXUIU167JEHk4tcFyUbgKIe1A
zrGr8V7B8NmBcClGAR4FV72kPv9zVORERBnTuhreqXjZsXHwoV31ePO99knMC+2u
SSJd6mBnDD0=
=Wp/l
-----END PGP SIGNATURE-----
More information about the gnucash-devel
mailing list