Tiny Core Extensions > TCE Bugs

compiletc.tcz

(1/1)

danielibarnes:
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

Juanito:
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

combo3:
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

Juanito:
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

combo3:
Sounds good. Thanks for the response.

Navigation

[0] Message Index

Go to full version