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 1994

Summary: Debian bug report: sdl-config --static-libs doesn't add Required.private libs
Product: SDL Reporter: manuel.montezelo
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED ENDOFLIFE QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.15   
Hardware: x86_64   
OS: Linux   

Description manuel.montezelo 2013-07-27 14:26:48 UTC
Original report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698052
--------------
Compiling a program statically with `sdl-config --static-libs ...` will result 
in missing symbols:

/usr/lib/i386-linux-gnu/libX11.a(ClDisplay.o): In function `XCloseDisplay':
(.text+0xbd): undefined reference to `xcb_disconnect'
/usr/lib/i386-linux-gnu/libX11.a(OpenDis.o): In function `OutOfMemory':
(.text+0x456): undefined reference to `xcb_disconnect'
[...]

A pkg-config based config (.pc) would use "Required.private: x11" to fix this. 
Adding also `pkg-config --static --libs x11` is currently used by me as 
workaround. But this is no real solution
--------------

Indeed, I verified that in Debian systems, /usr/lib/x86_64-linux-gnu/pkgconfig/x11.pc contains the line "Requires.private: xcb >= 1.1.92", so when one wants to compile linking X11 statically, it pulls more library flags for the compiler, including XCB.

$ pkg-config --libs --static x11
-lX11 -lpthread -lxcb -lXau -lXdmcp


Cheers.
Comment 1 Sam Lantinga 2013-07-28 14:27:36 UTC
Good point, although I'm not sure what the portable solution would be.

Would you like to submit a patch that works for you?
Comment 2 manuel.montezelo 2013-07-28 17:01:06 UTC
Sorry, we don't have any patch for this or a clear idea about how to solve it, that's why I didn't mention it in the report.
Comment 3 Ryan C. Gordon 2015-08-25 09:38:21 UTC
Hello, and sorry if you're getting several copies of this message by email, since we are closing many bugs at once here.

We have decided to mark all SDL 1.2-related bugs as RESOLVED ENDOFLIFE, as we don't intend to work on SDL 1.2 any further, but didn't want to mark a large quantity of bugs as RESOLVED WONTFIX, to clearly show what was left unattended to and make it easily searchable.

Our current focus is on SDL 2.0.

If you are still having problems with an ENDOFLIFE bug, your absolute best option is to move your program to SDL2, as it will likely fix the problem by default, and give you access to modern platforms and tons of super-cool new features.

Failing that, we _will_ accept small patches to fix these issues, and put them in revision control, although we do not intend to do any further official 1.2 releases.

Failing that, please feel free to contact me directly by email (icculus@icculus.org) and we'll try to find some way to help you out of your situation.

Thank you,
--ryan.