Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: help: configure: error: a working C++ compiler is required



On Mon, Oct 13, 2008 at 3:56 AM, Christos Zoulas 
<christos%astron.com@localhost> wrote:
> In article 
> <d70139200810121911y212fcb26idf4052a699de2384%mail.gmail.com@localhost>,
> Mecislav Salar <mecislavsalar%googlemail.com@localhost> wrote:
>>On Mon, Oct 13, 2008 at 2:40 AM, Luke Mewburn <lukem%netbsd.org@localhost> 
>>wrote:
>>> On Mon, Oct 13, 2008 at 02:33:26AM +0100, Mecislav Salar wrote:
>>>  | could following be issue?
>>>  |
>>>  | # ls -l /lib/libc*
>>>  | lrwxr-xr-x  1 root  wheel       14 Sep  6 20:15 /lib/libc.so ->
>>libc.so.12.163
>>>  | lrwxr-xr-x  1 root  wheel       14 Sep  6 20:15 /lib/libc.so.12 ->
>>>  | libc.so.12.163
>>>  | -r--r--r--  1 root  wheel  1161043 Jul  7 02:19 /lib/libc.so.12.160
>>>
>>> Probably, especially if the 'c++' command won't execute.
>>>
>>
>># cat hello.cpp
>>#include <iostream>
>>using namespace std;
>>main()
>>{
>> cout << "Hello";
>> return 0;
>>}
>>
>># /usr/bin/c++ /tmp/hello.cpp
>>/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetIP'
>>/usr/lib/libstdc++.so: undefined reference to `_Unwind_Resume_or_Rethrow'
>>/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetRegionStart'
>>/usr/lib/libstdc++.so: undefined reference to `_Unwind_Resume'
>>/usr/lib/libstdc++.so: undefined reference to `_Unwind_DeleteException'
>>/usr/lib/libstdc++.so: undefined reference to `_Unwind_RaiseException'
>>/usr/lib/libstdc++.so: undefined reference to `_Unwind_SetIP'
>>/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetTextRelBase'
>>/usr/lib/libstdc++.so: undefined reference to 
>>`_Unwind_GetLanguageSpecificData'
>>/usr/lib/libstdc++.so: undefined reference to `_Unwind_SetGR'
>>/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetDataRelBase'
>>
>>maybe should rm -rf /
>>and start afresh?
>>
>>sorry if Mecislav wasted time, thank you
>
> does adding -shared-libgcc help?
>

# /usr/bin/c++ -shared-libgcc /tmp/hello.cpp
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetIP'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_Resume_or_Rethrow'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetRegionStart'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_Resume'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_DeleteException'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_RaiseException'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_SetIP'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetTextRelBase'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetLanguageSpecificData'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_SetGR'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetDataRelBase'

proper brokemaybe

> christos
>
>
>


Home | Main Index | Thread Index | Old Index