Issue Details (XML | Word | Printable)

Key: STDCXX-404
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Martin Sebor
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

[FreeBSD 6.2] error on <iconv.h> in locale utilities

Created: 08/May/07 02:03 AM   Updated: 24/Sep/07 11:56 PM
Component/s: Utilities
Affects Version/s: None
Fix Version/s: 4.2.0

Time Tracking:
Not Specified

Environment:
gcc 3.4.6/FreeBSD/x86
gcc 4.2/Mac OS X 10.4.10 (Tiger)
Issue Links:
Incorporates
 
Reference
 

Severity: Compiler Error
Resolution Date: 24/Sep/07 11:56 PM


 Description  « Hide
The locale utilities locale and localedef fail to build on FreeBSD due to assumptions about the <iconv.h> header which apparently isn't provided on this platform:

gcc -c -I$(TOPDIR)/include/ansi -D_RWSTDDEBUG -I$(TOPDIR)/include -I$(BUILDDIR)/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align $(TOPDIR)/util/localedef.cpp
In file included from $(TOPDIR)/util/def.h:45,
from $(TOPDIR)/util/localedef.cpp:30:
$(TOPDIR)/util/charmap.h:39:21: iconv.h: No such file or directory
In file included from $(TOPDIR)/util/def.h:45,
from $(TOPDIR)/util/localedef.cpp:30:
$(TOPDIR)/util/charmap.h:165: error: `iconv_t' does not name a type
$(TOPDIR)/util/charmap.h:165: error: extra semicolon
$(TOPDIR)/util/charmap.h:228: error: `iconv_t' does not name a type
$(TOPDIR)/util/charmap.h:228: error: extra semicolon
$(TOPDIR)/util/charmap.h:231: error: `iconv_t' does not name a type
$(TOPDIR)/util/charmap.h:231: error: extra semicolon
$(TOPDIR)/util/localedef.cpp: In function `bool process_command_line(ProgramOptions*, int, char**)':
$(TOPDIR)/util/localedef.cpp:475: warning: unused variable 'errors'
gmake: *** [localedef.o] Error 1



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #579018 Mon Sep 24 23:40:24 UTC 2007 sebor 2007-09-24 Martin Sebor <sebor@roguewave.com>

STDCXX-404
* charmap.h (<iconv.h>): Removed a redundant _MSC_VER guard.
(open_iconv_to_utf8, open_iconv_to_ext, ic_to_utf8_, ic_to_ext_):
Guarded declarations with _RWSTD_NO_ICONV instead of _MSC_VER.
* charmap.cpp (my_iconv_open): Guarded function definition with
_RWSTD_NO_ICONV instead of _MSC_VER.
(convert_to_utf8): Defined function unconditionally and guarded
implementation with _RWSTD_NO_ICONV (defaulting to returning 0
when the macro is #defined).
(ic_to_utf8_, ic_to_ext_): Guarded the assignment of variables
with _RWSTD_NO_ICONV.
Guarded MSVC-specific behavior with _MSC_VER.
Files Changed
MODIFY /incubator/stdcxx/trunk/util/charmap.h
MODIFY /incubator/stdcxx/trunk/util/charmap.cpp