Thanks for the account. It seems that I cannot compile and run
even a trivial C++ program on your host:
[thriftt...@localhost ~]$ cat test.cc
int main() { return 0; }
[thriftt...@localhost ~]$ g++ -Wall test.cc
[thriftt...@localhost ~]$ ./a.out
./a.out: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by
/usr/lib/libstdc++.so.6)
[thriftt...@localhost ~]$ echo $?
1
It looks like maybe your libstdc++ and gcc are not compatible?
I'm not really sure how to fix this, but I would suggest starting
by reinstalling gcc, g++, and libstdc++. (I am not liable if
this totally breaks your machine. It is just a guess.)
I'll also create a task to make configure fail faster when
problems like this occur. We could have given you a *much*
better error message.
--David
David Reiss wrote:
> I'm not sure what the problem is, then. This has never been
> reported before. If you have a shell account that you can
> give me access to where I can reproduce the problem, I can
> try to solve it, otherwise I'm not sure what else to try.
>
> --David
>
> xu xiong wrote:
>>> Can you try compiling a file containing only...
>>>
>>> #include <cstdlib>
>>>
>>> with the command "g++ -c -Wall test.cc"? If that doesn't work,
>>> you definitely have something wronte with your libc or libstdc++
>>> installation. If it does, I'm not sure what the problem is.
>>>
>> It does work.
>> So I'm totally lost.
>> Can the glibc is not configured right?
>> I also tried to compile glibc2.6.1 but failed.
>>
>> -Xiong