Red Hat Bugzilla – Bug 195398
Undefined video modes due to missing BuildRequires
Last modified: 2007-11-30 17:11:35 EST
Description of problem:
/usr/include/SDL/SDL_config.h contains a whole bunch of undefined video modes,
such as the all-important SDL_VIDEO_DRIVER_X11. I have seen this cause build
errors for other applications that include SDL_syswm.h (such as xpilot-ng in
This is due to the fact that SDL's confiugre script thinks that X isn't
installed when running configure, because a few X headers are missing:
checking for X... no
The root of this problem is a missing BuildRequires: libXt-devel.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install SDL-devel-1.2.10-2
2. Look at the video modes defined in /usr/include/SDL/SDL_config.h
SDL_VIDEO_DRIVER_X11 is not defined
SDL_VIDEO_DRIVER_X11 is defined
Two other BuildRequires that add useful functionality to SDL are
libXrender-devel and libXrandr-devel.
Additionally, the BuildRequires: mesa-libGL-devel mesa-libGLU-devel should be
the more generic libGL-devel and libGLU-devel.
Created attachment 131241 [details]
Patch to fix spec file
Attached is a patch to fix this spec file to *hopefully* speed this bug
Notice that this not only breaks building SDL using apps but that this also
break running most SDL using apps as the SDL library itself has been build
without X support!
Due to this all SDL using apps in test1 are broken, please fix this in Rawhide asap.
*** Bug 196445 has been marked as a duplicate of this bug. ***
Should be fixed in -3 in tomorrow's rawhide.
I undid my patch and used Chris' from above instead.
Chris' patch causes a failure on x86_64. Leaving it at -3 for now. Please
supply additional patches against -3.
RPM build errors:
File not found by glob: /var/tmp/SDL-1.2.10-root/usr/share/man/man3/SDL*.3*
Warren, is the above problem corrected already?
Florian La Roche
This been fixed a long time now, closing.