<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>917</bug_id>
          
          <creation_ts>2011-03-21 15:10:22 +0000</creation_ts>
          <short_desc>mediatomb fails to start, can&apos;t find libjs.so</short_desc>
          <delta_ts>2013-09-10 14:36:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Other YP Layers</product>
          <component>dlna</component>
          <version>1.0</version>
          <rep_platform>Routerstationpro</rep_platform>
          <op_sys>mips</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Demo layer, needs owner (30-Jun-2011)</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          <dependson>2205</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>josh</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.layer.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12882</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-03-21 15:10:22 +0000</bug_when>
    <thetext>meta: bernard
meta-demo: master (bbbba2bb74846db9b2505089522b60d97ea0ea70)

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


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&apos;s further, but something still isn&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12884</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-03-21 15:29:12 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12904</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-03-22 05:18:57 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12908</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-03-22 07:45:48 +0000</bug_when>
    <thetext>Per #515 running ldconfig on the device after boot I can then start mediatomb. However it still segfaults...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12916</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-03-22 22:24:07 +0000</bug_when>
    <thetext>Did we change the version of Mediatomb or libjs since the 0.9 demo?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12925</commentid>
    <comment_count>5</comment_count>
    <who name="Kevin Tian">kevin.tian</who>
    <bug_when>2011-03-23 01:47:29 +0000</bug_when>
    <thetext>it looks that this does be machine specific. On my eMenlow board, mediatomb is launched successfully FYI.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12934</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-03-23 08:25:04 +0000</bug_when>
    <thetext>I guess mediatomb hasn&apos;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...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14494</commentid>
    <comment_count>7</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-30 15:39:40 +0000</bug_when>
    <thetext>Needs an owner.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24245</commentid>
    <comment_count>8</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-08-20 21:23:49 +0000</bug_when>
    <thetext>I doubt Shane is still looking at this. As a &quot;low&quot; it doesn&apos;t need to be scheduled. I would suggest removing the target milestone instead of just bumping it along every milestone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36490</commentid>
    <comment_count>9</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-09-10 14:36:05 +0000</bug_when>
    <thetext>meta-dlna is dead now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>