glibc issue on trying to build from git
-
I'm trying to build from a recent git pull and make fails on me with the following error:
/snap/protobuf/52/bin/protoc: /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /lib/x86_64-linux-gnu/libgtk3-nocsd.so.0)
I had to install protobuf from snap (I'm on ubuntu 22.10) looks like I just have glibc 2.31
https://forum.snapcraft.io/t/snapping-application-that-depends-on-glibc-2-34/26822 suggests I have to go to a LTS version to build or are there other means of getting around this? -
@rajm
The glibc in snap is not compatible with the glibc on the native system. So you probably won't get that to work at all.
So either install protobuf-compiler (via apt), or compile protobuf from source. -
@jonas On checking - I had protobuf-compiler already installed (so why did I install via snap??!!) I removed the snap version and re-ran cmake - make then gave me
ext/libstrawberry-tagreader/CMakeFiles/libstrawberry-tagreader.dir/build.make:73: *** target pattern contains no '%'. Stop.
I removed the build directory contents and then cmake/make ran ok - not sure whether cmake should just have worked with the dependency change but it's now ok.