2017-10-09, 23:35
(2017-09-21, 15:45)dziobak Wrote:(2017-09-21, 15:00)axlt2002 Wrote: Ok, I understand the point now and static build seems to be the way to go. What is just still confusing me is that changing the version of LibreELEC made such error appears...may be the 8.1.1 is missing some libraries wrt 8.0.2? Anyway...
ldd shows every binary dependecies and lack of libraries
i.e. on my RPi
PHP Code:LibreELEC (official): 8.1.1 (RPi2.arm)
PiBob:~ # ldd /usr/bin/python
linux-vdso.so.1 (0x7eca4000)
/usr/lib/libarmmem.so (0x76ebf000)
libpython2.7.so.1.0 => /usr/lib/libpython2.7.so.1.0 (0x76d2d000)
libc.so.6 => /usr/lib/libc.so.6 (0x76bf6000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x76bce000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x76bbb000)
libutil.so.1 => /usr/lib/libutil.so.1 (0x76ba8000)
libm.so.6 => /usr/lib/libm.so.6 (0x76b2a000)
/lib/ld-linux-armhf.so.3 (0x76ed4000)
About libraries in 8.1.1 vs 8.0.2 - missing or changing to other - PHP are full of modules and dependencies on other system components. If something was replaced ...
ldd on php-cgi shows dependencies
OK, more testing done and seems like the problem has been found (altough the solution...?)
Here is the ldd command executed on the php-cgi provided by the addon on libreelec 8.1.2 AKA Krypton 17.4:
# ldd /storage/.kodi/userdata/addon_data/script.light.imdb.ratings.update/php-binary/php-cgi
linux-vdso.so.1 (0x00007ffec07cd000)
libcurl.so.4 => /usr/lib/libcurl.so.4 (0x00007f79260f4000)
libssl.so.39 => not found
libcrypto.so.38 => not found
libz.so.1 => /usr/lib/libz.so.1 (0x00007f7926565000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f7925df0000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f7925a58000)
libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007f79264f1000)
libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007f79257e4000)
librt.so.1 => /usr/lib/librt.so.1 (0x00007f79255dc000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f79253bf000)
/lib64/ld-linux-x86-64.so.2 (0x00007f792635b000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f79251bb000)
2 libraries missing
Here is the ldd command executed on the other php-cgi provided by axlt on libreelec 8.1.2 AKA Krypton 17.4:
linux-vdso.so.1 (0x00007ffeabf6e000)
libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007fcb3444a000)
libreadline.so.7 => not found
libz.so.1 => /usr/lib/libz.so.1 (0x00007fcb3486d000)
libpcre.so.1 => not found
libm.so.6 => /usr/lib/libm.so.6 (0x00007fcb34146000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fcb33f42000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00007fcb33c1a000)
libssl.so.1.1 => not found
libcrypto.so.1.1 => not found
libc.so.6 => /usr/lib/libc.so.6 (0x00007fcb33882000)
/lib64/ld-linux-x86-64.so.2 (0x00007fcb34661000)
4 libraries missing
I think this cgi file is not the correct one anyway.
----
Both php-cgi produce no other results (still speed-scanning through all the collection)