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

cp -a broke libpthread-0.10.so?



[Using Debian-GNU/Linux 2.4.27-1-386 #1 Fri Sep 3 06:24:46 UTC 2004 i686
GNU/Linux]

Hi all,

I don't know exactly whether this is a bug or what, but I deemed it
useful to report what happened.

While running a script to backup my /usr dir to a partition on a second
HD I had to stop it with CTRL+C as the destination partition had no more
space on it.
After that I noticed I could no longer use ls (or dir) and a few other
basic progs and got instead this error:

sleep: error while loading shared libraries: libpthread.so.0: invalid
ELF header

In my wandering around for a solution I did a vim /lib/libpthread.so.0
and could see a few lines of text (instead of the unreadable symbols
which usually that command would yield). Unluckily, I didn't take note
of the text!

After a while I apparently solved the problem copying the library
libpthread-0.10.so from the backup dir into my working /lib dir; now the
ls and similar commands work, but mplayer, xine, aviplay still complain
about missing libpthread.so.0! [see below].
I reconfigured or even re-installed those applications, re-configured
libc6, but I'm still getting the same error.

An ls -l /lib shows that libpthread.so.0 points to libpthread-0.10.so,
so I don't understand what is wrong. 
The main question, however, is what might have caused this mess!

Thanks for your attention.
Regards,
	Ennio.

PS: After re-installing libc6 directly from the Debian site everything
seems to work well now :-)

-------------------
# ldd /usr/bin/aviplay 2>file
-----------------------------
/usr/bin/aviplay: libpthread.so.0: version `GLIBC_2.3.2' not found
  (required by /usr/lib/libqt-mt.so.3)
/usr/bin/aviplay: libpthread.so.0: version `GLIBC_2.3.2' not found
  (required by /usr/lib/libaviplay-0.7.so.0)
/usr/bin/aviplay: libpthread.so.0: version `GLIBC_2.3.2' not found 
  (required by /usr/lib/libSDL-1.2.so.0)
/usr/bin/aviplay: libpthread.so.0: version `GLIBC_2.3.2' not found 
  (required by /usr/lib/libgthread-2.0.so.0)
/usr/bin/aviplay: libpthread.so.0: version `GLIBC_2.3.2' not found 
  (required by /usr/lib/libasound.so.2)


# ldd /usr/bin/mplayer 2>>file
------------------------------
/usr/bin/mplayer: libpthread.so.0: version `GLIBC_2.3.2' not found 
  (required by /usr/bin/mplayer)
/usr/bin/mplayer: libpthread.so.0: version `GLIBC_2.3.2' not found 
  (required by /usr/lib/libavcodec-cvs.so)
/usr/bin/mplayer: libpthread.so.0: version `GLIBC_2.3.2' not found 
  (required by /usr/lib/libasound.so.2)
/usr/bin/mplayer: libpthread.so.0: version `GLIBC_2.3.2' not found 
  (required by /usr/lib/libSDL-1.2.so.0)
/usr/bin/mplayer: libpthread.so.0: version `GLIBC_2.3.2' not found 
  (required by /usr/lib/libdirectfb-0.9.so.20)
/usr/bin/mplayer: libpthread.so.0: version `GLIBC_2.3.2' not found 
  (required by /usr/lib/libgthread-2.0.so.0)
/usr/bin/mplayer: libpthread.so.0: version `GLIBC_2.3.2' not found 
  (required by /usr/lib/libjack-0.80.0.so.0)
/usr/bin/mplayer: libpthread.so.0: version `GLIBC_2.3.2' not found 
  (required by /usr/lib/libldap_r.so.2)


# ldd /usr/bin/xine 2>>file
/usr/bin/xine: libpthread.so.0: version `GLIBC_2.3.2' not found 
  (required by /usr/bin/xine)
/usr/bin/xine: libpthread.so.0: version `GLIBC_2.3.2' not found 
  (required by /usr/lib/libxine.so.1)



Reply to: