From: Sam S. <sd...@gn...> - 2005-03-04 14:37:35
|
> * Bruno Haible <oe...@py...t> [2005-03-03 17:54:17 +0100]: > > Sam wrote: >> I have libiconv installed as a part of mingw, so I have >> >> d:/gnu/MinGW/include/iconv.h >> d:/gnu/MinGW/lib/libiconv.dll.a >> d:/gnu/MinGW/lib/libiconv.la >> >> and I run the top-level configure with >> --with-libiconv-prefix=d:/gnu/MinGW >> nevertheless, I get >> >> checking for iconv... no, consider installing GNU libiconv > > Interesting... What's the corresponding portion of the config.log? 1. --with-libintl-prefix works fine. 2. replacing AC_LIB_LINKFLAGS_BODY with AC_LIB_LINKFLAGS did not help see also <http://www.podval.org/~sds/clisp/iconv-config.log> $ configure --srcdir=../src --with-libintl-prefix=d:/gnu/MinGW --with-libiconv-prefix=d:/gnu/MinGW --with-libsigsegv-prefix=/usr/local/libsigsegv-mingw --with-module=dirkey --with-module=bindings/win32 --cache-file=config.cache configure:4380: checking how to link with libiconv configure:4767: result: -liconv configure:4827: checking for iconv configure:4854: gcc -mno-cygwin -o conftest.exe -g -O2 conftest.c >&5 conftest.c:15:19: iconv.h: No such file or directory conftest.c: In function `main': conftest.c:19: error: `iconv_t' undeclared (first use in this function) conftest.c:19: error: (Each undeclared identifier is reported only once conftest.c:19: error: for each function it appears in.) conftest.c:19: error: parse error before "cd" conftest.c:20: error: `cd' undeclared (first use in this function) configure:4860: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define _GNU_SOURCE 1 | #define ASM_UNDERSCORE | #ifndef __i386__ | #define __i386__ 1 | #endif | /* end confdefs.h. */ | #include <stdlib.h> | #include <iconv.h> | int | main () | { | iconv_t cd = iconv_open("",""); | iconv(cd,NULL,NULL,NULL,NULL); | iconv_close(cd); | ; | return 0; | } configure:4905: gcc -mno-cygwin -o conftest.exe -g -O2 conftest.c -liconv >&5 conftest.c:15:19: iconv.h: No such file or directory conftest.c: In function `main': conftest.c:19: error: `iconv_t' undeclared (first use in this function) conftest.c:19: error: (Each undeclared identifier is reported only once conftest.c:19: error: for each function it appears in.) conftest.c:19: error: parse error before "cd" conftest.c:20: error: `cd' undeclared (first use in this function) configure:4911: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define _GNU_SOURCE 1 | #define ASM_UNDERSCORE | #ifndef __i386__ | #define __i386__ 1 | #endif | /* end confdefs.h. */ | #include <stdlib.h> | #include <iconv.h> | int | main () | { | iconv_t cd = iconv_open("",""); | iconv(cd,NULL,NULL,NULL,NULL); | iconv_close(cd); | ; | return 0; | } configure:4939: result: no, consider installing GNU libiconv configure:5382: checking for GNU gettext in libc configure:5406: gcc -mno-cygwin -o conftest.exe -g -O2 conftest.c >&5 conftest.c:14:21: libintl.h: No such file or directory configure:5412: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define _GNU_SOURCE 1 | #define ASM_UNDERSCORE | #ifndef __i386__ | #define __i386__ 1 | #endif | /* end confdefs.h. */ | #include <libintl.h> | extern int _nl_msg_cat_cntr; | extern int *_nl_domain_bindings; | int | main () | { | bindtextdomain ("", ""); | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings | ; | return 0; | } configure:5437: result: no configure:5452: checking how to link with libiconv configure:5839: result: -liconv configure:5899: checking for iconv configure:6011: result: no, consider installing GNU libiconv configure:6410: checking for GNU gettext in libintl configure:6442: gcc -mno-cygwin -o conftest.exe -g -O2 -Id:/gnu/MinGW/include conftest.c d:/gnu/MinGW/lib/libintl.a >&5 d:/gnu/MinGW/lib/libintl.a(loadmsgcat.o)(.text+0x145):loadmsgcat.c: undefined reference to `_libiconv_open' d:/gnu/MinGW/lib/libintl.a(loadmsgcat.o)(.text+0xed2):loadmsgcat.c: undefined reference to `_libiconv_close' d:/gnu/MinGW/lib/libintl.a(dcigettext.o)(.text+0x843):dcigettext.c: undefined reference to `_libiconv' collect2: ld returned 1 exit status configure:6448: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define _GNU_SOURCE 1 | #define ASM_UNDERSCORE | #ifndef __i386__ | #define __i386__ 1 | #endif | /* end confdefs.h. */ | #include <libintl.h> | extern int _nl_msg_cat_cntr; | extern | #ifdef __cplusplus | "C" | #endif | const char *_nl_expand_alias (); | int | main () | { | bindtextdomain ("", ""); | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) | ; | return 0; | } configure:6533: result: no -- Sam Steingold (http://www.podval.org/~sds) running w2k <http://www.memri.org/> <http://www.honestreporting.com> <http://www.iris.org.il> <http://pmw.org.il/> <http://www.mideasttruth.com/> All generalizations are wrong. Including this. |