Description of problem: I done a "yum update" and got SDL-1.2.9-6. Now, normal SDL_Init() don't work ("No available video device.") strace shows it is because of /dev/fb0: --- write(1, "Initializing SDL.\n", 18) = 18 open("/dev/fb0", O_RDWR) = -1 ENOENT (No such file or directory) brk(0) = 0x8467000 brk(0x8488000) = 0x8488000 write(1, "Could not initialize SDL: No ava"..., 53) = 53 exit_group(-1) = ? --- After downgrading SDL to SDL-1.2.9-5.2.1 (initial version FC5) all works fine again! Version-Release number of selected component (if applicable): SDL-1.2.9-6 SDL-devel-1.2.9-6 How reproducible: Update to SDL-1.2.9-6 and use the SDL_Init() example from http://docs.mandragor.org/files/Common_libs_documentation/SDL/SDL_Documentation_project_en/guidebasicsinit.html Steps to Reproduce: 1. Update to SDL-1.2.9-6 2. Use SDL_Init() example from http://docs.mandragor.org/files/Common_libs_documentation/SDL/SDL_Documentation_project_en/guidebasicsinit.html gcc -lSDL -o SDL_Init SDL_Init.c "Initializing SDL. Could not initialize SDL: No available video device." 3. Downgrade to SDL-1.2.9-5.2.1 rpm -Uhv --force ... 4. Run #2 (SDL_Init()) "Initializing SDL. SDL initialized. Quiting SDL. Quiting...." Now strace shows it is using connect(3, {sa_family=AF_FILE, path="/tmp/.X11-unix/X0"}, 19) = 0 Actual results: SDL don't work. "Could not initialize SDL: No available video device." Expected results: SDL_Init() should work. ;-) Additional info: I realize this broken behavior trying to use qemu.
Can you please check if the old package is able to use /dev/fb0 for you? You can use strace for this.
Created attachment 154859 [details] strace with "old" SDL-package; working
Created attachment 154860 [details] strace "new" SDL-package; not working
Created attachment 154861 [details] SDL_Init() example for testing purpose
I forget to mention that I don't have /dev/fb0. $ ls -l /dev/fb* ls: /dev/fb*: No such file or directory
The old package don't access /dev/fb0.
I am seeing the same problem when playing wesnoth (built from source, not the rpm). It is broken for SDL-1.2.9-6.i386.rpm and SDL-devel-1.2.9-6.i386.rpm and works when I fall back to SDL-1.2.9-5.2.1.i386.rpm and SDL-devel-1.2.9-5.2.1.i386.rpm . The message I get from Wesnoth is: /home/wesnoth/wesnoth-1.3/bin/wesnoth Battle for Wesnoth v1.3.2+svn Started on Fri May 18 08:25:57 2007 started game: 2673718298 error display: Could not initialize SDL: No available video device Could not initialize video. Exiting. I do not have a /dev/fb* on my machine either.
I think we've got an additional requirement here: BuildRequires: libXt-devel I played a little with the sources and compared SDL-1.2.9-5.2.1.src.rpm with SDL-1.2.9-6.src.rpm. No differences in source code, except of the SPEC file as you mentioned in changelog: "added missing (build) requires for GL and GLU." So where's the difference? Size of .so: -rwxr-xr-x 1 root root 467040 Feb 13 2006 libSDL-1.2.so.0.7.2 <- SDL-1.2.9-5.2.1 -rwxr-xr-x 1 root root 354664 May 7 16:55 libSDL-1.2.so.0.7.2 <- SDL-1.2.9-6 SDL-1.2.9-5.2.1 $ ldd libSDL-1.2.so.0.7.2 linux-gate.so.1 => (0x0043c000) libm.so.6 => /lib/libm.so.6 (0x00381000) libdl.so.2 => /lib/libdl.so.2 (0x0031f000) libX11.so.6 => /usr/lib/libX11.so.6 (0x0043d000) libXext.so.6 => /usr/lib/libXext.so.6 (0x00c73000) libpthread.so.0 => /lib/libpthread.so.0 (0x00f8f000) libc.so.6 => /lib/libc.so.6 (0x0053b000) /lib/ld-linux.so.2 (0x80000000) libXau.so.6 => /usr/lib/libXau.so.6 (0x00258000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00110000) SDL-1.2.9-6 $ ldd libSDL-1.2.so.0.7.2 linux-gate.so.1 => (0x00ded000) libm.so.6 => /lib/libm.so.6 (0x00ac3000) libdl.so.2 => /lib/libdl.so.2 (0x00aea000) libpthread.so.0 => /lib/libpthread.so.0 (0x00c23000) libc.so.6 => /lib/libc.so.6 (0x0098e000) /lib/ld-linux.so.2 (0x80000000) So there are some X-Libraries missing? I run a ./configure on my very base Fedora 5 test installation and learned in config.log X11 capabilities are checked with /usr/include/X11/Intrinsic.h. Well it's missing on my test box. I done a "yum install libXt-devel" and got libXt-devel-1.0.0-2.2 plus some dependencies. $ rpmbuild -bc SDL.spec $ cd ../BUILD/SDL-1.2.9/src/.libs $ ln -s libSDL-1.2.so.0.7.2 libSDL-1.2.so.0 $ export LD_LIBRARY_PATH=. $ ~/tmp/SDL_init Initializing SDL. SDL initialized. Quiting SDL. Quiting.... Looks good! While building the rpm - do you have libXt-devel installed?
SDL-1.2.9-6.1 has been pushed for fc5, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report.