Summary: | devel/simavr: Fails to link after graphics/mesa-libs enabled libglvnd support: ld: error: undefined symbol: glGenTextures | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | pr | ||||||||
Component: | Individual Port(s) | Assignee: | Kevin Bowling <kbowling> | ||||||||
Status: | Closed FIXED | ||||||||||
Severity: | Affects Many People | CC: | kbowling, zirias | ||||||||
Priority: | --- | Flags: | zirias:
maintainer-feedback+
kbowling: merge-quarterly+ |
||||||||
Version: | Latest | ||||||||||
Hardware: | Any | ||||||||||
OS: | Any | ||||||||||
Attachments: |
|
Description
pr
2021-07-05 16:31:17 UTC
I *think* this problem was actually introduced with https://reviews.freebsd.org/D30869 https://cgit.freebsd.org/ports/commit/?id=709148649962c82048858d84a29ffa4ab15a0738 I noticed it a while ago, starting with pkg-fallout mails on 7/1, and there are some successful builds of 1.7_1, so https://reviews.freebsd.org/D30824 probably didn't cause it yet. Unfortunately, I don't really understand these GL-related changes. Local test builds are running here, I hope to find and fix the problem… Created attachment 226291 [details]
Add GL libs for linking
This looks like it used to work due to over-linkage of libGLU transitively adding libGL. Add specific linkage to libOpenGL instead. Can you let me know if this patch works for you?
Created attachment 226292 [details]
Add GL libs for linking
Corrected diff (previous just had an unrelated change)
Created attachment 226293 [details]
Add GL libs for linking
The patch above will work but the correct fix is to libGLU's pkgconfig file, https://gitlab.freedesktop.org/mesa/glu/-/merge_requests/9. I will get this pulled back into FreeBSD shortly. Thanks a lot! Successfully tested the attached patch on 14/amd64. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=fac2bc519518fc6072e1d042b12cca44afb63568 commit fac2bc519518fc6072e1d042b12cca44afb63568 Author: Kevin Bowling <kbowling@FreeBSD.org> AuthorDate: 2021-07-15 06:53:16 +0000 Commit: Kevin Bowling <kbowling@FreeBSD.org> CommitDate: 2021-07-15 06:53:16 +0000 graphics/libGLU: Switch to meson build Fixes an issue I caused with pkgconfig https://gitlab.freedesktop.org/mesa/glu/-/commit/225e00a14a9200f11253775a7c7778c1c29c8b23 PR: 256997 graphics/libGLU/Makefile | 11 ++++++----- graphics/libGLU/files/patch-meson.build (new) | 8 ++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) A commit in branch 2021Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=7edc4776cbd8f8b6192c5f1ebddd8f8de6bbbd67 commit 7edc4776cbd8f8b6192c5f1ebddd8f8de6bbbd67 Author: Kevin Bowling <kbowling@FreeBSD.org> AuthorDate: 2021-07-15 06:53:16 +0000 Commit: Kevin Bowling <kbowling@FreeBSD.org> CommitDate: 2021-07-15 06:55:24 +0000 graphics/libGLU: Switch to meson build Fixes an issue I caused with pkgconfig https://gitlab.freedesktop.org/mesa/glu/-/commit/225e00a14a9200f11253775a7c7778c1c29c8b23 PR: 256997 (cherry picked from commit fac2bc519518fc6072e1d042b12cca44afb63568) graphics/libGLU/Makefile | 11 ++++++----- graphics/libGLU/files/patch-meson.build (new) | 8 ++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) (In reply to Felix Palmen from comment #6) Can you let me know if the above works as intended (In reply to Kevin Bowling from comment #9) Yes it does, thanks! simavr is building fine without any patch again. Thanks for your report! |