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.
Created attachment 1795 [details] configure log
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.
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*)'
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.