-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined reference on OpenBSD to some standard C library functions #354
Comments
Did you solve this problem @markand ? I've exactly the same problem with the current verson of SDL3_image. If you solved it, please, can you explain how did you do it? I'm using OpenBSD-current. EDIT: I've solved the linker error removing the argument --no-undefined from the file CMakeFiles/SDL3_image-shared.dir/link.txt. This is the only solution I've found until now. Later I'll do some tests to be sure I'm not messed everything up and everything works fine. |
CC @madebr |
Thank you so much! I knew that something was wrong with that argument. But what I didn't know is how to remove it from CMakefiles cause I don't know how to remove it in the cmake config. (I'm a NOOB with everything related to CMake) |
Can you try current main? |
Yes, c35c94e looks like the right way to go. It should be backported to SDL2 and release-2.?.x branches too. And the other satellite libs probably need the same treatment. |
In SDL_ttf is fixed in the file cmake/PrivateSdlFunctions.cmake:276 Thank you so much all of you for you help! |
I backported it to all SDL3/SDL2 and release branches. |
Great. P.S.: SDL_rtf main + SDL2 branches seem to have been missed. |
Done. Will SDL_rtf ever get a release? |
There's no release planned, no. |
Building latest git throws some undefined reference to some C functions from standard library.
I'll check what can cause the issue.
The text was updated successfully, but these errors were encountered: