WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: compiletc.tcz  (Read 2872 times)

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
compiletc.tcz
« 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: compiletc.tcz
« Reply #1 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
« Last Edit: June 17, 2009, 02:46:14 AM by Juanito »

Offline combo3

  • Full Member
  • ***
  • Posts: 148
Re: compiletc.tcz
« Reply #2 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: compiletc.tcz
« Reply #3 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
« Last Edit: November 10, 2009, 05:04:40 AM by Juanito »

Offline combo3

  • Full Member
  • ***
  • Posts: 148
Re: compiletc.tcz
« Reply #4 on: November 10, 2009, 10:41:49 AM »
Sounds good. Thanks for the response.