Optware / Optware-ng

279 stars 52 forks source link

[ppc-603e] [glibc-opt] FATAL: kernel too old #226

Closed GammaC0de closed 6 years ago

GammaC0de commented 6 years ago

Hello, After I upgraded glibc-opt package from v2.21-5 to v2.25-1 on my MyBook Live (ppc-603e), I get this message FATAL: kernel too old on every Optware-ng command I try to execute.

This breaks Optware-ng completely...

I have read that glibc has a --enable-kernel configure option.

Please help, Thanks.

# uname -a
Linux WDMBL 2.6.32.11-svn70860 #1 Thu May 17 13:32:51 PDT 2012 ppc GNU/Linux
alllexx88 commented 6 years ago

Hi, I've rebuilt glibc with --enable-kernel=2.6.32. Please upgrade glibc-opt and libnsl to 2.25-2 and test.

Thanks

GammaC0de commented 6 years ago

There is still an issue with glib package (I think):

MBL:/# ipkg update
Downloading http://ipkg.nslu2-linux.org/optware-ng/buildroot-ppc-603e/Packages.gz.
Inflating http://ipkg.nslu2-linux.org/optware-ng/buildroot-ppc-603e/Packages.gz.
Updated list of available packages in /opt/lib/ipkg/lists/optware-ng.

MBL:/# ipkg install glib
Upgrading glib from 2.47.3-1 to 2.47.3-2 on /opt/.
Downloading http://ipkg.nslu2-linux.org/optware-ng/buildroot-ppc-603e/glib_2.47.3-2_powerpc.ipk.
Upgrading glibc-opt from 2.21-5 to 2.25-2 on /opt/.
Downloading http://ipkg.nslu2-linux.org/optware-ng/buildroot-ppc-603e/glibc-opt_2.25-2_powerpc.ipk.
Upgrading libnsl from 2.21-3 to 2.25-2 on /opt/.
Downloading http://ipkg.nslu2-linux.org/optware-ng/buildroot-ppc-603e/libnsl_2.25-2_powerpc.ipk.
Removing obsolete file /opt/lib/libnsl-2.21.so.
Removing obsolete file /opt/lib/libm-2.21.so.
Removing obsolete file /opt/lib/libnss_compat-2.21.so.
Removing obsolete file /opt/lib/libBrokenLocale-2.21.so.
Removing obsolete file /opt/lib/libpthread-2.21.so.
Removing obsolete file /opt/lib/libnss_hesiod-2.21.so.
Removing obsolete file /opt/lib/libcrypt-2.21.so.
Removing obsolete file /opt/lib/libnss_nis-2.21.so.
Removing obsolete file /opt/lib/libcidn-2.21.so.
Removing obsolete file /opt/lib/libanl-2.21.so.
Removing obsolete file /opt/lib/libnss_files-2.21.so.
Removing obsolete file /opt/lib/libc-2.21.so.
Removing obsolete file /opt/lib/libnss_dns-2.21.so.
Removing obsolete file /opt/lib/librt-2.21.so.
Removing obsolete file /opt/lib/libresolv-2.21.so.
Removing obsolete file /opt/lib/libdl-2.21.so.
Removing obsolete file /opt/lib/libnss_nisplus-2.21.so.
Removing obsolete file /opt/lib/ld-2.21.so.
Removing obsolete file /opt/lib/libutil-2.21.so.
Upgrading gettext from 0.19.8.1-1 to 0.19.8.1-2 on /opt/.
Downloading http://ipkg.nslu2-linux.org/optware-ng/buildroot-ppc-603e/gettext_0.19.8.1-2_powerpc.ipk.
Upgrading libintl from 0.19.8.1-1 to 0.19.8.1-2 on /opt/.
Downloading http://ipkg.nslu2-linux.org/optware-ng/buildroot-ppc-603e/libintl_0.19.8.1-2_powerpc.ipk.
Configuring libnsl.
Configuring glibc-opt.
Configuring libintl.
Configuring gettext.
Configuring glib.
Generating /opt/share/glib-2.0/schemas/gschemas.compiled
FATAL: kernel too old
Collected errors:
 * pkg_run_script: package "glib" postinst script returned status 127.
 * opkg_configure: glib.postinst returned 127.
alllexx88 commented 6 years ago

Well, no surprise it doesn't work: minimal linux supported version for glibc 2.24+ is 3.2 (http://man7.org/tlpi/api_changes/#glibc-2.24). Probably a solution would be to downgrade glibc to 2.23, but that would call for some buildroot patching. And rebuilding the entire feed... Should be doable, but not in the nearest future: just don't have the time for this now

GammaC0de commented 6 years ago

That's bad news. This means no more updates for me and everyone with mybook live 😢

alllexx88 commented 6 years ago

I've downgraded glibc to 2.23. Can you test and see if it helps?

ipkg update
ipkg -force-reinstall -force-downgrade install glibc-opt libnsl
GammaC0de commented 6 years ago

OK, this solves this issue (:grinning:), but creates a new one (easy to solve I think): Now upgraded python refuses to start:

/opt/bin/python2.7: /opt/lib/libc.so.6: version `GLIBC_2.25' not found (required by /opt/lib/libpython2.7.so.1.0)

Obviously glibc 2.25 is not installed, v2.23 is.

alllexx88 commented 6 years ago

2.7.14-1 version of python27 should be fine. Thanks for the report. Such error can happen with other packages, please report them too on encountering them.

GammaC0de commented 6 years ago

Works great, thank you :)

Just for the knowledge, the fix for python27 was just to rebuild the package?

alllexx88 commented 6 years ago

You're welcome 😄

Just for the knowledge, the fix for python27 was just to rebuild the package?

You guessed right 😉

GammaC0de commented 6 years ago

👍 Thank you very much for your support 😃