bug-gnu-utils
[Top][All Lists]
Advanced

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

gettext: redefinition of snprintf


From: ChristophK
Subject: gettext: redefinition of snprintf
Date: Wed, 10 Apr 2013 22:09:48 +0200

Windows 7 64bit --- msys / mingw-w64 --- gcc 4.7.0


Hello,

I hope this is the right place for my question. I'm trying to build
gettext but keep getting the following error:


libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\".exe\"
-DEXEEXT=\". exe\" -DEXEEXT=\".exe\" -I. -I.. -I../intl -I../intl -I..
-I.. -DDEPENDS_ON_LIBI CONV=1 -DDEPENDS_ON_LIBINTL=1 -DLIBXML_STATIC
-I../intl -DGNULIB_DEFINED_ERROR - I./libcroco -g -O2 -c snprintf.c
-DDLL_EXPORT -DPIC -o .libs/snprintf.o snprintf.c:37:1: error:
redefinition of 'snprintf' In file included from ./stdio.h:43:0,
                 from snprintf.c:21:
k:\devel\mingw-w64\bin
\../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w6
4-mingw32/include/stdio.h:555:5: note: previous definition of
'snprintf' was her e make[4]: *** [snprintf.lo] Error 1
make[4]: Leaving directory
`/k/devel/libraries/gettext-0.18.2/gettext-tools/gnul ib-lib'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/k/devel/libraries/gettext-0.18.2/gettext-tools/gnul ib-lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/k/devel/libraries/gettext-0.18.2/gettext-tools' make[1]: *** [all]
Error 2 make[1]: Leaving directory
`/k/devel/libraries/gettext-0.18.2/gettext-tools' make: ***
[all-recursive] Error 1


I traced the problem to the configure script not guessing correctly the
existence of snprintf in my system (from gettext-tools/config.log):

configure:20425: checking for snprintf
configure:20425: gcc -std=gnu99 -o conftest.exe -g -O2
-Wl,--disable-auto-impo rt conftest.c  >&5
conftest.c:111:6: warning: conflicting types for built-in function
'snprintf' [e nabled by default]
C:\Users\CHRIST~1\AppData\Local\Temp\ccab9PyJ.o: In function `main':
k:\devel\libraries\gettext-0.18.2\gettext-tools/conftest.c:122:
undefined refere nce to `snprintf'
collect2.exe: error: ld returned 1 exit status


Please help.

Christoph



reply via email to

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