WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mpd: error while loading shared libraries: libSM.so.6  (Read 9362 times)

Offline raflik

  • Newbie
  • *
  • Posts: 8
mpd: error while loading shared libraries: libSM.so.6
« on: September 19, 2010, 03:34:46 PM »
I installed mpd.tcz with ab and this resulted in mpd which - when executed - cannot find libSM.so.6 library.

Apart from that I wonder why tinycore's mpd has dependencies on X libraries, I normally use Arch Linux. On this distro ldd of mpd gives:

   linux-gate.so.1 =>  (0xb777e000)
   libavahi-common.so.3 => /usr/lib/libavahi-common.so.3 (0xb7750000)
   libavahi-client.so.3 => /usr/lib/libavahi-client.so.3 (0xb7741000)
   libavahi-glib.so.1 => /usr/lib/libavahi-glib.so.1 (0xb773e000)
   libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7676000)
   libmpcdec.so.5 => /usr/lib/libmpcdec.so.5 (0xb7669000)
   libwavpack.so.1 => /usr/lib/libwavpack.so.1 (0xb7643000)
   libm.so.6 => /lib/libm.so.6 (0xb761e000)
   libfaad.so.2 => /usr/lib/libfaad.so.2 (0xb75df000)
   libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb755e000)
   libcurl.so.4 => /usr/lib/libcurl.so.4 (0xb7511000)
   libmms.so.0 => /usr/lib/libmms.so.0 (0xb7502000)
   libid3tag.so.0 => /usr/lib/libid3tag.so.0 (0xb74f0000)
   libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3 (0xb74e8000)
   libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb74c1000)
   libogg.so.0 => /usr/lib/libogg.so.0 (0xb74bc000)
   libFLAC.so.8 => /usr/lib/libFLAC.so.8 (0xb746f000)
   libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0xb744d000)
   libmodplug.so.1 => /usr/lib/libmodplug.so.1 (0xb7386000)
   libmad.so.0 => /usr/lib/libmad.so.0 (0xb736f000)
   libavformat.so.52 => /usr/lib/libavformat.so.52 (0xb7290000)
   libavcodec.so.52 => /usr/lib/libavcodec.so.52 (0xb6857000)
   libavutil.so.50 => /usr/lib/libavutil.so.50 (0xb683f000)
   libmp3lame.so.0 => /usr/lib/libmp3lame.so.0 (0xb67cc000)
   libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0xb6656000)
   libao.so.4 => /usr/lib/libao.so.4 (0xb664e000)
   libasound.so.2 => /usr/lib/libasound.so.2 (0xb6589000)
   libshout.so.3 => /usr/lib/libshout.so.3 (0xb6579000)
   libsamplerate.so.0 => /usr/lib/libsamplerate.so.0 (0xb640e000)
   libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb640a000)
   libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb63ee000)
   libpthread.so.0 => /lib/libpthread.so.0 (0xb63d4000)
   libc.so.6 => /lib/libc.so.6 (0xb6289000)
   libssp.so.0 => /usr/lib/libssp.so.0 (0xb6285000)
   libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xb624c000)
   librt.so.1 => /lib/librt.so.1 (0xb6243000)
   libdl.so.2 => /lib/libdl.so.2 (0xb623f000)
   libpcre.so.0 => /lib/libpcre.so.0 (0xb6208000)
   /lib/ld-linux.so.2 (0xb777f000)
   libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0xb61b6000)
   libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0xb603c000)
   libz.so.1 => /usr/lib/libz.so.1 (0xb6027000)
   libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb5f39000)
   libavcore.so.0 => /usr/lib/libavcore.so.0 (0xb5f36000)
   libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb5f24000)
   libxvidcore.so.4 => /usr/lib/libxvidcore.so.4 (0xb5e17000)
   libx264.so.104 => /usr/lib/libx264.so.104 (0xb5d72000)
   libvpx.so.0 => /usr/lib/libvpx.so.0 (0xb5cd9000)
   libtheoraenc.so.1 => /usr/lib/libtheoraenc.so.1 (0xb5c96000)
   libtheoradec.so.1 => /usr/lib/libtheoradec.so.1 (0xb5c7c000)
   libschroedinger-1.0.so.0 => /usr/lib/libschroedinger-1.0.so.0 (0xb5bc8000)
   libopenjpeg.so.2 => /usr/lib/libopenjpeg.so.2 (0xb5bab000)
   libopencore-amrwb.so.0 => /usr/lib/libopencore-amrwb.so.0 (0xb5b96000)
   libopencore-amrnb.so.0 => /usr/lib/libopencore-amrnb.so.0 (0xb5b6a000)
   libfaac.so.0 => /usr/lib/libfaac.so.0 (0xb5b58000)
   libva.so.1 => /usr/lib/libva.so.1 (0xb5b4f000)
   libspeex.so.1 => /usr/lib/libspeex.so.1 (0xb5b3a000)
   libtheora.so.0 => /usr/lib/libtheora.so.0 (0xb5aea000)
   liborc-0.4.so.0 => /usr/lib/liborc-0.4.so.0 (0xb5a83000)

