2013/8/9 Daiki Ueno <[email protected]>: > Michele Locati <[email protected]> writes: > >> #define HAVE_DECL__SNPRINTF__SNWPRINTF 0 > > Sorry, this seems like my mistake. Could you try the attached patch?
Thank you Daiki. BTW the error still persists... Here's what I did: - I added the Devel/patch package to Cygwin in order to apply the patch - I added the Devel/automake package to Cygwin since in a first attempt make install said: 'aclocal-1.14' is missing on your system. You should only need it if you modified 'acinclude.m4' or 'configure.ac' or m4 files included by 'configure.ac'. - I deleted the folders ~/out and ~/src - I compiled iconv successfully - I extracted the gettext source code from the original archive and applied the patch: $ patch -p1 < ../0001-Fix-AC_CHECK_DECLS-usage.patch (Stripping trailing CRs from patch; use --binary to disable.) patching file gettext-runtime/m4/intl.m4 - I called configure with the parameters I wrote yesterday - I called make install At this point I received a lot of In file included from ./printf.c:305:0: ./vasnprintf.c: In function 'libintl_vasnwprintf': ./vasnprintf.c:5001:27: warning: passing argument 2 of 'swprintf' makes pointer from integer without a cast [enabled by default] In file included from ./printf.c:44:0: /usr/i686-pc-mingw32/sys-root/mingw/include/stdio.h:567:37: note: expected 'const wchar_t *' but argument is of type 'size_t' And a final In file included from ./printf.c:44:0: /usr/i686-pc-mingw32/sys-root/mingw/include/stdio.h:568:37: note: expected '__gnuc_va_list' but argument is of type 'const wchar_t *' ./printf.c:388:5: error: too many arguments to function 'vswprintf' In file included from ./printf.c:44:0: /usr/i686-pc-mingw32/sys-root/mingw/include/stdio.h:568:37: note: declared here This may help you: $ grep --recursive --regexp='^\s*#define[ \t]\+HAVE\w\+PRINT\w*[ \t]\+[^\$]' . | grep .h ./gettext-runtime/config.h:#define HAVE_FWPRINTF 1 ./gettext-runtime/config.h:#define HAVE_RAW_DECL_SNPRINTF 1 ./gettext-runtime/config.h:#define HAVE_RAW_DECL_VSNPRINTF 1 ./gettext-runtime/config.h:#define HAVE_SNPRINTF 1 ./gettext-runtime/libasprintf/config.h:#define HAVE_DECL__SNPRINTF 1 ./gettext-runtime/libasprintf/config.h:#define HAVE_SNPRINTF 1 ./gettext-tools/config.h:#define HAVE_DECL_SNPRINTF 1 ./gettext-tools/config.h:#define HAVE_DECL_VSNPRINTF 1 ./gettext-tools/config.h:#define HAVE_DECL__SNPRINTF 1 ./gettext-tools/config.h:#define HAVE_DECL__SNPRINTF__SNWPRINTF 0 ./gettext-tools/config.h:#define HAVE_FWPRINTF 1 ./gettext-tools/config.h:#define HAVE_RAW_DECL_SNPRINTF 1 ./gettext-tools/config.h:#define HAVE_RAW_DECL_VSNPRINTF 1 ./gettext-tools/config.h:#define HAVE_SNPRINTF 1 ./gettext-tools/config.h:#define HAVE_SNPRINTF_RETVAL_C99 1 ./gettext-tools/config.h:#define HAVE_VSNPRINTF 1 Thank you again -- Michele
