[ILUG] Re[2]: /usr/lib/libc.a: could not read symbols: Malformed archive
Luke Trif
lucian at excitehome.net
Mon Sep 18 19:19:57 IST 2000
Hello C.,
Monday, September 18, 2000, 11:14:06 AM, you wrote:
CH> Luke Trif wrote:
CH> [snip]
>> >> 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
CH> [snip]
>> >> 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> [snip]
>> >> 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> Please try to compile with the command "gcc -v test.c -o test".
CH> This will give some more detailed output.
CH> BTW: I'm going home now and will only follow this tommorrow
CH> morning, so hopefully someone else here can help you, til
CH> tommorrow.
CH> Con
Thank you very much for the help i really apreciate it. i have tried
to reinstall mandrake with the normal and development mode..but i am
getting the same issue that we are discussing.
included in the email is the output for gcc -v test.c -o test
[lukegt at ADSL lukegt]$ gcc -v test.c -o test
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium -D__pentium__ test.c /tmp/cc6kC7MR.i
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/../../../../include/g++-3
/usr/local/include
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/../../../../i586-mandrake-linux/include
End of omitted list.
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/cc1 /tmp/cc6kC7MR.i -quiet -dumpbase test.c -version -o /tmp/ccUxNArB.s
GNU C version 2.95.2 19991024 (release) (i586-mandrake-linux) compiled by GNU C version 2.95.2 19991024 (release).
as -V -Qy -o /tmp/cc4fRGgk.o /tmp/ccUxNArB.s
GNU assembler version 2.9.5 (i686-pc-linux-gnu) using BFD version 2.9.5.0.16
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o test /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/crtbegin.o -L/usr/lib/gcc-lib/i586-mandrake-linux/2.95.2 /tmp/cc4fRGgk.o -lgcc -lc -lgcc /usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/crtend.o /usr/lib/crtn.o
/usr/lib/libc.a: could not read symbols: Malformed archive
collect2: ld returned 1 exit status
--
Best regards,
Luke mailto:lucian at excitehome.net
More information about the ILUG
mailing list