thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xu xiong <xiong.xu...@gmail.com>
Subject Re: trunk revision 753622 build error
Date Thu, 19 Mar 2009 08:17:27 GMT
Hi David,

Sorry I forgot to set the library path.

[thriftTest@localhost ~]$ export LD_LIBRARY_PATH=/usr/local/lib
[thriftTest@localhost ~]$ ./a.out
[thriftTest@localhost ~]$ echo $?
0

Can you try again?

-Xiong


2009/3/19 David Reiss <dreiss@facebook.com>:
> Thanks for the account.  It seems that I cannot compile and run
> even a trivial C++ program on your host:
>
> [thriftTest@localhost ~]$ cat test.cc
> int main() { return 0; }
> [thriftTest@localhost ~]$ g++ -Wall test.cc
> [thriftTest@localhost ~]$ ./a.out
> ./a.out: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
> [thriftTest@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
>

Mime
View raw message