Difference between revisions of "LDT/Developer Area/Compilation linux"

From Eclipsepedia

< LDT
Jump to: navigation, search
(Current binaries status)
Line 20: Line 20:
 
|68,286
 
|68,286
 
|69,194
 
|69,194
|282,936
+
|72,580
 
|----
 
|----
 
|binaries size (bytes)<br>lua
 
|binaries size (bytes)<br>lua
 
|153,668
 
|153,668
|179,76
+
|179,760
 
|202,952
 
|202,952
|7,859
+
|204,488
 
|----
 
|----
 
|ldd jnlua
 
|ldd jnlua
| linux-gate.so.1 =>  (0xb77c5000)<br> libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb75f1000)<br> liblua5.1.so.0 => /usr/lib/i386-linux-gnu/liblua5.1.so.0 (0xb75c4000)<br> /lib/ld-linux.so.2 (0xb77c6000)<br> libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7597000)<br> libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7592000)<br>
+
|
|linux-vdso.so.1 =>  (0x00007fffdebca000)<br> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff8a5022000)<br> liblua5.1.so.0 => /usr/lib/x86_64-linux-gnu/liblua5.1.so.0 (0x00007ff8a4df5000)<br> /lib64/ld-linux-x86-64.so.2 (0x00007ff8a561c000)<br> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff8a4af0000)<br> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff8a48ec000)
+
<source lang="bash">
| linux-gate.so.1 =>  (0xb77ba000)<br> libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb75e5000)<br> /lib/ld-linux.so.2 (0xb77bb000)<br> liblua5.2.so.0 => /usr/lib/i386-linux-gnu/liblua5.2.so.0 (0xb75b3000)<br> libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7586000)<br> libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7581000)<br>
+
linux-gate.so.1 =>  (0xb77c5000)
|linux-vdso.so.1 =>  (0x00007fff1f33e000)<br> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4a94f3d000)<br> /lib64/ld-linux-x86-64.so.2 (0x00007f4a95564000)
+
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb75f1000)
 +
liblua5.1.so.0 => /usr/lib/i386-linux-gnu/liblua5.1.so.0 (0xb75c4000)
 +
/lib/ld-linux.so.2 (0xb77c6000)
 +
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7597000)
 +
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7592000)
 +
</source>
 +
|
 +
<source lang="bash">
 +
linux-vdso.so.1 =>  (0x00007fffdebca000)
 +
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff8a5022000)
 +
liblua5.1.so.0 => /usr/lib/x86_64-linux-gnu/liblua5.1.so.0 (0x00007ff8a4df5000)
 +
/lib64/ld-linux-x86-64.so.2 (0x00007ff8a561c000)
 +
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff8a4af0000)
 +
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff8a48ec000)
 +
</source>
 +
|
 +
<source lang="bash">
 +
linux-gate.so.1 =>  (0xb77ba000)
 +
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb75e5000)
 +
/lib/ld-linux.so.2 (0xb77bb000)
 +
liblua5.2.so.0 => /usr/lib/i386-linux-gnu/liblua5.2.so.0 (0xb75b3000)
 +
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7586000)
 +
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7581000)
 +
</source>
 +
|
 +
<source lang="bash">
 +
linux-vdso.so.1 =>  (0x00007fff6f9fe000)
 +
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbd404b8000)
 +
/lib64/ld-linux-x86-64.so.2 (0x00007fbd40ab2000)
 +
liblua5.2.so.0 => /usr/lib/x86_64-linux-gnu/liblua5.2.so.0 (0x00007fbd40286000)
 +
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbd3ff81000)
 +
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbd3fd7d000)
 +
</source>
 
|----
 
|----
 
|ldd lua
 
