Skip to content

Fix build on BSDs - #424

Merged
Jacalz merged 1 commit into
go-gl:masterfrom
sdassow:fix/bsd-joy
Aug 2, 2026
Merged

Jacalz merged 1 commit into
go-gl:masterfrom
sdassow:fix/bsd-joy

Conversation

@sdassow

@sdassow sdassow commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Without this fix the build fails on BSDs with:

ld: error: duplicate symbol: _glfwInitJoysticksNull
>>> defined at null_joystick.c:35 (/home/simon/Code/glfw/v3.4/glfw/glfw/src/null_joystick.c:35)
>>>            /tmp/go-link-1630102477/000011.o:(_glfwInitJoysticksNull)
>>> defined at null_joystick.c:35 (/home/simon/Code/glfw/v3.4/glfw/glfw/src/null_joystick.c:35)
>>>            /tmp/go-link-1630102477/000012.o:(.text+0x4300)

ld: error: duplicate symbol: _glfwTerminateJoysticksNull
>>> defined at null_joystick.c:40 (/home/simon/Code/glfw/v3.4/glfw/glfw/src/null_joystick.c:40)
>>>            /tmp/go-link-1630102477/000011.o:(_glfwTerminateJoysticksNull)
>>> defined at null_joystick.c:40 (/home/simon/Code/glfw/v3.4/glfw/glfw/src/null_joystick.c:40)
>>>            /tmp/go-link-1630102477/000012.o:(.text+0x4330)

ld: error: duplicate symbol: _glfwPollJoystickNull
>>> defined at null_joystick.c:44 (/home/simon/Code/glfw/v3.4/glfw/glfw/src/null_joystick.c:44)
>>>            /tmp/go-link-1630102477/000011.o:(_glfwPollJoystickNull)
>>> defined at null_joystick.c:44 (/home/simon/Code/glfw/v3.4/glfw/glfw/src/null_joystick.c:44)
>>>            /tmp/go-link-1630102477/000012.o:(.text+0x4360)

ld: error: duplicate symbol: _glfwGetMappingNameNull
>>> defined at null_joystick.c:49 (/home/simon/Code/glfw/v3.4/glfw/glfw/src/null_joystick.c:49)
>>>            /tmp/go-link-1630102477/000011.o:(_glfwGetMappingNameNull)
>>> defined at null_joystick.c:49 (/home/simon/Code/glfw/v3.4/glfw/glfw/src/null_joystick.c:49)
>>>            /tmp/go-link-1630102477/000012.o:(.text+0x4390)

ld: error: duplicate symbol: _glfwUpdateGamepadGUIDNull
>>> defined at null_joystick.c:54 (/home/simon/Code/glfw/v3.4/glfw/glfw/src/null_joystick.c:54)
>>>            /tmp/go-link-1630102477/000011.o:(_glfwUpdateGamepadGUIDNull)
>>> defined at null_joystick.c:54 (/home/simon/Code/glfw/v3.4/glfw/glfw/src/null_joystick.c:54)
>>>            /tmp/go-link-1630102477/000012.o:(.text+0x43C0)
cc: error: linker command failed with exit code 1 (use -v to see invocation)

@Jacalz Jacalz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll just wait for the tests to pass and then merge when I have some time over.

@Jacalz
Jacalz merged commit 8fa7250 into go-gl:master Aug 2, 2026
6 checks passed
@sdassow
sdassow deleted the fix/bsd-joy branch August 23, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants