bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] Compilation of gettext 0.18.3 for Win32 under Cygwin fails


From: Michele Locati
Subject: [bug-gettext] Compilation of gettext 0.18.3 for Win32 under Cygwin fails
Date: Thu, 8 Aug 2013 08:53:28 +0200

Hello everybody

I'm trying to compile gettext 0.18.3 under cygwin, without success.

Here's my setup steps (I'm on a Windows 7 - 64 bit system):


- I downloaded setup-x86.exe from http://cygwin.com/install.html and
installed cygwin with this setup:
Mirror:
   ftp://mirror.switch.ch
Packages:
   Devel/binutils
   Devel/make
   Devel/mingw-gcc-g++
   Devel/mingw-w32api
   Web/wget


- I run these command lines:
BUILD_SRC=~/src
export BUILD_SRC
BUILD_DEST=~/out
export BUILD_DEST
rm --recursive --force $BUILD_DEST
mkdir --parents $BUILD_SRC
mkdir --parents $BUILD_DEST
cd $BUILD_SRC
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
rm --recursive --force $BUILD_SRC/libiconv-1.14
tar zxvf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure --prefix=$BUILD_DEST --host=i686-pc-mingw32 \
   --disable-shared --enable-static \
   CC="i686-pc-mingw32-gcc" \
   CCX="i686-pc-mingw32-g++" \
   CPPFLAGS="-Wall -I/usr/i686-pc-mingw32/sys-root/mingw/include" \
   LDFLAGS="-L/usr/i686-pc-mingw32/sys-root/mingw/lib"
make install
cd $BUILD_SRC
wget http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.3.tar.gz
rm --recursive --force $BUILD_SRC/gettext-0.18.3
tar zxvf gettext-0.18.3.tar.gz
cd gettext-0.18.3
./configure --prefix=$BUILD_DEST --host=i686-pc-mingw32 \
   --disable-shared --enable-static \
   CC="i686-pc-mingw32-gcc" \
   CCX="i686-pc-mingw32-g++" \
   CPPFLAGS="-Wall -I/usr/i686-pc-mingw32/sys-root/mingw/include" \
   LDFLAGS="-L/usr/i686-pc-mingw32/sys-root/mingw/lib"
make install

iconv compiled successfully (iconv.exe gets generated and it runs fine).
The make install for gettext fails with this error message:
./printf.c:388:5: error: too many arguments to function 'vswprintf'
In file included from ./printf.c:44:0:

Please note that just above this error message there's a lot of
warnings telling that "passing argument 2 of 'swprintf' makes pointer
from integer without a cast" and "expected 'const wchar_t *' but
argument is of type 'size_t'".

I suspect it has something to do with some of the HAVE defines.
Here's the result of the command
grep --recursive -h --max-count=1 \
   --regexp='^\s*#define[ \t]\+HAVE\w\+PRINT\w*[ \t]\+[^\$]' .

#define HAVE_DECL__SNPRINTF__SNWPRINTF 0
#define HAVE_FWPRINTF 1
#define HAVE_DECL__SNPRINTF 1
#define HAVE_SNPRINTF 1
#define HAVE_DECL_SNPRINTF 1
#define HAVE_SNPRINTF 1
#define HAVE_SNPRINTF 1


Any help is appreciated...
Many thanks
--
Michele



reply via email to

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