<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>For last two weeks I am working on my CLFS embedded system for Raspberry Pi. My system is already running, but I had to disable shared libraries for all application (busybox, dropbear and e2fsprogs). When I compile busybox with enabled shared libraries, I get “Kernel panic - not syncing: No init found.” from kernel. When I compile dropbear or e2fsprogs with shared libraries, I get “-ash: dropbearkey: not found”.</div><div><br></div><div>Dropbear (for example) needs three libraries (I run this command on my host system):</div><div><br></div><div><div style="margin: 0px; font-family: Menlo;">$ readelf -d targetfs/usr/bin/dropbearmulti </div><div style="margin: 0px; font-family: Menlo;">Dynamic section at offset 0x3400c contains 26 entries:</div><div style="margin: 0px; font-family: Menlo;">  Tag        Type                         Name/Value</div><div style="margin: 0px; font-family: Menlo;"> 0x00000001 (NEEDED)                     Shared library: [libz.so.1]</div><div style="margin: 0px; font-family: Menlo;"> 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]</div><div style="margin: 0px; font-family: Menlo;"> 0x00000001 (NEEDED)                     Shared library: [libc.so]</div></div><div style="margin: 0px; font-family: Menlo;"><br></div><div style="margin: 0px;">And the content of my CLFS /lib is (I run this on my target system):</div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><div style="margin: 0px;"><div style="font-family: Menlo; margin: 0px;">$ ls /lib</div><div style="font-family: Menlo; margin: 0px;">firmware<span class="Apple-tab-span" style="white-space:pre">        </span>  libgomp.so<span class="Apple-tab-span" style="white-space:pre">   </span>    libitm.so.1.0.0  libstdc++.so.6<span class="Apple-tab-span" style="white-space:pre">          </span> libz.so.1.2.8</div><div style="font-family: Menlo; margin: 0px;">ld-musl-arm.so.1  libgomp.so.1<span class="Apple-tab-span" style="white-space:pre"> </span>    libssp.so<span class="Apple-tab-span" style="white-space:pre">     </span>     libstdc++.so.6.0.17<span class="Apple-tab-span" style="white-space:pre">  </span> modules</div><div style="font-family: Menlo; margin: 0px;">libc.so<span class="Apple-tab-span" style="white-space:pre">           </span>  libgomp.so.1.0.0  libssp.so.0      libstdc++.so.6.0.17-gdb.py</div><div style="font-family: Menlo; margin: 0px;">libgcc_s.so<span class="Apple-tab-span" style="white-space:pre">       </span>  libitm.so<span class="Apple-tab-span" style="white-space:pre">    </span>    libssp.so.0.0.0  libz.so</div><div style="font-family: Menlo; margin: 0px;">libgcc_s.so.1<span class="Apple-tab-span" style="white-space:pre">  </span>  libitm.so.1<span class="Apple-tab-span" style="white-space:pre">  </span>    libstdc++.so     libz.so.1</div><div style="font-family: Menlo; margin: 0px;"><br></div><div style="margin: 0px;">So I am sure, I have all needed libraries. I compiled them with CLFS gcc. What am I missing? Do you think there is some problem with my lib-musl library or with GCC?</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Regards</div><div style="margin: 0px;">Vlastimil S.</div></div></div></body></html>