David Mosberger-Tang wrote:
> Package: slimserver
> Version: 6.2.1-2
>
> My machine has Debian/stable as the base distribution and then I
> installed slimserver/unstable on top of that. At least in that
> configuration, slimserver failed to load the GD library and hence was
> unable to use TrueType fonts. The library couldn't be loaded because
> of unresolved references to PNG and Xft-related functions. I was able
> to work around this problem by adding this line to
> /etc/default/slimserver:
>
> export LD_PRELOAD=/usr/lib/libpng12.so.0:/usr/lib/libXft.so
>
> It's possible that this problem won't show on a pure Debian/unstable
> system, though I did verify that GD.so from Debian/unstable also
> doesn't list libpng and libXfg dependencies (I did not check all the
> dependent libraries, though).
Hmm, I'm confused: On both stable and unstable installations here, libgd
seems to have a dependency on libpng12. Furthermore, nothing seems to be
using libXft, running lsof over a running slimserver process shows
libfreetype and libfontconfig, no libXft.
Are you sure that your libgd installation isn't "strange"?
I get
srk:~ > ldd /usr/lib/libgd.so.2
linux-gate.so.1 => (0xffffe000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7f88000)
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0xb7f79000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb7eb2000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7e94000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7e65000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7df7000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7dd2000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7dc1000)
libm.so.6 => /lib/tls/libm.so.6 (0xb7d9b000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7c63000)
/lib/ld-linux.so.2 (0x80000000)
libdl.so.2 => /lib/tls/libdl.so.2 (0xb7c5f000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7c3e000)
>
> Another issue I'm wondering about: I have some music with Chinese
> titles in it. To get the titles displayed, I switched to the
> arphic/ukai.ttf font. However, AFAIK, there is no single font that
> covers all the Unicode glyphs, so perhaps SlimServer needs to be
> extended to support multiple Unicode fonts and to use the appropriate
> font for any given code. Firefox seems to do this nicely, but I have
> no idea what logic they use to pick which font (e.g., ukai.ttf does
> have English characters but they're ugly so you wouldn't want to use
> that font for anything other than the Chinese characters).
This way out of my pay grade, I'm afraid. I can push it into upstream
Bugzilla if you like (I've done that with the patches you supplied, as
well as applying them in Debian) but it might be better if you did so
yourself; the better to answer the inevitable queries.
http://bugs.slimdevices.com/
Cheers,
Simon.
>
> --david
>
>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]