BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000075 [uClibc++] Other minor always 02-01-05 13:02 08-02-05 20:14
Reporter scott View Status public  
Assigned To gkajmowi
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0000075: include/ios compile error if wchar is off
Description ios tries to call btowc even if wide-char support is not enabled. Looks like it needs an 'ifdef' around the call?

to reproduce this error, compile the CVS version for powerpc, big endian, but keep wchar off.

If I turn on wchar, the problem goes away.
Additional Information g++ -c -Wall -Wno-trigraphs -W -pedantic -Os -fno-builtin -nostdinc++ -ansi -I../include -fPIC -o string.o string.cpp
In file included from ../include/istream:20,
                 from ../include/string_iostream:20,
                 from string.cpp:25:
../include/ios: In instantiation of `std::basic_ios<wchar_t, std::char_traits<wchar_t> >':
../include/ios:395: instantiated from here
../include/ios:277: no type named `int_type' in `struct
   std::char_traits<wchar_t>'
../include/ios:278: no type named `pos_type' in `struct
   std::char_traits<wchar_t>'
../include/ios:279: no type named `off_type' in `struct
   std::char_traits<wchar_t>'
../include/ios: In member function `char std::basic_ios<charT,
   traits>::narrow(charT, char) const [with charT = wchar_t, traits =
   std::char_traits<wchar_t>]':
../include/ios:397: `wctob' undeclared (first use this function)
../include/ios:397: (Each undeclared identifier is reported only once for each
   function it appears in.)
../include/ios:398: warning: comparison is always false due to limited range of
   data type
../include/ios: In member function `charT std::basic_ios<charT,
   traits>::widen(char) const [with charT = wchar_t, traits =
   std::char_traits<wchar_t>]':
../include/ios:422: `btowc' undeclared (first use this function)
make[1]: *** [string.o] Error 1
make[1]: Leaving directory `/home/james/uClibc++/src'
make: *** [all] Error 2
Attached Files  ios.patch [^] (10,816 bytes) 02-01-05 13:16
 ios2.patch [^] (931 bytes) 02-01-05 13:27

- Relationships

- Notes
(0000032)
scott
02-01-05 13:16

I uploaded a patch that puts IFDEF around the necessary class templates to prevent errors if wchar is off.
 
(0000033)
scott
02-01-05 13:28

sorry about the first patch -- please ignore...

see the other patch (ios2.patch) for the working one.
 
(0000035)
gkajmowi
02-01-05 13:36

Should be committed to CVS in about 10 minutes. I found another few similar problems which I am addressing at the same time.
 
(0000036)
gkajmowi
02-01-05 13:46

Fixed in CVS. Will be in 0.1.10+
Reporter gains 3 points for reporting, providing partial fix, and using bug tracking system.
 

- Issue History
Date Modified Username Field Change
02-01-05 13:02 scott New Issue
02-01-05 13:16 scott File Added: ios.patch
02-01-05 13:16 scott Note Added: 0000032
02-01-05 13:27 scott File Added: ios2.patch
02-01-05 13:28 scott Note Added: 0000033
02-01-05 13:36 gkajmowi Note Added: 0000035
02-01-05 13:36 gkajmowi Status assigned => acknowledged
02-01-05 13:46 gkajmowi Status acknowledged => resolved
02-01-05 13:46 gkajmowi Resolution open => fixed
02-01-05 13:46 gkajmowi Note Added: 0000036
08-02-05 20:14 andersen Status resolved => closed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker