
|
If you were logged in you would be able to see more operations.
|
|
|
| Severity: |
Compiler Error
|
| Resolution Date: |
24/Sep/07 11:56 PM
|
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
|
|
Description
|
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 |
Show » |
| 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
|
|