I’m trying to use the Imagebuilder to build an image for my B-1300 on a Debian buster machine.
After installing all the suggested dependencies with apt and cloning the repository, I ran ./gl_image -p b1300, and after several build steps succeeded, got this error from mksquashfs4:
/home/dgc/imagebuilder/imagebuilder/3.1/openwrt-imagebuilder-ipq806x-QSDK_Premium_3.1/staging_dir/host/bin/bundled/mksquashfs4: relocation error: /lib/x86_64-linux-gnu/libnss_files.so.2: symbol __libc_readline_unlocked, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
Yes, I’m on Debian 10 (Buster), which has glibc 2.28
A fully upgraded Ubuntu 20.04 would have glibc 2.31, 18.04 would have 2.27.
I suspect the problem might be this issue, which suggests that it would trigger upon upgrading to glibc >= 2.28.
But, if it’s working for you on Ubuntu 20.04, that may not be it.
Is gl_image downloading a pre-built mksquashfs4? I might try building that locally and substituting it in, which would eliminate glibc version compatibility issues.
Yeah just looking at that and looking at the issue you linked in your previous post, it’s exactly the same issue basically. It means that there is something wrong with Debian 10’s glibc.
Unfortunately that specific image you are trying to build is QSDK, which is closed source. GL can only supply the precompiled builder, nothing more.
The only thing you can do is use the docker image, recompile an older version of glibc and use it on your system or use another system such as Ubuntu that doesn’t have the issue, it’s a pain i know , until Debian finds a fix in a later version.
Funny how Ubuntu is Debian based, but caught those issues before release.
Not so much a bug in Debian 10 as a backwards-incompatible change in glibc. We just need imagebuilder to provide a mksquashfs linked against a more recent glibc.