[ILUG] http://www.linux.ie/archive/msg02119.html Re: checking whether the C compiler (gcc ) works... no
Luke Trif
lucian at excitehome.net
Mon Sep 18 18:51:37 IST 2000
Hello C.,
Monday, September 18, 2000, 10:22:57 AM, you wrote:
CH> [It's usually better to reply to a list as you will get more responses,
CH> quicker, and probably better (in case the responder makes a mistake :-)]
CH> Luke Trif wrote:
>>
>> Hello C.,
>>
>> Monday, September 18, 2000, 2:40:05 AM, you wrote:
>>
>> CH> Luke Trif wrote:
>> >>
>> >> Hello ilug,
>> >>
>> >> I am using Linux mandrake and am getting the same msg on everything
>> >> that i try to compile. i cant install anything that is in *.tar
>> >> format. If you can take a look at the errors that i am getting and
>> >> point me in the right direction i would apreciate it..
>> >> i have ran the command you specified in the reply msg and pasted the
>> >> results in here
>> >> I am using linux mandrake 7.0 with gcc ver 2.95
>> >> sh -x ./configure >configure.log 2>&1
>> >>
>> >> checking for gcc... gcc
>> >> > checking whether the C compiler (gcc ) works... no
>> >> > configure: error: installation or configuration problem: C compiler
>> CH> [snip]
>>
>> CH> Is it possible that either the compielr gcc is not installed or that it is
>> CH> not installed correctly ?
>>
>> CH> What results do you get if you save the text below (e.g. to example.c ) :
>> CH> int main()
>> CH> {
>> CH> printf("hello world\n" );
>> CH> }
>>
>> CH> and try to compile it with the command "gcc example.c -o example".
>>
>> CH> This should prove whether your compiler works or not.
>>
>> CH> Con
>>
>> after taking the above step this is what i got
>> [root at ADSL lukegt]# gcc test.c -o test
>> /usr/lib/libc.a: could not read symbols: Malformed archive
>> collect2: ld returned 1 exit status
CH> A dodgy /usr/lib/libc.a is VERY strange. What does the output of the command
CH> "file /usr/lib/libc.a" show ?
CH> Also do run "locate /usr/lib/libc.a".
CH> Do you have any environemnt variables setup ?
Run "env >> /tmp/env" and attach the file /tmp/env to the email.
CH> Con
CH> "file /usr/lib/libc.a" show ?
CH> a
/usr/lib/libc.a: current ar archive
[lukegt at ADSL lukegt]$ locate /usr/lib/libc.a
locate: warning: database /var/lib/slocate/slocate.db' is more than 8 days old
--
Best regards,
Luke mailto:lucian at excitehome.net
More information about the ILUG
mailing list