It all started when I wrote a program using malloc, everything was ok until I executed it, then it said "glibc detected free() XX". I googled it, and didn't find much, other than someone saying to upgrade to the latest glibc version and coreutils, which I did.
I would download the latest glibc package
(download not upgrade with swaret, just download)
Then I'd do a telinit 1 as root and upgradepkg glibc-xxx.tgz
After that, telinit 3 and upgrade coreutils package if newer
version is available
Although, when I typed "telinit 1" as told to, it just crashed my box, so I did it without doing it...
Now when I try and compile a program I get this:
bt programming # gcc sounds.c -o sounds
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:/usr/lib/gcc/i486-slackware-linux/3.4.6/ ../../../libc.so: file format not recognized; treating as linker script
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:/usr/lib/gcc/i486-slackware-linux/3.4.6/ ../../../libc.so:5: parse error
collect2: ld returned 1 exit status
bt ~ $ /lib/libc.so.6
GNU C Library stable release version 2.7, by Roland McGrath et al.
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
Compiled by GNU CC version 4.1.2.
Compiled on a Linux >>220.127.116.11-smp<< system on 2008-02-09.
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
For bug reporting instructions, please see:
bt ~ $ uname -a
Linux bt 2.6.20-NOSMP #3 Sat Feb 24 15:52:59 GMT 2007 i686 Intel(R) Pentium(R) M processor 1.80GHz GenuineIntel GNU/Linux
All I want to do is compile and run something, but it seems like a complete headache.
Any ideas what to do?