We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4546 - SDL 2.0 fails to load at runtime
Summary: SDL 2.0 fails to load at runtime
Status: NEW
Alias: None
Product: sdl12-compat
Classification: Unclassified
Component: everything (show other bugs)
Version: unspecified
Hardware: x86_64 Linux
: P2 blocker
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-12 20:07 UTC by Mathieu Comandon
Modified: 2019-03-12 20:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Comandon 2019-03-12 20:07:38 UTC
After building the project on Ubuntu 18.10, I was unable to run any game using it, there seems to be an issue with loading the SDL2 shared libraries with dlopen.

Games will consistently crash with the following:

 ERROR: sdl12-compat failed to load SDL 2.0! Aborting!
 [1]    9699 abort (core dumped)  ./ut2004-bin

I had to pass custom arguments for the lib to build with the following command: 

 C_INCLUDE_PATH="/usr/include/SDL2" make

This was reproduced on UT2003 and Rune (32bit) and UT2004.

Reading through the code, the problem seems to be with the LoadSDL20Library function, the required file (libSDL2-2.0.so.0) is available for both 32 and 64 bit on the system.