Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 760914

Summary: media-video/transcode-1.1.7-r5[sdl,X]: display.c: error: SDL_SysWMinfo has no member named subsystem; error: SDL_SYSWM_X11 undeclared
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED OBSOLETE    
Severity: normal CC: arthurzam, crabbedhaloablution, ionen, media-video
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 861311    
Bug Blocks:    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
media-video:transcode-1.1.7-r5:20201220-183620.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-12-20 18:44:05 UTC
      |                          ^
display.c: In function ‘dv_center_window’:
display.c:544:18: error: ‘SDL_SysWMinfo’ has no member named ‘subsystem’
  544 |         if ( info.subsystem == SDL_SYSWM_X11 ) {
      |                  ^
display.c:544:32: error: ‘SDL_SYSWM_X11’ undeclared (first use in this function)

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20201219-115221

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.0.0
Available Python interpreters, in order of preference:
  [1]   python3.9
  [2]   python3.8 (fallback)
Available Rust versions:
  [1]   rust-1.48.0 *

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Dec 20 05:05:18 PM UTC 2020

emerge -qpvO media-video/transcode
[ebuild  N    ] media-video/transcode-1.1.7-r5  USE="X a52 aac alsa dv dvd iconv jpeg mp3 mpeg ogg sdl theora truetype vorbis x264 xml xvid (-altivec) -imagemagick -lzo -mjpeg (-nuv) -oss (-pic) -postproc -quicktime -v4l" CPU_FLAGS_X86="mmx sse sse2 -3dnow"
Comment 1 Toralf Förster gentoo-dev 2020-12-20 18:44:06 UTC
Created attachment 678954 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-12-20 18:44:08 UTC
Created attachment 678957 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-12-20 18:44:09 UTC
Created attachment 678960 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-12-20 18:44:10 UTC
Created attachment 678963 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-12-20 18:44:11 UTC
Created attachment 678966 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-12-20 18:44:13 UTC
Created attachment 678969 [details]
media-video:transcode-1.1.7-r5:20201220-183620.log
Comment 7 Toralf Förster gentoo-dev 2020-12-20 18:44:14 UTC
Created attachment 678972 [details]
temp.tbz2
Comment 8 crabbed halo ablution 2020-12-20 20:15:31 UTC
I suspect this may be a bug in how libsdl is built.
SDL_VIDEO_DRIVER_X11 should be defined in /usr/include/SDL/SDL_config.hwhen transcode is built with USE=X because transcode depends on libsdl thusly: sdl? ( >=media-libs/libsdl-1.2.5[X?] )
And therefore SDL_SYSWM_X11 *should* be declared since it's hidden in /usr/include/SDL/SDL_syswm.h behind #ifdef SDL_VIDEO_DRIVER_X11. That it's not tells us that something went wrong in libsdl.
Comment 9 Andreas Sturmlechner gentoo-dev 2022-07-14 16:46:55 UTC
Maybe games proj knows something about it then.
Comment 10 Ionen Wolkens gentoo-dev 2022-07-14 17:19:23 UTC
(In reply to Andreas Sturmlechner from comment #9)
> Maybe games proj knows something about it then.
Unsure if was the case here, but only way I can reproduce is if libsdl was built with USE=-video which effectively disables display stuff.