Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: Misalf on November 29, 2016, 11:28:29 AM

Title: piCore 8.0 - xlsfonts: not found
Post by: Misalf on November 29, 2016, 11:28:29 AM
Hi
Code: [Select]
tc@box:~$ tce-load -i TC
libICE.tcz: OK
libSM.tcz: OK
aterm.tcz: OK
touch: cannot touch '/usr/local/tce.installed/libtiff': Permission denied
libtiff.tcz: OK
touch: cannot touch '/usr/local/tce.installed/libid3tag': Permission denied
libid3tag.tcz: OK
touch: cannot touch '/usr/local/tce.installed/giflib': Permission denied
giflib.tcz: OK
touch: cannot touch '/usr/local/tce.installed/libpng': Permission denied
libpng.tcz: OK
touch: cannot touch '/usr/local/tce.installed/freetype': Permission denied
freetype.tcz: OK
touch: cannot touch '/usr/local/tce.installed/imlib2': Permission denied
imlib2.tcz: OK
touch: cannot touch '/usr/local/tce.installed/icu': Permission denied
icu.tcz: OK
touch: cannot touch '/usr/local/tce.installed/graphite2': Permission denied
graphite2.tcz: OK
touch: cannot touch '/usr/local/tce.installed/pixman': Permission denied
pixman.tcz: OK
touch: cannot touch '/usr/local/tce.installed/lzo': Permission denied
lzo.tcz: OK
touch: cannot touch '/usr/local/tce.installed/libXrender': Permission denied
libXrender.tcz: OK
touch: cannot touch '/usr/local/tce.installed/expat2': Permission denied
expat2.tcz: OK
fc-cache: error while loading shared libraries: libharfbuzz.so.0: cannot open shared object file: No such file or directory
fontconfig.tcz: OK
cairo.tcz: OK
harfbuzz.tcz: OK
wbar.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
flwm_topside.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
libxkbfile.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
xkbcomp.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
xkeyboard-config.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
mtdev.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
libevdev.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
xf86-input-evdev.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
xf86-video-fbturbo.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
nettle.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
libxshmfence.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
libdrm.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
mesa.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
libpciaccess.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
libfontenc.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
libXfont.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
xorg-server.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
libXt.tcz: OK
/usr/bin/tce-load: line 290: desktop.sh: not found
libXmu.tcz: OK
Xlibs.tcz: OK
libXcursor.tcz: OK
glu.tcz: OK
fltk-1.3.tcz: OK
Xprogs.tcz: OK
Xorg.tcz: OK
TC.tcz: OK
tc@box:~$ xlsfonts
-sh: xlsfonts: not found
tc@box:~$ which xlsfonts
/usr/bin/xlsfonts
tc@box:~$ ls -lA $(which xlsfonts)
lrwxrwxrwx 1 root root 34 Jan  1 01:02 /usr/bin/xlsfonts -> /tmp/tcloop/Xlibs/usr/bin/xlsfonts
tc@box:~$ ls -lA $(readlink $(which xlsfonts))
-rwxr-xr-x 1 root root 13164 Aug 12  2014 /tmp/tcloop/Xlibs/usr/bin/xlsfonts
Whats wrong?
Title: Re: piCore 8.0 - xlsfonts: not found
Post by: bobbintb on December 23, 2016, 10:39:31 PM
I'm getting the same. Anyone?
Title: Re: piCore 8.0 - xlsfonts: not found
Post by: curaga on December 24, 2016, 12:21:43 AM
Please run file on it, could be a x86 binary.

Looks like aterm or libtiff have bad tce.installed permissions, fontconfig a missing dep, and what's with desktop.sh missing...
Title: Re: piCore 8.0 - xlsfonts: not found
Post by: Misalf on December 24, 2016, 08:02:27 AM
Code: [Select]
file $(readlink $(which xlsfonts))
/tmp/tcloop/Xlibs/usr/bin/xlsfonts: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 3.2.25, stripped

aterm.tcz  has  755  on  tce.installed .
Should be 775.

When I add  harfbuzz.tcz  to  fontconfig.tcz.dep  the  fc-cache: error  does not go away. Hmm.

Missing  desktop.sh  can be ignored I think, as it's just for creating menu entries and wbar icons but  Xlibs.tcz , which contains  desktop.sh , is loaded later.
Title: Re: piCore 8.0 - xlsfonts: not found
Post by: bmarkus on December 24, 2016, 02:36:50 PM

aterm.tcz  has  755  on  tce.installed .
Should be 775.


There are no aterm.tcz in tce.installed, only aterm with proper access rights and ownership.
Title: Re: piCore 8.0 - xlsfonts: not found
Post by: Misalf on December 24, 2016, 02:58:18 PM
I probably should have said ...
The directory  /usr/local/tce.installed  in the aterm extension doesn't have proper permissions. It's missing write access for Group.
Title: Re: piCore 8.0 - xlsfonts: not found
Post by: bmarkus on December 25, 2016, 01:11:47 AM
I probably should have said ...
The directory  /usr/local/tce.installed  in the aterm extension doesn't have proper permissions. It's missing write access for Group.

Till now you didn't clarify which file you are talking about and didn't provide output with the suspected wrong permission.

Startup script inside aterm.tcz:

Quote
tc@RPi3_DevSys:/tmp/tcloop/aterm/usr/local/tce.installed$ ls -l
total 1
-rwxrwxr-x 1 root staff 89 Aug 11  2014 aterm

tc@RPi3_DevSys:/tmp/tcloop/aterm/usr/local/tce.installed$
Title: Re: piCore 8.0 - xlsfonts: not found
Post by: Misalf on December 25, 2016, 06:56:09 AM
The startup script itself has proper permissions, but the directory containing it does not.
Code: [Select]
tc@box[p1]:/tmp/rpi/old/aterm/$ ls -dl usr/local/tce.installed
drwxr-xr-x 2 root staff 60 Aug 11  2014 usr/local/tce.installed/
This creates this error message for subsequent extension loading if the respective extensions don't have their own startup scripts.
Code: [Select]
touch: cannot touch '/usr/local/tce.installed/extension-name': Permission denied

This is not related to the  xlsfonts  error though.
Title: Re: piCore 8.0 - xlsfonts: not found
Post by: Misalf on January 24, 2017, 06:47:19 PM
The missing  /lib/ld-linux.so.3  is the culprit.
Code: [Select]
file $(readlink $(which xlsfonts))
/tmp/tcloop/Xlibs/usr/bin/xlsfonts: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 3.2.25, stripped
[...]

xlsfonts  should look for  ld-linux-armhf.so.3 .

Or an additional symlink can be created
Code: [Select]
cd /lib
sudo ln -s  ld-2.24.so  ld-linux.so.3