Bug 1218944 - [games:tools] mumble – fails to build due to link errors: undefined reference to `glGetString'
Summary: [games:tools] mumble – fails to build due to link errors: undefined reference...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Andreas Stieger
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-18 10:07 UTC by Tobias Burnus
Modified: 2024-01-18 21:11 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
.spec patch (813 bytes, text/plain)
2024-01-18 16:28 UTC, Tobias Burnus
Details

Note You need to log in before you can comment on or make changes to this bug.
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