|ldd lua
| linux-gate.so.1 =>  (0xb77a8000)<br> libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7739000)<br> libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7734000)<br> libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7589000)<br> /lib/ld-linux.so.2 (0xb77a9000)<br>
+
|
|linux-vdso.so.1 =>  (0x00007fff8734a000)<br> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3f4ea15000)<br> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3f4e811000)<br> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3f4e448000)<br> /lib64/ld-linux-x86-64.so.2 (0x00007f3f4ef69000)
+
<source lang="bash">
| linux-gate.so.1 =>  (0xb7768000)<br> libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb76ef000)<br> libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb76ea000)<br> libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb753f000)<br> /lib/ld-linux.so.2 (0xb7769000)<br>
+
linux-gate.so.1 =>  (0xb77a8000)
|linux-vdso.so.1 =>  (0x00007fff3ad8b000)<br> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007faf07651000)<br> /lib64/ld-linux-x86-64.so.2 (0x00007faf07c3f000)
+
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7739000)
 +
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7734000)
 +
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7589000)
 +
/lib/ld-linux.so.2 (0xb77a9000)
 +
</source>
 +
|
 +
<source lang="bash">
 +
linux-vdso.so.1 =>  (0x00007fff8734a000)
 +
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3f4ea15000)
 +
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3f4e811000)
 +
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3f4e448000)
 +
/lib64/ld-linux-x86-64.so.2 (0x00007f3f4ef69000)
 +
</source>
 +
|
 +
<source lang="bash">
 +
linux-gate.so.1 =>  (0xb7768000)
 +
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb76ef000)
 +
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb76ea000)
 +
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb753f000)
 +
/lib/ld-linux.so.2 (0xb7769000)
 +
</source>
 +
|
 +
<source lang="bash">
 +
linux-vdso.so.1 =>  (0x00007fffd3dfe000)
 +
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f344a4ca000)
 +
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f344a2c6000)
 +
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3449efd000)
 +
/lib64/ld-linux-x86-64.so.2 (0x00007f344aa24000)
 +
</source>
 
|----
 
|----
 
|readelf -d jnlua
 
|readelf -d jnlua
|0x00000001 (NEEDED)           Librairie partagées: [libc.so.6]<br> 0x00000001 (NEEDED)           Librairie partagées: [liblua5.1.so.0]<br> 0x0000000e (SONAME)         Librairie soname: [libjnlua5.1.so]<br>
+
|
|0x0000000000000001 (NEEDED)     Librairie partagées: [libc.so.6]<br> 0x0000000000000001 (NEEDED)   Librairie partagées: [liblua5.1.so.0]<br> 0x000000000000000e (SONAME)   Librairie soname: [libjnlua5.1.so]<br>
+
<source lang="bash">
|0x00000001 (NEEDED)   Librairie partagées: [libc.so.6]<br> 0x00000001 (NEEDED) Librairie partagées: [ld-linux.so.2]<br> 0x00000001 (NEEDED) Librairie partagées: [liblua5.2.so.0]<br> 0x0000000e (SONAME) Librairie soname: [libjnlua52.so]<br>
+
0x00000001 (NEEDED) Librairie partagées: [libc.so.6]
|0x0000000000000001 (NEEDED)   Librairie partagées: [libc.so.6]<br> 0x0000000000000001 (NEEDED)   Librairie partagées: [ld-linux-x86-64.so.2]<br> 0x000000000000000e (SONAME) Librairie soname: [libjnlua52.so]<br>
+
0x00000001 (NEEDED) Librairie partagées: [liblua5.1.so.0]
 +
0x0000000e (SONAME) Librairie soname: [libjnlua5.1.so]
 +
</source>
 +
|
 +
<source lang="bash">
 +
0x0000000000000001 (NEEDED) Librairie partagées: [libc.so.6]
 +
0x0000000000000001 (NEEDED) Librairie partagées: [liblua5.1.so.0]
 +
0x000000000000000e (SONAME) Librairie soname: [libjnlua5.1.so]
 +
</source>
 +
|
 +
<source lang="bash">
 +
0x00000001 (NEEDED) Librairie partagées: [libc.so.6]
 +
0x00000001 (NEEDED) Librairie partagées: [ld-linux.so.2]
 +
0x00000001 (NEEDED) Librairie partagées: [liblua5.2.so.0]
 +
0x0000000e (SONAME) Librairie soname: [libjnlua52.so]
 +
</source>
 +
|
 +
<source lang="bash">
 +
0x0000000000000001 (NEEDED) Librairie partagées: [libc.so.6]
 +
