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
0000052 [uClibc++] Other minor always 01-20-05 12:02 08-02-05 20:14
Reporter scott View Status public  
Assigned To gkajmowi
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0000052: string.c error in CVS version of 1/20/2005
Description g++ -c -Wall -Wno-trigraphs -W -pedantic -Os -fno-builtin -nostdinc++ -ansi -I../include -fPIC -o string.o string.cpp

../include/string: In instantiation of `std::basic_string<char, std::char_traits<char>, std::allocator<char> >':
string.cpp:33: instantiated from here
../include/string:62: declaration of `typedef char*std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >::const_iterator'
../include/string:60: conflicts with previous declaration `typedef const
   char*std::basic_string<char, std::char_traits<char>, std::allocator<char>
   >::const_iterator'
../include/string:64: declaration of `typedef class
   std::reverse_iterator<char*> std::basic_string<char, std::char_traits<char>,
   std::allocator<char> >::iterator'
../include/string:59: conflicts with previous declaration `typedef
   char*std::basic_string<char, std::char_traits<char>, std::allocator<char>
   >::iterator'
../include/string:65: declaration of `typedef class std::reverse_iterator<const
   char*> std::basic_string<char, std::char_traits<char>, std::allocator<char>
   >::const_iterator'
../include/string:60: conflicts with previous declaration `typedef const
   char*std::basic_string<char, std::char_traits<char>, std::allocator<char>
   >::const_iterator'
../include/string:64: duplicate nested type `std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >::iterator'
../include/string:62: duplicate nested type `std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >::const_iterator'
../include/string:65: duplicate nested type `std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >::const_iterator'
make[1]: *** [string.o] Error 1
make[1]: Leaving directory `/home/james/uClibc++/src'
make: *** [all] Error 2
Additional Information
Attached Files

- Relationships

- Notes
(0000017)
scott
01-20-05 12:06
edited on: 01-20-05 12:10

looks like copy/paste error in file: include/string

        typedef typename vector<Ch, A>::iterator iterator;
        typedef typename vector<Ch, A>::const_iterator const_iterator;
        typedef char * iterator;
        typedef char * const_iterator;

last 2 typedefs are also 'iterator'

see also next 2 lines after these four...for a similar error.

 
(0000018)
gkajmowi
01-20-05 12:56

I think the fix is simple - I will have the problem fixed tommorow
 
(0000034)
scott
02-01-05 13:31

I'm still getting this error. I use powerpc, big endian (if that matters).

I comment out the two duplicate definitions to fix it, line 57-58....

        typedef typename vector<Ch, A>::iterator iterator;
        typedef typename vector<Ch, A>::const_iterator const_iterator;
        // typedef char * iterator;
        // typedef char * const_iterator;
 
(0000037)
gkajmowi
02-01-05 13:50

Which version are you using? This was fixed in CVS when I marked the issue resolved. Have you grabbed CVS, or are you still using 0.1.9? I may release 0.1.10 sometime soon, if that helps. Please let me know.
 
(0000038)
gkajmowi
02-01-05 14:00

My mistake - I've found the problem (I was thinking of a similar problem I ran into in another file)
 
(0000039)
gkajmowi
02-01-05 14:03

Fixed in CVS. Will be fixed in 0.1.10. Sorry for the run-around.
 

- Issue History
Date Modified Username Field Change
01-20-05 12:02 scott New Issue
01-20-05 12:06 scott Note Added: 0000017
01-20-05 12:10 scott Note Edited: 0000017
01-20-05 12:56 gkajmowi Note Added: 0000018
01-20-05 12:56 gkajmowi Status assigned => acknowledged
01-21-05 16:47 gkajmowi Status acknowledged => resolved
01-21-05 16:47 gkajmowi Fixed in Version  => 0.1.9
01-21-05 16:47 gkajmowi Resolution open => fixed
02-01-05 13:31 scott Status resolved => feedback
02-01-05 13:31 scott Resolution fixed => reopened
02-01-05 13:31 scott Note Added: 0000034
02-01-05 13:50 gkajmowi Note Added: 0000037
02-01-05 14:00 gkajmowi Note Added: 0000038
02-01-05 14:03 gkajmowi Status feedback => resolved
02-01-05 14:03 gkajmowi Fixed in Version 0.1.9 =>
02-01-05 14:03 gkajmowi Resolution reopened => fixed
02-01-05 14:03 gkajmowi Note Added: 0000039
08-02-05 20:14 andersen Status resolved => closed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker