<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>LDSO_RUNPATH</title>
		<link>http://mybookworld.wikidot.com/forum/t-72389/ldso-runpath</link>
		<description>Posts in the discussion thread &quot;LDSO_RUNPATH&quot;</description>
				<copyright></copyright>
		<lastBuildDate></lastBuildDate>
		
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-72389#post-449479</guid>
				<title>LDSO_RUNPATH - solved</title>
				<link>http://mybookworld.wikidot.com/forum/t-72389/ldso-runpath#post-449479</link>
				<description></description>
				<pubDate>Wed, 15 Apr 2009 06:18:00 +0000</pubDate>
				<wikidot:authorName>alllexx</wikidot:authorName>				<wikidot:authorUserId>233384</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>After all, I did manage to get LDSO_RUNPATH support right. It's pretty convinient not having to add all those lib dirs to ld.so.conf and "ldconfig"-ing:). To sum up, I messed up and the MyBook was unable to construct RAID on md1 (I have only one SATA USB suite, so had to deal with both drives separately).<br /> Here are the libs <a href="http://rapidshare.com/files/221509857/lib.tar.gz.html">http://rapidshare.com/files/221509857/lib.tar.gz.html</a><br /> Note that you have to connect the drive(s) to your PC to rewrite the original ones in /lib. Don't forget to make backups and don't blame me if you screw your MBWE</p> <p>Brian, are you still interested in the toolchain?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-72389#post-446453</guid>
				<title>Re: LDSO_RUNPATH</title>
				<link>http://mybookworld.wikidot.com/forum/t-72389/ldso-runpath#post-446453</link>
				<description></description>
				<pubDate>Sun, 12 Apr 2009 04:47:14 +0000</pubDate>
				<wikidot:authorName>alllexx</wikidot:authorName>				<wikidot:authorUserId>233384</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Replaced ld-uClibc-0.9.28.so and have a dead MyBook now. It loosk like restore procedure is my only option as restoring original files doesn't help</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-72389#post-446048</guid>
				<title>Re: LDSO_RUNPATH</title>
				<link>http://mybookworld.wikidot.com/forum/t-72389/ldso-runpath#post-446048</link>
				<description></description>
				<pubDate>Sat, 11 Apr 2009 16:10:49 +0000</pubDate>
				<wikidot:authorName>alllexx</wikidot:authorName>				<wikidot:authorUserId>233384</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Perhaps, I should replace ld-uClibc-0.9.28.so as well?</p> <p><strong>UPD:</strong> I'll have to connect the drives to my linuxbox to try this out and now I'm a bit short on time, so it will have to wait a few hours</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-72389#post-446044</guid>
				<title>Re: LDSO_RUNPATH</title>
				<link>http://mybookworld.wikidot.com/forum/t-72389/ldso-runpath#post-446044</link>
				<description></description>
				<pubDate>Sat, 11 Apr 2009 15:59:05 +0000</pubDate>
				<wikidot:authorName>alllexx</wikidot:authorName>				<wikidot:authorUserId>233384</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>My uClibc configuration is identical to <a href="http://www.ismprofessional.net/pascucci/documenti/mybook/config/mybook-uClibc-1.1.config">http://www.ismprofessional.net/pascucci/documenti/mybook/config/mybook-uClibc-1.1.config</a> with the sole exception of enabling LDSO_RUNPATH support, so I have not a single clue about how to solve this problem</p> <p><strong>UPD:</strong> Yeah, it really got corrupted somehow. Now it's the same as what <strong>alephsmith</strong> reported, even though it's certain that uClibc was compiled with LDSO_RUNPATH enabled</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-72389#post-446031</guid>
				<title>Re: LDSO_RUNPATH</title>
				<link>http://mybookworld.wikidot.com/forum/t-72389/ldso-runpath#post-446031</link>
				<description></description>
				<pubDate>Sat, 11 Apr 2009 15:32:10 +0000</pubDate>
				<wikidot:authorName>bzhou</wikidot:authorName>				<wikidot:authorUserId>55287</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I'm not sure, the "can't read header from /lib/libuClibc-0.9.28.so, skipping" message seems to indicate that the new libuClibc-0.9.28.so is corrupted.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-72389#post-446028</guid>
				<title>Re: LDSO_RUNPATH</title>
				<link>http://mybookworld.wikidot.com/forum/t-72389/ldso-runpath#post-446028</link>
				<description></description>
				<pubDate>Sat, 11 Apr 2009 15:23:57 +0000</pubDate>
				<wikidot:authorName>alllexx</wikidot:authorName>				<wikidot:authorUserId>233384</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi Brian,<br /> I've built the toolchain with LDSO_RUNPATH support and replaced the original libuClibc-0.9.28.so with cross-compiled one.</p> <div class="code"> <pre> <code>Using username "root". root@192.168.1.206's password: -bash: '/lib/libc.so.0' is not an ELF file id: '/lib/libc.so.0' is not an ELF file /bin/hostname: '/lib/libc.so.0' is not an ELF file [root@WDStorage ~]# mc mc: '/lib/libc.so.0' is not an ELF file #but did run ok [root@WDStorage ~]# rm /etc/ld.so.conf [root@WDStorage ~]# ldconfig ldconfig: can't read header from /lib/libuClibc-0.9.28.so, skipping [root@WDStorage ~]# mc mc: can't load library 'libglib-2.0.so.0'</code> </pre></div> <br /> so, it appears that libuClibc-0.9.28.so alone is not sufficient to get LDSO_RUNPATH support right.<br /> any ideas?<br /> Alex
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-72389#post-257047</guid>
				<title>Re: LDSO_RUNPATH</title>
				<link>http://mybookworld.wikidot.com/forum/t-72389/ldso-runpath#post-257047</link>
				<description></description>
				<pubDate>Wed, 10 Sep 2008 06:09:17 +0000</pubDate>
				<wikidot:authorName>alephsmith</wikidot:authorName>				<wikidot:authorUserId>58305</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>OK. I just tired the following test. I removed both transmission and gettext packages.</p> <p>After reinstalling them, I was unable to start transmission because it couldn't find libintl.so.3. <tt>ldconfig</tt> fixed this.</p> <p>This got me thinking, is uClib being built with my modified config. There is a second .config file called uClibc.config-locale and I have a feeling that this is being used, not the file I modified. I will try to rebuild the tool chain and see.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-72389#post-256082</guid>
				<title>Re: LDSO_RUNPATH</title>
				<link>http://mybookworld.wikidot.com/forum/t-72389/ldso-runpath#post-256082</link>
				<description></description>
				<pubDate>Tue, 09 Sep 2008 02:28:32 +0000</pubDate>
				<wikidot:authorName>bzhou</wikidot:authorName>				<wikidot:authorUserId>55287</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>That's great news. So you can confirm that you no longer need to use ldconfig?</p> <p>A step-by-step for the toolchain would be fine.</p> <p>The goal is to achieve the following (assuming we already have optware/platforms/{toolchain,packages}-mbwe.mk) :</p> <div class="code"> <pre> <code>svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware cd optware; make mbwe-target cd mbwe make directories ipkg-utils make toolchain make hello-ipk # or any package</code> </pre></div> <p>The toolchain build happens at "make toolchain" stage using optware/platforms/toolchain-mbwe.mk, you can also see optware/platforms/toolchain-*.mk as example, esp. those using uclibc.</p> <p>So, the more you can automate, the less work I need to do.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-72389#post-255966</guid>
				<title>Re: LDSO_RUNPATH</title>
				<link>http://mybookworld.wikidot.com/forum/t-72389/ldso-runpath#post-255966</link>
				<description></description>
				<pubDate>Mon, 08 Sep 2008 22:50:00 +0000</pubDate>
				<wikidot:authorName>alephsmith</wikidot:authorName>				<wikidot:authorUserId>58305</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>OK. Seems to work fine.</p> <p>The toolchain was relatively easy to build on Ubuntu (I had been struggling to get it to work on OS X for a while and finally gave up).</p> <p>I haven't yet tried to build anything not included in the WD sources, however I don't think I'll run into any problems there.</p> <p>I'll put together some instructions when I get a chance. Do you just need a step by step, or any other specific details? I would love to have an MBWE specific feed so I'm willing to bend over backwards for you :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-72389#post-255875</guid>
				<title>Re: LDSO_RUNPATH</title>
				<link>http://mybookworld.wikidot.com/forum/t-72389/ldso-runpath#post-255875</link>
				<description></description>
				<pubDate>Mon, 08 Sep 2008 21:09:48 +0000</pubDate>
				<wikidot:authorName>bzhou</wikidot:authorName>				<wikidot:authorUserId>55287</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi alephsmith,</p> <p>If you have built your own uClibc-0.9.28.so with LDSO_RUNPATH enabled, it should work by replacing /lib/libuClibc-0.9.28.so on you MBWE. As I said, be prepared to take the hard disk out and mount on another Linux PC to recover if it's not working. Wish you good luck.</p> <p>From optware point of view, I'm more interested in the toolchain build procedure. If you can provide the procedure (either step-by-step or automated), I can work on a optware feed just for MBWE.</p> <p>Best regards,</p> <p>-Brian</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-72389#post-255554</guid>
				<title>Re: LDSO_RUNPATH</title>
				<link>http://mybookworld.wikidot.com/forum/t-72389/ldso-runpath#post-255554</link>
				<description></description>
				<pubDate>Mon, 08 Sep 2008 11:30:29 +0000</pubDate>
				<wikidot:authorName>alephsmith</wikidot:authorName>				<wikidot:authorUserId>58305</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi Brian,</p> <p>Well I have muddled my way through setting up the toolchain and have enabled LDSO_RUNPATH.</p> <p>So essentially I pull the /libuClibc-0.9.28.so from the arm toolchain and copy it over to my MyBook? Sorry if I sound a little vague, this is about as in depth as I have ever gone with linux.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-72389#post-214179</guid>
				<title>LDSO_RUNPATH</title>
				<link>http://mybookworld.wikidot.com/forum/t-72389/ldso-runpath#post-214179</link>
				<description></description>
				<pubDate>Fri, 04 Jul 2008 19:26:13 +0000</pubDate>
				<wikidot:authorName>bzhou</wikidot:authorName>				<wikidot:authorUserId>55287</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I see Fry's has MBWE 500GB on sale (July 4th 3-day sale) for $129. Really tempting.</p> <p>I have a couple of NAS boxes already, so I'll probably pass. Unless someone want to donate me one via nslu2-linux.org :-). Seriously, people happy with optware should consider donate to nslu2-linux. That's how we can pull resource together.</p> <p>For optware, the big obstacle on MBWE is the lack of LDSO_RUNPATH in stock /lib/libuClibc-0.9.28.so<br /> This is becoming more and more annoying as you often need to adjust /etc/ld.so.conf</p> <p>I hope someone with the skill and determination can step up and fix this. I believe everything needed for this to happen is there. What's involved?</p> <ol> <li>Read carefully <a href="http://www.ismprofessional.net/pascucci/documenti/mybook/mybook-hacking-en.html">http://www.ismprofessional.net/pascucci/documenti/mybook/mybook-hacking-en.html</a></li> <li>Download WD GPL source</li> <li>Build cross toolchain with provided buildroot, see #1 for config</li> <li>Build uclibc with the cross toolchain, see #1 for config, make sure LDSO_RUNPATH is set to yes in uclibc config</li> <li>Test the new uclibc by replacing /lib/libuClibc-0.9.28.so</li> </ol> <p>Before making the change, make a backup of that file of course; and be prepared to take the hard disk out to recover if it's not working.</p> <p>-Brian<br /> bzhou at nslu2 dash linux dot org</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>