0x0000000000000001 (NEEDED) Librairie partagées: [ld-linux-x86-64.so.2]
 +
0x0000000000000001 (NEEDED) Librairie partagées: [liblua5.2.so.0]
 +
0x000000000000000e (SONAME) Librairie soname: [libjnlua52.so]
 +
</source>
 
|----
 
|----
 
|readelf -d lua
 
|readelf -d lua
| 0x00000001 (NEEDED)           Librairie partagées: [libm.so.6]<br> 0x00000001 (NEEDED)           Librairie partagées: [libdl.so.2]<br> 0x00000001 (NEEDED)           Librairie partagées: [libc.so.6]<br> 0x0000000e (SONAME)           Librairie soname: [liblua5.1.so.0]<br>
+
|
| 0x0000000000000001 (NEEDED)   Librairie partagées: [libm.so.6]<br> 0x0000000000000001 (NEEDED)   Librairie partagées: [libdl.so.2]<br> 0x0000000000000001 (NEEDED)   Librairie partagées: [libc.so.6]<br> 0x000000000000000e (SONAME)   Librairie soname: [liblua5.1.so.0]<br>
+
<source lang="bash">
| 0x00000001 (NEEDED) Librairie partagées: [libm.so.6]<br> 0x00000001 (NEEDED) Librairie partagées: [libdl.so.2]<br> 0x00000001 (NEEDED) Librairie partagées: [libc.so.6]<br> 0x0000000e (SONAME) Librairie soname: [liblua5.2.so.0]<br>
+
0x00000001 (NEEDED) Librairie partagées: [libm.so.6]
| 0x0000000000000001 (NEEDED)   Librairie partagées: [libc.so.6]<br> 0x000000000000000e (SONAME) Librairie soname: [liblua52.so]<br>
+
0x00000001 (NEEDED) Librairie partagées: [libdl.so.2]
 +
0x00000001 (NEEDED) Librairie partagées: [libc.so.6]
 +
0x0000000e (SONAME) Librairie soname: [liblua5.1.so.0]
 +
</source>
 +
|
 +
<source lang="bash">
 +
0x0000000000000001 (NEEDED) Librairie partagées: [libm.so.6]
 +
0x0000000000000001 (NEEDED) Librairie partagées: [libdl.so.2]
 +
0x0000000000000001 (NEEDED) Librairie partagées: [libc.so.6]
 +
0x000000000000000e (SONAME) Librairie soname: [liblua5.1.so.0]
 +
</source>
 +
|
 +
<source lang="bash">
 +
0x00000001 (NEEDED) Librairie partagées: [libm.so.6]
 +
0x00000001 (NEEDED) Librairie partagées: [libdl.so.2]
 +
0x00000001 (NEEDED) Librairie partagées: [libc.so.6]
 +
0x0000000e (SONAME) Librairie soname: [liblua5.2.so.0]
 +
</source>
 +
|
 +
<source lang="bash">
 +
0x0000000000000001 (NEEDED) Librairie partagées: [libm.so.6]
 +
0x0000000000000001 (NEEDED) Librairie partagées: [libdl.so.2]
 +
0x0000000000000001 (NEEDED) Librairie partagées: [libc.so.6]
 +
0x000000000000000e (SONAME) Librairie soname: [liblua5.2.so.0]
 +
</source>
 
|----
 
|----
 
|}
 
|}

Revision as of 12:55, 6 November 2013

how to build

See how to build Jnlua
Lua binaries can be found on Lua binaries or in your linux package repository.

To check your binary :
- compare it to the current version (table below), size and dependencies should be almost the same.
- check the SONAME is correct. (same one in lua and jnlua binaries)

Current binaries status

