[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pan-users] configure error with iconv - no ISO-2022 support?
From: |
Himanshu J. Gohel |
Subject: |
[Pan-users] configure error with iconv - no ISO-2022 support? |
Date: |
Sun, 8 Jun 2003 16:17:19 -0400 |
I was browsing both the archives for comps.sys.sgi.* and the Pan-users
mailing list to find a solution to this problem, but I didn't find any
that solved the problem, just questions (see Msg-Id:
<address@hidden>).
If I run configure on Pan 0.14.0 sources, I get an error:
checking preferred charset formats for system iconv... not found
configure: error:
*** The iconv-detect program was unable to determine the
*** preferred charset formats recognized by your system
*** iconv library. It is suggested that you install a
*** working iconv library such as the one found at
*** ftp://ftp.gnu.org/pub/gnu/libiconv
One suggested solution was to specify the path to iconv, which I
did, but I still go the same errors. Turns out that specifying the
path is done like so: --with-libiconv-prefix=/usr/freeware which then
looks
in /usr/freeware/lib and /usr/freeware/include. But libiconv.a was in
lib32, so I made a link from lib/libiconv.a lib32. Still did not solve
the
problem.
So I looked in the config.log as DRK suggested in his response. Turns
out that iconv passes the first two tests:
configure:6943: checking for iconv
configure:7058: checking for iconv declaration
But fails this third test:
configure:7127: checking preferred charset formats for system iconv
<snip>
configure:7155: $? = 0
configure:7157: ./conftest
System prefers ISO8859-1
System doesn't support any ISO-2022 formats
configure:7160: $? = 3
configure: program exited with status 3
configure: failed program was:
Looking at the code left behind in iconv-detect.c, the code says:
iso2022 = ISO_UNSUPPORTED;
info = iso2022_tests;
/*printf ("#define ISO_2022_FORMAT(iso,codepage)\t");*/
for (i = 0; i < num_iso2022_tests; i++) {
cd = iconv_open (info[i].charset, "UTF-8");
if (cd != (iconv_t) -1) {
iconv_close (cd);
/*printf ("(\"%s\", (iso), (codepage))\n",
info[i].format);*/
fprintf (stderr, "System prefers %s\n",
info[i].charset);
iso2022 = info[i].id;
break;
}
}
if (iso2022 == ISO_UNSUPPORTED) {
fprintf (stderr, "System doesn't support any ISO-2022
formats\n");
fprintf (fp, "#define ICONV_ISO_S_FORMAT \"%s\"\n",
info[0].format);
#ifdef CONFIGURE_IN
exit (3);
#endif
} else {
fprintf (fp, "#define ICONV_ISO_S_FORMAT \"%s\"\n",
info[i].format);
}
And that's where it's getting the return code of 3, and failing.
Question is, how can I get the test to pass?
Thanks for any ideas.
--
Himanshu
- [Pan-users] configure error with iconv - no ISO-2022 support?,
Himanshu J. Gohel <=