Optware / Optware-ng

279 stars 52 forks source link

library 'libsigchain.so' from LD_PRELOAD can't be preloaded: #84

Closed milkpirate closed 8 years ago

milkpirate commented 8 years ago

Hey,

I symlinked

# ln -s /system/bin /bin
# ln -s /data/opt /opt

and after that the wget -O - http://ipkg.nslu2-linux.org/optware-ng/bootstrap/buildroot-armeabi-ng-bootstrap.sh | sh worked as exspected and so did the ipkg update. But then the install / execution of dropbear "failed":

localhost opt # ipkg install dropbear
Installing dropbear (2015.68-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/optware-ng/buildroot-armeabi-ng/dropbear_2015.68-2_arm.ipk
Installing uclibc-opt (1.0.12-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/optware-ng/buildroot-armeabi-ng/uclibc-opt_1.0.12-1_arm.ipk
Installing libnsl (1.0.12-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/optware-ng/buildroot-armeabi-ng/libnsl_1.0.12-1_arm.ipk
Installing psmisc (22.21-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/optware-ng/buildroot-armeabi-ng/psmisc_22.21-2_arm.ipk
Installing ncurses (5.7-4) to /opt/...
Downloading http://ipkg.nslu2-linux.org/optware-ng/buildroot-armeabi-ng/ncurses_5.7-4_arm.ipk
Installing gettext (0.19.6-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/optware-ng/buildroot-armeabi-ng/gettext_0.19.6-1_arm.ipk
Installing libiconv (1.13.1-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/optware-ng/buildroot-armeabi-ng/libiconv_1.13.1-1_arm.ipk
Configuring dropbear
update-alternatives: Linking //opt/bin/scp to /opt/sbin/dropbearmulti
update-alternatives: Linking //opt/bin/ssh to /opt/sbin/dropbearmulti

/data/opt/sbin/dropbearmulti: library 'libsigchain.so' from LD_PRELOAD can't be preloaded: ignored.
/data/opt/sbin/dropbearmulti: can't load library 'libbinder.so'
/data/opt/sbin/dropbearmulti: library 'libsigchain.so' from LD_PRELOAD can't be preloaded: ignored.
/data/opt/sbin/dropbearmulti: can't load library 'libbinder.so'
/data/opt/sbin/dropbearmulti: library 'libsigchain.so' from LD_PRELOAD can't be preloaded: ignored.
/data/opt/sbin/dropbearmulti: can't load library 'libbinder.so'
/data/opt/sbin/dropbearmulti: library 'libsigchain.so' from LD_PRELOAD can't be preloaded: ignored.
/data/opt/sbin/dropbearmulti: can't load library 'libbinder.so'
postinst script returned status 16
ERROR: dropbear.postinst returned 16
Configuring gettext
Configuring libiconv
Configuring libnsl
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
Configuring psmisc
update-alternatives: Linking //opt/bin/killall to /opt/bin/psmisc-killall
Configuring uclibc-opt
Successfully terminated.
localhost opt # dropbear
/data/opt/sbin/dropbearmulti: library 'libsigchain.so' from LD_PRELOAD can't be preloaded: ignored.
/data/opt/sbin/dropbearmulti: can't load library 'libbinder.so'

Might that be related to

Q: What does the error "error: only position independent executables (PIE) are supported" mean? A: Android 5.0 brought the requirement that only executables compiled with the -fPIE flag. These packages were compiled for Android 4.4 and earlier, so they won't work on 5.0.

form http://dan.drown.org/android/ and how to solve it?

PS: Ahh I'm on a CyanogenMod 12.1 (Android 5.1.1) @ Huawei Honor 3C.

alllexx88 commented 8 years ago

Hi,

Optware-ng has been reported to work on Android 5.1, as well as Android 6.0: http://abasile.integrazioneweb.com/index.php/pg-cat-guide/18-optware-ng-installiamo-pacchetti-linux-su-dispositivi-arm-con-android The article above describes how to achieve that. You're obviously need more than just those two symlinks

Regards

P.S. I don't provide android support: some things may not work out-of-the-box, and you're on your own there