Bug 1218944

Summary: [games:tools] mumble – fails to build due to link errors: undefined reference to `glGetString'
Product: [openSUSE] openSUSE Tumbleweed Reporter: Tobias Burnus <burnus>
Component: OtherAssignee: Andreas Stieger <Andreas.Stieger>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: Andreas.Stieger, i, tux93
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: .spec patch

Description Tobias Burnus 2024-01-18 10:07:26 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"
Comment 1 Tobias Burnus 2024-01-18 16:28:14 UTC
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?
Comment 2 Andreas Stieger 2024-01-18 21:11:38 UTC
https://build.opensuse.org/request/show/1139811