Bugzilla – Bug 1218944
[games:tools] mumble – fails to build due to link errors: undefined reference to `glGetString'
Last modified: 2024-01-18 21:11:38 UTC
Build fails on Factory/Tumbleweed with link errors such as: undefined reference to `glGetString' undefined reference to `glCreateShader' undefined reference to `glShaderSource' undefined reference to `glCompileShader' etc. Looks as if something like -lGL is needed? → See https://build.opensuse.org/package/show/openSUSE:Factory/mumble and https://build.opensuse.org/package/show/games:tools/mumble BTW: As protobuf got updated, the old successful build cannot be installed anymore as: "nothing provides 'libprotobuf.so.23.4.0()(64bit)' needed by the to be installed mumble-1.5.517-2.1.x86_64"
Created attachment 871992 [details] .spec patch I am by far not an openSUSE build expert, but adding -DCMAKE_SHARED_LINKER_FLAGS="-lGL" \ fixes the build here. I did so in the attached patch with the > 1600 condition, assuming that the current SUSE:ALP has an older Qt 5.15 and will not require it. I think the problem is that Qt 5.15 changes some handling of OpenGL; I did not see this issue explicitly mentioned, but some changes are listed at https://www.qt.io/blog/qt-5.15-released - and it would also fit time wise. Can someone more knowledgeable check whether this change makes sense and, if so, apply it? - Or if not, propose a different solution?
https://build.opensuse.org/request/show/1139811