View Single Post
Old 06-06-2014, 08:52 PM   #3
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by NiLuJe View Post
You'll also have to push the full hardf libc suite matching the TC used to the libdir the rpath points to, or things will go kaboom in fun & interesting ways .
The system libraries, names and dependences:
Note: These lists are from the (dead) V-0.2.x series of builds.
Spoiler:

Code:
core2quad lib $ for f in `ls -1 *-2.19*` ; do echo $f ; readelf -dl $f | egrep 'SONAME|RUNPATH|NEEDED|Requesting' ; done
ld-2.19.so
 0x0000000e (SONAME)                     Library soname: [ld-linux-armhf.so.3]
libc-2.19.so
      [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [ld-linux-armhf.so.3]
 0x0000000e (SONAME)                     Library soname: [libc.so.6]
libcrypt-2.19.so
      [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libcrypt.so.1]
libdl-2.19.so
      [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x00000001 (NEEDED)                     Shared library: [ld-linux-armhf.so.3]
 0x0000000e (SONAME)                     Library soname: [libdl.so.2]
libm-2.19.so
      [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libm.so.6]
libnsl-2.19.so
      [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libnsl.so.1]
libnss_dns-2.19.so
      [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [libresolv.so.2]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libnss_dns.so.2]
libnss_files-2.19.so
      [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libnss_files.so.2]
libpthread-2.19.so
      [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x00000001 (NEEDED)                     Shared library: [ld-linux-armhf.so.3]
 0x0000000e (SONAME)                     Library soname: [libpthread.so.0]
libresolv-2.19.so
      [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x00000001 (NEEDED)                     Shared library: [ld-linux-armhf.so.3]
 0x0000000e (SONAME)                     Library soname: [libresolv.so.2]
librt-2.19.so
      [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [librt.so.1]
libutil-2.19.so
      [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libutil.so.1]
core2quad lib $

Which will need a little bit of post-build fix-up.

Busybox, Lua and C++ additions:
Spoiler:

Code:
core2quad lib # for f in `find . -executable -a ! -type d -a ! -type l` ; do echo $f ; readelf -dl $f | egrep 'SONAME|RUNPATH|NEEDED|Requesting' ; done
./libhistory.so.6.3
 0x00000001 (NEEDED)                     Shared library: [libncurses.so.5]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libhistory.so.6]
 0x0000001d (RUNPATH)                    Library runpath: [/mnt/us/extensions/system/lib:/mnt/us/extensions/system/usr/lib:/usr/lib]
./liblua.so.5.1.5
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [liblua.so.5.1.5]
./libreadline.so.6.3
 0x00000001 (NEEDED)                     Shared library: [libncurses.so.5]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libreadline.so.6]
 0x0000001d (RUNPATH)                    Library runpath: [/mnt/us/extensions/system/lib:/mnt/us/extensions/system/usr/lib:/usr/lib]
./libncurses.so.5.9
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libncurses.so.5]
 0x0000001d (RUNPATH)                    Library runpath: [/mnt/us/extensions/system/lib:/mnt/us/extensions/system/usr/lib]
./libstdc++.so.6.0.20
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x00000001 (NEEDED)                     Shared library: [ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x0000000e (SONAME)                     Library soname: [libstdc++.so.6]
core2quad lib #

Which will also need to be diddled.

And our starter-pack of two applications:
Spoiler:

Code:
core2quad tmp # for f in bin/busybox usr/bin/{lua,luac} ; do echo $f ; readelf -dl $f | egrep 'SONAME|RUNPATH|NEEDED|Requesting' ; done
bin/busybox
      [Requesting program interpreter: /mnt/us/extensions/system/lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000001d (RUNPATH)                    Library runpath: [/mnt/us/extensions/system/lib:/mnt/us/extensions/system/usr/lib]
usr/bin/lua
      [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [liblua.so.5.1.5]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libreadline.so.6]
 0x00000001 (NEEDED)                     Shared library: [libhistory.so.6]
 0x00000001 (NEEDED)                     Shared library: [libncurses.so.5]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
usr/bin/luac
      [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libreadline.so.6]
 0x00000001 (NEEDED)                     Shared library: [libhistory.so.6]
 0x00000001 (NEEDED)                     Shared library: [libncurses.so.5]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
core2quad tmp #

Actually, worse than it looks - the Buildroot Lua package is broken (ignoring the LDFLAGS setting in BR GUI).

Note: I may decide that 'Ledger' will be part of the base install (for tracking what is installed and in-use).

Last edited by knc1; 06-14-2014 at 10:04 AM.
knc1 is offline   Reply With Quote