[Freeciv-Dev] compiler warning in configure.ac test programs (PR#1950)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
The error is this:
jdorje:~/src/freeciv/freeciv$ CFLAGS="-Werror" ./autogen.sh
+ checking for autoconf >= 2.52 ... found 2.53, ok.
+ checking for automake >= 1.4 ... found 1.5, ok.
+ checking for xgettext >= 0.10.36 ... found 0.11.5, ok.
+ checking for msgfmt >= 0.10.36 ... found 0.11.5, ok.
...
checking for GNU xgettext version >= 0.10.36... no
configure: WARNING: You may have problems with creating pox files.
Please update your gettext package.
checking for GNU msgfmt version >= 0.10.35... no
configure: error: You are unable to create *.gmo files.
This is development version which doesn't include them. Please update your
gettext package. We recommend you versions >= 0.10.38. Or use
--disable-nls instead.
The problem is that -Werror makes the compilation of the test programs
to fail since they cause compiler warnings. There may be other places
where this crops up too.
Patch attached.
jason
Index: configure.ac
===================================================================
RCS file: /home/freeciv/CVS/freeciv/configure.ac,v
retrieving revision 1.21
diff -u -r1.21 configure.ac
--- configure.ac 2002/08/12 20:07:29 1.21
+++ configure.ac 2002/08/20 23:58:58
@@ -182,7 +182,7 @@
const char *version = "$xgettext_version";
int main()
{
- char *p = version;
+ const char *p = version;
int major = 0, minor = 0, patch = 0;
while (*p != '\0' && (*p < '0' || *p > '9')) {
@@ -218,7 +218,7 @@
int main()
{
- char *p = version;
+ const char *p = version;
int major = 0, minor = 0, patch = 0;
while (*p != '\0' && (*p < '0' || *p > '9')) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] compiler warning in configure.ac test programs (PR#1950),
jdorje <=
|
|