Bug 22339 - iconv functions not found by libstdc++v3 configure
Summary: iconv functions not found by libstdc++v3 configure
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.0.1
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks: 28265
  Show dependency treegraph
 
Reported: 2005-07-07 08:44 UTC by Mark Junker
Modified: 2007-12-01 14:52 UTC (History)
1 user (show)

See Also:
Host: i686-pc-mingw32
Target: i686-pc-mingw32
Build: i686-pc-mingw32
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Checks for libiconv_ open and close functions. (922 bytes, patch)
2005-09-13 20:19 UTC, Benjamin Kosnik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Junker 2005-07-07 08:44:36 UTC
The iconv functions (iconv, iconv_open, and iconv_close) cannot be found by
configure because it doesn't include "iconv.h" where iconv is defined as
libiconv, iconv_open as libiconv_open, and iconv_close as libiconv_close.

I suggest changing the iconv functions to:

1. check if iconv.h exists
2. when checking for iconv, iconv_open, and iconv_close then include the iconv.h
header, otherwise use the explicit prototype.
Comment 1 Mark Junker 2005-07-07 08:45:58 UTC
(In reply to comment #0)
> I suggest changing the iconv functions to:

I meant: "changing the iconv function detection to:". Sorry.
Comment 2 Benjamin Kosnik 2005-09-13 20:18:11 UTC
Is this in reference to _GLIBCXX_USE_ICONV?

That is only useful for the codecvt specializations that use iconv. As of 4.0.0,
this is in libstdc++-v3/include/ext/codecvt_specializations.h. 

Or is this in reference to runtime testing? That looks different.

However, what you are suggesting is still easy to do.

-benjamin

Comment 3 Benjamin Kosnik 2005-09-13 20:19:19 UTC
Created attachment 9723 [details]
Checks for libiconv_ open and close functions.
Comment 4 Benjamin Kosnik 2006-12-12 12:33:35 UTC
Can I get some feedback on this bug? If not, I will close it...
Comment 5 Paolo Carlini 2007-12-01 14:52:44 UTC
After almost a year, feedback is definitely not forthcoming...