I see no X dependencies.

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
Re: mpd: error while loading shared libraries: libSM.so.6
« Reply #1 on: September 19, 2010, 06:11:05 PM »
Is there no /usr/lib/libSM.so.6 in your installation?

Which version of TC do you use? Maybe the library is too old?

Quote
...
I see no X dependencies.

And you see no :

Code: [Select]
libpulse-simple.so.0 => /usr/local/lib/libpulse-simple.so.0 (0xb71d3000)
libpulse.so.0 => /usr/local/lib/libpulse.so.0 (0xb71a1000)
libpulsecommon-UNKNOWN.UNKNOWN.UNKNOWN.so => /usr/local/lib/libpulsecommon-UNKNOWN.UNKNOWN.UNKNOWN.so (0xb6d7b000)

Which means that your Arch Linux version of mpd has no support for the "PulseAudio sound server". The support of PulseAudio generates the dependency to libSM.
« Last Edit: September 19, 2010, 06:59:42 PM by TaoTePuh »

Offline raflik

  • Newbie
  • *
  • Posts: 8
Re: mpd: error while loading shared libraries: libSM.so.6
« Reply #2 on: September 20, 2010, 04:17:35 PM »
No, there isn't.

I thought that tinycore's philosophy is about (small) size, so I don't get the idea of pulseaudio support which I don't want to use. I totally don't need X libs, because I don't want X server at all.

I guess I need to prepare my own extension for mpd to meet my needs... But before I do that I would like to try out the version in repo and would be interested in getting that damn libSM.so.6;).

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: mpd: error while loading shared libraries: libSM.so.6
« Reply #3 on: September 20, 2010, 05:28:29 PM »
@raflik: I was suprised reading your report about the missing lib, as I can find it in TC 3.1:
Code: [Select]
tc@box:~$ version
tinycore_3.1
tc@box:~$ ldconfig -p | grep libSM.so.6
        libSM.so.6 (libc6) => /usr/lib/libSM.so.6
Are you using maybe using MC (which I have not checked)?

I think it would be a fair assumption that most extensions are built for TC (and not MC) users. But nothing is stopping you to create your own extension and use it either privately or submit it for the wider public. I just think we all need to be sensible that we don't end up with too many different extensions for a given application.

In general I'd prefer to have a "base" extension that delivers just the minimal capabilities and "extras" that build on top of it. I assume that it is not possible in this case. Seeing the large dependency tree of 'mpd.tcz' I imagine that this is pretty much what I'd call a "fat" version. I'm just concious that few people will agree to what should be seen as a "minimal" configuration. So you end up with creating your own extension, which is not a "biggy" in my view.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: mpd: error while loading shared libraries: libSM.so.6
« Reply #4 on: September 20, 2010, 05:49:19 PM »
FYI /usr/lib/libSM.so.6 is in Xlibs.gz which must be loaded if using microcore and you desire the X libs that are available in tinycore.
10+ Years Contributing to Linux Open Source Projects.

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
Re: mpd: error while loading shared libraries: libSM.so.6
« Reply #5 on: September 20, 2010, 06:02:12 PM »
How tiny is tiny enough? We had e.g. a "tiny" version of mpd which had no supoort for mp3 streaming (only ogg works). But my iPod can not handle ogg-stream ... someone else needs FLAC,  SID or MIDI-Support, someone else support for SHOUTcast or ... etc. ...

My plan for the "main version" was: "As much as possible options".

But now I have the build-scripts for mpd and can quickly generate stripped down versions of mpd. However, Jason should make a statement if that's okay for the repo.

And we must agree on the embedded options for this min-versions. Here is a list of possible options:

########### MPD CONFIGURATION ############

 Client Support:
 IPv6 support ..................enabled
 TCP support ...................enabled
 Unix domain socket support ....enabled

 Playback Support:
 ALSA support ..................enabled
 FIFO support ..................enabled
 HTTP daemon support ...........enabled
 JACK support ..................enabled
 libao support .................enabled
 OSS support ...................enabled
 OS X support ..................disabled
 Pipeline output support .......disabled
 PulseAudio support ............enabled
 Media MVP support .............enabled
 SHOUTcast support .............enabled
 Solaris /dev/audio support ....disabled

 Streaming Encoder Support:
 LAME mp3 encoder ..............enabled
 Ogg Vorbis encoder ............enabled

 File Format Support:
 AAC support ...................enabled
 C64 SID support ...............disabled
 FFMPEG support ................enabled
 FLAC support ..................enabled
 fluidsynth MIDI support .......disabled
 MikMod support ................disabled
 MODPLUG support ...............enabled
 MAD mp3 decoder support .......enabled
 MP4 support ...................enabled
 Musepack (MPC) support ........enabled
 OggFLAC support ...............enabled(FLAC 1.1.3)
 Ogg Vorbis support ............enabled
   using tremor.................no
 Wave file support .............enabled
 WavPack support ...............enabled
 wildmidi MIDI support .........disabled

 Archive support:
 BZ2 archives support ..........enabled
 ISO 9660 archives support .....enabled
 ZIP archives support ..........enabled

 Streaming support:
 last.fm radio support .........enabled
 libcurl support (streaming) ...enabled
 libmms support ................enabled

 Other features:
 ID3 tag support ...............enabled
 libsamplerate support .........enabled
 Zeroconf support ..............avahi
 libcue support ................enabled

##########################################
« Last Edit: September 20, 2010, 06:04:50 PM by TaoTePuh »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: mpd: error while loading shared libraries: libSM.so.6
« Reply #6 on: September 20, 2010, 06:14:48 PM »
As far as naming, I think that perhaps mpd.tcz should be the full version that most folks want, and maybe an mpd-minimal.tcz for those that want minimal functionality. 

Offline raflik

  • Newbie
  • *
  • Posts: 8
Re: mpd: error while loading shared libraries: libSM.so.6
« Reply #7 on: September 21, 2010, 03:54:42 PM »
Yeah, I forgot to mention that I am using microcore;). That is true that it is not so obvious which configuration is standard and which is bloated. I have no experience in building tinycore's extensions so I would be very grateful if TaoTePuh would share his build scripts with me and I could set up my customized version.

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
Re: mpd: error while loading shared libraries: libSM.so.6
« Reply #8 on: September 22, 2010, 01:52:42 PM »
Okay, I have attached 3 files:

mpd.build.configure_options
This file contains a list of available options (./configure --help) which can be switched by enable/disable or with/without in the ./configure statement (see script "mpd.build" below).

mpd.build
This is the build script. You have to adjust at least the following lines :
Code: [Select]
Line 25 : SRCNAM=
Line 90 : ./configure --prefix=/usr/local

"SRCNAM" :
Where is the MPD-TAR-Ball.

"./configure --prefix=/usr/local"
Here are your options for the build prozess (see file mpd.build.configure_options).
Note: Do not delete the option "--prefix=/usr/local".

mpd.build.tce.lst
This file contains a list of needed extensions by the build prozess. You have to customize the list to your requirements. You have to manually download all these extensions before you start the build process.

After building, you have 3 new directories in /tmp :

/tmp/mpd_work
This is the working directory. Use it for debugging or manual rebuilding.

/tmp/mpd
Here is your new extension mpd.tcz as well as mpd.tcz.list and mpd.tcz.md5.txt.
You must copy these 3 files into your optional-directory.

/tmp/mpd-doc
Here is your new extension mpd-doc.tcz (the doc files for mpd) as well as mpd-doc.tcz.list and mpd-doc.tcz.md5.txt.
You must copy these 3 files into your optional-directory.

Note:
You have to delete these 3 folders before you start a new build prozess (rm-rf /tmp/mpd*).
« Last Edit: September 22, 2010, 02:08:07 PM by TaoTePuh »

Offline raflik

  • Newbie
  • *
  • Posts: 8
Re: mpd: error while loading shared libraries: libSM.so.6
« Reply #9 on: September 22, 2010, 05:26:22 PM »
Thanks a lot, I will try to make something out of it:).