Linux 32 Lua 51 Linux 64 Lua 51 Linux 32 Lua 52 Linux 64 Lua 52
binaries size (bytes)
jnlua
61,176 68,286 69,194 72,580
binaries size (bytes)
lua
153,668 179,760 202,952 204,488
ldd jnlua
linux-gate.so.1 =>  (0xb77c5000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb75f1000)
liblua5.1.so.0 => /usr/lib/i386-linux-gnu/liblua5.1.so.0 (0xb75c4000)
/lib/ld-linux.so.2 (0xb77c6000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7597000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7592000)
linux-vdso.so.1 =>  (0x00007fffdebca000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff8a5022000)
liblua5.1.so.0 => /usr/lib/x86_64-linux-gnu/liblua5.1.so.0 (0x00007ff8a4df5000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff8a561c000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff8a4af0000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff8a48ec000)
linux-gate.so.1 =>  (0xb77ba000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb75e5000)
/lib/ld-linux.so.2 (0xb77bb000)
liblua5.2.so.0 => /usr/lib/i386-linux-gnu/liblua5.2.so.0 (0xb75b3000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7586000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7581000)
linux-vdso.so.1 =>  (0x00007fff6f9fe000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbd404b8000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbd40ab2000)
liblua5.2.so.0 => /usr/lib/x86_64-linux-gnu/liblua5.2.so.0 (0x00007fbd40286000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbd3ff81000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbd3fd7d000)
ldd lua
linux-gate.so.1 =>  (0xb77a8000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7739000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7734000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7589000)
/lib/ld-linux.so.2 (0xb77a9000)
linux-vdso.so.1 =>  (0x00007fff8734a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3f4ea15000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3f4e811000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3f4e448000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3f4ef69000)
linux-gate.so.1 =>  (0xb7768000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb76ef000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb76ea000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb753f000)
/lib/ld-linux.so.2 (0xb7769000)
linux-vdso.so.1 =>  (0x00007fffd3dfe000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f344a4ca000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f344a2c6000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3449efd000)
/lib64/ld-linux-x86-64.so.2 (0x00007f344aa24000)
readelf -d jnlua
0x00000001 (NEEDED) Librairie partagées: [libc.so.6]
0x00000001 (NEEDED) Librairie partagées: [liblua5.1.so.0]
0x0000000e (SONAME) Librairie soname: [libjnlua5.1.so]
0x0000000000000001 (NEEDED) Librairie partagées: [libc.so.6]
0x0000000000000001 (NEEDED) Librairie partagées: [liblua5.1.so.0]
0x000000000000000e (SONAME) Librairie soname: [libjnlua5.1.so]
0x00000001 (NEEDED) Librairie partagées: [libc.so.6]
0x00000001 (NEEDED) Librairie partagées: [ld-linux.so.2]
0x00000001 (NEEDED) Librairie partagées: [liblua5.2.so.0]
0x0000000e (SONAME) Librairie soname: [libjnlua52.so]
0x0000000000000001 (NEEDED) Librairie partagées: [libc.so.6]
0x0000000000000001 (NEEDED) Librairie partagées: [ld-linux-x86-64.so.2]
0x0000000000000001 (NEEDED) Librairie partagées: [liblua5.2.so.0]
0x000000000000000e (SONAME) Librairie soname: [libjnlua52.so]
readelf -d lua
0x00000001 (NEEDED) Librairie partagées: [libm.so.6]
0x00000001 (NEEDED) Librairie partagées: [libdl.so.2]
0x00000001 (NEEDED) Librairie partagées: [libc.so.6]
0x0000000e (SONAME) Librairie soname: [liblua5.1.so.0]
0x0000000000000001 (NEEDED) Librairie partagées: [libm.so.6]
0x0000000000000001 (NEEDED) Librairie partagées: [libdl.so.2]
0x0000000000000001 (NEEDED) Librairie partagées: [libc.so.6]
0x000000000000000e (SONAME) Librairie soname: [liblua5.1.so.0]
0x00000001 (NEEDED) Librairie partagées: [libm.so.6]
0x00000001 (NEEDED) Librairie partagées: [libdl.so.2]
0x00000001 (NEEDED) Librairie partagées: [libc.so.6]
0x0000000e (SONAME) Librairie soname: [liblua5.2.so.0]
0x0000000000000001 (NEEDED) Librairie partagées: [libm.so.6]
0x0000000000000001 (NEEDED) Librairie partagées: [libdl.so.2]
0x0000000000000001 (NEEDED) Librairie partagées: [libc.so.6]
0x000000000000000e (SONAME) Librairie soname: [liblua5.2.so.0]