Bug 59758 - configure fails to detect STL with gcc-3.2.3
Summary: configure fails to detect STL with gcc-3.2.3
Status: RESOLVED NOT A BUG
Alias: None
Product: configure
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-14 03:59 UTC by Takumi ASAKI
Modified: 2003-06-16 02:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
configure log (100.41 KB, text/x-log)
2003-06-14 04:00 UTC, Takumi ASAKI
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Takumi ASAKI 2003-06-14 03:59:09 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc-3.2.3 
OS:          Linux

configure fails to detect STL.
>checking if STL implementation is SGI like... no
>checking if STL implementation is HP like... no
>configure: error: "no known STL type found - did you forget to install libstdc++-devel ?"

I install libstdc++3-3.2.3 & libstdc++3-devel-3.2.3.
Comment 1 Takumi ASAKI 2003-06-14 04:00:03 UTC
Created attachment 1795 [details]
configure log
Comment 2 Thiago Macieira 2003-06-14 04:09:49 UTC
Your config.log shows it's not a KDE bug at all. Your gcc 3.2.3 cannot compile any 
C++ code that #include <stdio.h>, apparently. 
 
Can you try compiling this small C++ program? 
----- 
#include <cstdio> 
 
int main() 
{ return 0; } 
----- 
 
If it fails (as I think it will), it's your installation, not KDE. 
Comment 3 Stephan Kulow 2003-06-14 11:26:27 UTC
Your STL _is_ not SGI like, it's broken. 
 
In file included from /usr/include/stdio.h:827,  
                 from /usr/include/c++/3.2.3/cstdio:52,  
                 from /usr/include/c++/3.2.3/i386-vine-linux/bits/c++io.h:35,  
                 from /usr/include/c++/3.2.3/bits/fpos.h:44,  
                 from /usr/include/c++/3.2.3/bits/char_traits.h:46,  
                 from /usr/include/c++/3.2.3/string:47,  
                 from configure:23332:  
/usr/include/bits/stdio.h: In function `int getchar()':  
/usr/include/bits/stdio.h:42: declaration of `int getchar() throw ()' throws   
   different exceptions  
/usr/include/stdio.h:444: than previous declaration `int getchar()'  
/usr/include/bits/stdio.h: In function `int getc_unlocked(FILE*)':  
/usr/include/bits/stdio.h:51: declaration of `int getc_unlocked(FILE*) throw ()  
   ' throws different exceptions  
/usr/include/stdio.h:456: than previous declaration `int getc_unlocked(FILE*)'  
/usr/include/bits/stdio.h: In function `int getchar_unlocked()':  
/usr/include/bits/stdio.h:58: declaration of `int getchar_unlocked() throw ()'   
   throws different exceptions  
/usr/include/stdio.h:457: than previous declaration `int getchar_unlocked()'  
/usr/include/bits/stdio.h: In function `int putchar(int)':  
/usr/include/bits/stdio.h:67: declaration of `int putchar(int) throw ()' throws   
   different exceptions  
/usr/include/stdio.h:483: than previous declaration `int putchar(int)'  
/usr/include/bits/stdio.h: In function `int fputc_unlocked(int, FILE*)':  
/usr/include/bits/stdio.h:76: declaration of `int fputc_unlocked(int, FILE*)   
   throw ()' throws different exceptions  
/usr/include/stdio.h:497: than previous declaration `int fputc_unlocked(int,   
   FILE*)'  
/usr/include/bits/stdio.h: In function `int putc_unlocked(int, FILE*)':  
/usr/include/bits/stdio.h:86: declaration of `int putc_unlocked(int, FILE*)   
   throw ()' throws different exceptions  
/usr/include/stdio.h:505: than previous declaration `int putc_unlocked(int,   
   FILE*)'  
/usr/include/bits/stdio.h: In function `int putchar_unlocked(int)':  
/usr/include/bits/stdio.h:93: declaration of `int putchar_unlocked(int) throw   
   ()' throws different exceptions  
/usr/include/stdio.h:506: than previous declaration `int putchar_unlocked(int)'  
/usr/include/bits/stdio.h: In function `__ssize_t getline(char**, size_t*,   
   FILE*)':  
/usr/include/bits/stdio.h:103: declaration of `__ssize_t getline(char**,   
   size_t*, FILE*) throw ()' throws different exceptions  
/usr/include/stdio.h:573: than previous declaration `__ssize_t getline(char**,   
   size_t*, FILE*)'  
Comment 4 Takumi ASAKI 2003-06-16 02:26:37 UTC
I tested Thiago Macieira's test source. 
 
>#include <cstdio>  
> 
>int main()  
>{ return 0; }  
 
OK: g++ a.cpp 
OK: g++ -pedantic a.cpp 
OK: g++ -O a.cpp 
NG: g++ -pedantic -O a.cpp 
 
Maybe it's gcc's bug. 
I'll report this to gcc.