[ILUG] http://www.linux.ie/archive/msg02119.html Re: checking
whether the C compiler (gcc ) works... no
C. Hennessy
Con.Hennessy at airtel-atn.com
Mon Sep 18 18:23:34 IST 2000
[It's usually better to reply to a list as you will get more responses,
quicker, and probably better (in case the responder makes a mistake :-)]
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
A dodgy /usr/lib/libc.a is VERY strange. What does the output of the command
"file /usr/lib/libc.a" show ?
Also do run "locate /usr/lib/libc.a".
Do you have any environemnt variables setup ?
Run "env > /tmp/env" and attach the file /tmp/env to the email.
Con
More information about the ILUG
mailing list