Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: danielibarnes on June 16, 2009, 08:57:54 PM

Title: compiletc.tcz
Post by: danielibarnes on June 16, 2009, 08:57:54 PM
On Tiny Core 1.4.3
ldconfig -v > /dev/null

prints
ldconfig: Cannot stat /usr/lib/libpng.so: No such file or directory

The reason for this is the compiletc.tcz extension for 1.x includes the symbolic link
/usr/lib/libpng.so -> /tmp/tcloop/compiletc/usr/lib/libpng.so

which resolves to
/tmp/tcloop/compiletc/usr/lib/libpng.so -> libpng12.so

but libpng12.so does not exist in /tmp/tcloop/compiletc/usr/lib/, therefore the error.

As a workaround, I can recreate the softlink directly:
sudo ln -s -f libpng12.so /usr/lib/libpng.so
Title: Re: compiletc.tcz
Post by: Juanito on June 16, 2009, 11:27:26 PM
Thanks for pointing that out.

This arises because the symlink libpng.so -> libpng12.so does not exist in the base, whereas libpng12.so does exist - some applications require the symlink to be present in order to compile and maybe some applications also (gimp1?) require it to run - and thus libpng.so is linking to a file that is not present in the extension.

I can see two solutions:

1. Add libpng.so -> libpng12.so to the base and remove it from compiletc/base-devs
2. Add libpng.so -> libpng12.so to user.tar.gz in compiletc.tcz/base-devs.tcz

Comments (perhaps too late to add the symlink to the base in tc_1.x)?

Note that "ldconfig" does not give a libpng error in tc_2.x
Title: Re: compiletc.tcz
Post by: combo3 on November 09, 2009, 04:00:25 PM
Apologies for resurrecting an old thread, but the solution to this problem appears to have fallen between the cracks.

Has a decision been made between options 1 and 2?

I also found a few other broken (libc6 ?) symlinks in the base-devs package.

$ find /usr/lib -type l -exec test ! -e  {}  \; -print

/usr/lib/libthread_db.so
/usr/lib/libpng.so
/usr/lib/libnss_nisplus.so
/usr/lib/libnss_nis.so
/usr/lib/libnss_hesiod.so
/usr/lib/libBrokenLocale.so
Title: Re: compiletc.tcz
Post by: Juanito on November 09, 2009, 10:27:17 PM
I haven't thought about this for a while - let me have a look.

Note that some of the links you mention below relate to the libs in the glibc_add_libs extension

Edit: OK, so what I'll do is:

1. move the following links to glibs_add_libs
/usr/lib/libthread_db.so
/usr/lib/libnss_nisplus.so
/usr/lib/libnss_nis.so
/usr/lib/libnss_hesiod.so
/usr/lib/libBrokenLocale.so

2. delete the following from base-devs
/usr/lib/libpng.so

3. and request that libpng.so -> libpng12.so is added to the base
Title: Re: compiletc.tcz
Post by: combo3 on November 10, 2009, 10:41:49 AM
Sounds good. Thanks for the response.