Bug 917 - mediatomb fails to start, can't find libjs.so
Summary: mediatomb fails to start, can't find libjs.so
Status: RESOLVED FIXED
Alias: None
Product: Other YP Layers
Classification: Build System, Metadata & Runtime
Component: dlna (show other bugs)
Version: 1.0
Hardware: Routerstationpro mips
: Low normal
Target Milestone: 1.5
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard: Demo layer, needs owner (30-Jun-2011)
Depends on: 2205
Blocks:
  Show dependency tree
 
Reported: 2011-03-21 15:10 UTC by Darren Hart
Modified: 2013-09-10 14:36 UTC (History)
9 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Hart 2011-03-21 15:10:22 UTC
meta: bernard
meta-demo: master (bbbba2bb74846db9b2505089522b60d97ea0ea70)

OE Build Configuration:
BB_VERSION        = "1.11.0"
METADATA_BRANCH   = "bernard"
METADATA_REVISION = "82af8b9fb6d6d1439943fd15b8a75c0e663e4a45"
TARGET_ARCH       = "mips"
TARGET_OS         = "linux"
MACHINE           = "routerstationpro"
DISTRO            = "poky"
DISTRO_VERSION    = "0.9+snapshot-20110321"
TARGET_FPU        = ""


I built poky-image-mediatomb for the Router Station Pro today, and after getting a tftpd server setup to boot the thing, I ran into this:

root@routerstationpro:~# /etc/init.d/mediatomb restart
Restarting upnp media server: /usr/bin/mediatomb: error while loading shared libraries: libjs: cannot open shared object file: No such file or directory
mediatomb.


I noticed that libjs.so does exist in /usr/lib, so I tried the following:

root@routerstationpro:~# LD_PRELOAD=/usr/lib/libjs.so mediatomb

MediaTomb UPnP Server version 0.12.1 - http://mediatomb.cc/

===============================================================================
Copyright 2005-2010 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
MediaTomb is free software, covered by the GNU General Public License version 2

2011-03-21 19:20:34    INFO: Loading configuration from: /home/root/.mediatomb/config.xml
2011-03-21 19:20:34    INFO: Checking configuration...
2011-03-21 19:20:34    INFO: Setting filesystem import charset to ANSI_X3.4-1968
2011-03-21 19:20:34    INFO: Setting metadata import charset to ANSI_X3.4-1968
2011-03-21 19:20:34    INFO: Setting playlist charset to ANSI_X3.4-1968
2011-03-21 19:20:34    INFO: Configuration check succeeded.
Segmentation fault


Get's further, but something still isn't quite right.

The library looks sane:

# file /usr/lib/libjs.so
/usr/lib/libjs.so: ELF 32-bit MSB shared object, MIPS, MIPS32 version 1 (SYSV), dynamically linked, with unknown capability 0x41000000 = 0xf676e75, with unknown capability 0x10000 = 0x70401, stripped
Comment 1 Joshua Lock - Disabled 2011-03-21 15:29:12 UTC
Hmm, I seem to recall this from the Laverne demo - Mark, did we not fix this?
Can you remember the workaround you used in Cambridge?
Comment 2 Joshua Lock - Disabled 2011-03-22 05:18:57 UTC
We had incorrectly linked libraries on PPC in 0.9 which iirc resulted in similar errors. http://bugzilla.pokylinux.org/show_bug.cgi?id=515
Comment 3 Joshua Lock - Disabled 2011-03-22 07:45:48 UTC
Per #515 running ldconfig on the device after boot I can then start mediatomb. However it still segfaults...
Comment 4 Darren Hart 2011-03-22 22:24:07 UTC
Did we change the version of Mediatomb or libjs since the 0.9 demo?
Comment 5 Kevin Tian 2011-03-23 01:47:29 UTC
it looks that this does be machine specific. On my eMenlow board, mediatomb is launched successfully FYI.
Comment 6 Joshua Lock - Disabled 2011-03-23 08:25:04 UTC
I guess mediatomb hasn't seen much build/test on MIPS. Even if I revert to the 0.9 demo and build an image with mediatomb for the routerstationpro I get a segfault on launch...
Comment 7 Darren Hart 2011-06-30 15:39:40 UTC
Needs an owner.
Comment 8 Darren Hart 2012-08-20 21:23:49 UTC
I doubt Shane is still looking at this. As a "low" it doesn't need to be scheduled. I would suggest removing the target milestone instead of just bumping it along every milestone.
Comment 9 Ross Burton 2013-09-10 14:36:05 UTC
meta-dlna is dead now.