Build throwing undefined reference `glXGetProcAddressARB`
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 77
- Forks
- 38
- Avg merge
- 36m
- Merged PRs (30d)
- 6
Description
- Platform:
Ubuntu 22.10 - Installed packages:
unzip git gcc cmake make build-essential libxmu-dev libxi-dev libgl-dev libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev libgl1-mesa-glx glx-alternative-mesa - glew:
2.2.0 - sdl:
SDL2 branch
I'm trying to run the build_release script and it throws the following error in the step blastem:
/usr/bin/ld: <artificial>:(.text+0x81dd): undefined reference to `glBindTexture'
/usr/bin/ld: <artificial>:(.text+0x81ee): undefined reference to `glTexParameteri'
/usr/bin/ld: <artificial>:(.text+0x81ff): undefined reference to `glTexParameteri'
/usr/bin/ld: <artificial>:(.text+0x8213): undefined reference to `glTexParameteri'
/usr/bin/ld: <artificial>:(.text+0x8227): undefined reference to `glTexParameteri'
/usr/bin/ld: <artificial>:(.text+0x8261): undefined reference to `glTexImage2D'
/usr/bin/ld: <artificial>:(.text+0x82b7): undefined reference to `glTexImage2D'
/usr/bin/ld: /tmp/ccoJ3ja0.ltrans0.ltrans.o: in function `gl_teardown':
<artificial>:(.text+0x1f1a): undefined reference to `glDeleteTextures'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):(.text+0x25c): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):(.text+0x27b): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):(.text+0x29a): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):(.text+0x2b9): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):(.text+0x2d8): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):(.text+0x2f7): more undefined references to `glXGetProcAddressARB' follow
/usr/bin/ld: glew/lib/libGLEW.a(glew.o): in function `glxewGetExtension':
glew.c:(.text+0x25d52): undefined reference to `glXGetClientString'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o): in function `glxewInit':
glew.c:(.text+0x25dba): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew.c:(.text+0x25e24): undefined reference to `glXQueryVersion'
/usr/bin/ld: glew.c:(.text+0x25e47): undefined reference to `glXGetClientString'
/usr/bin/ld: glew.c:(.text+0x25e94): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew.c:(.text+0x25eb3): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew.c:(.text+0x25ed2): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew.c:(.text+0x25ef1): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew.c:(.text+0x25f10): undefined reference to `glXGetProcAddressARB'
/usr/bin/ld: glew/lib/libGLEW.a(glew.o):glew.c:(.text+0x25f2f): more undefined references to `glXGetProcAddressARB' follow
collect2: error: ld returned 1 exit status
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The failure occurs while build_release runs the blastem step; begin by tracing that script's linker configuration and the GLEW/OpenGL libraries named in the output. Reproduce on the listed Ubuntu setup and consider the build complete when build_release links blastem without these undefined references.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cmake, linux, ubuntu
- Domain
- build-system, computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100