Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL-1.2.10 compilation failed, using --disable-video-x11-xinerama #158

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 1.2.10
Reported for operating system, platform: Linux, x86

Comments on the original bug report:

On 2006-05-26 12:55:21 +0000, Ian Abbott wrote:

I get the following compilation errors:

/bin/sh ./libtool --mode=compile i686-pc-linux-gnu-gcc -march=athlon -O2 -pipe -I./include -D_GNU_SOURCE=1 -fvisibility=hidden -I/usr/kde/3.5/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DXTHREADS -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/x11/SDL_x11modes.c -o build/SDL_x11modes.lo
i686-pc-linux-gnu-gcc -march=athlon -O2 -pipe -I./include -D_GNU_SOURCE=1 -fvisibility=hidden -I/usr/kde/3.5/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DXTHREADS -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/x11/SDL_x11modes.c -fPIC -DPIC -o build/.libs/SDL_x11modes.o
./src/video/x11/SDL_x11modes.c: In function 'X11_GetVideoModes':
./src/video/x11/SDL_x11modes.c:632: error: 'struct SDL_PrivateVideoData' has no member named 'xinerama_info'
./src/video/x11/SDL_x11modes.c: In function 'X11_ResizeFullScreen':
./src/video/x11/SDL_x11modes.c:905: error: 'struct SDL_PrivateVideoData' has no member named 'xinerama_info'
./src/video/x11/SDL_x11modes.c:906: error: 'struct SDL_PrivateVideoData' has no member named 'xinerama_info'
./src/video/x11/SDL_x11modes.c:907: error: 'struct SDL_PrivateVideoData' has no member named 'xinerama_info'
./src/video/x11/SDL_x11modes.c:908: error: 'struct SDL_PrivateVideoData' has no member named 'xinerama_info'
./src/video/x11/SDL_x11modes.c: In function 'X11_EnterFullScreen':
./src/video/x11/SDL_x11modes.c:967: error: 'struct SDL_PrivateVideoData' has no member named 'xinerama_info'
./src/video/x11/SDL_x11modes.c:968: error: 'struct SDL_PrivateVideoData' has no member named 'xinerama_info'
./src/video/x11/SDL_x11modes.c:969: error: 'struct SDL_PrivateVideoData' has no member named 'xinerama_info'
./src/video/x11/SDL_x11modes.c:970: error: 'struct SDL_PrivateVideoData' has no member named 'xinerama_info'
make: *** [build/SDL_x11modes.lo] Error 1

Configure options were as follows:

./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-rpath --enable-events --enable-cdrom --enable-threads --enable-timers --enable-endian --enable-file --enable-cpuinfo --enable-oss --enable-alsa --disable-esd --enable-arts --disable-nas --enable-video-x11 --disable-dga --enable-video-x11-xv --disable-video-x11-xinerama --enable-video-x11-xrandr --disable-video-dga --disable-video-fbcon --disable-video-ggi --disable-video-svga --disable-video-aalib --disable-video-caca --enable-video-opengl --with-x --disable-video-x11-xme --enable-nasm --enable-video-dummy --disable-video-directfb --build=i686-pc-linux-gnu

Three patches were applied by Gentoo Linux's ebuild:

libsdl-1.2.10-PIC-hidden-symbols.patch
libsdl-1.2.10-libcaca.patch
libsdl-1.2.10-sdl-config.patch

I can attach those if needed.

I will attach my include/SDL_config.h file

On 2006-05-26 12:58:08 +0000, Ian Abbott wrote:

Created attachment 133
My SDL_config.h

On 2006-05-26 13:26:37 +0000, Ian Abbott wrote:

Created attachment 134
Possible fix

I'm not sure if I got the relationship between SDL_VIDEO_DRIVER_X11_VIDMODE and SDL_VIDEO_DRIVER_X11_XINERAMA correct in this patch, but at least it now compiles okay!

On 2006-05-27 10:18:35 +0000, Christopher Venghaus wrote:

I've got the same problem using the following similar configuration. Same patches applied with gentoo:

./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-rpath --enable-events --enable-cdrom --enable-threads --enble-timers --enable-endian --enable-file --enable-cpuinfo --enable-oss --enable-alsa --disable-esd --enable-arts --enable-nas --enable-video-x11 --disable-dga --enable-video-x11-xv --disable-video-x11-xinerama --enable-video-x11-xrandr --disable-video-dga --disable-video-fbcon --disable-video-ggi --disable-video-svga --enable-video-aalib --disable-video-caca --enable-video-opengl --with-x --disable-video-x11-xme --enable-nasm --enable-video-dummy --disable-video-directfb --build=i686-pc-linux-gnu

i686-pc-linux-gnu-gcc -O2 -mcpu=i686 -I./include -D_GNU_SOURCE=1 -I/usr/kde/3.5/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include/ -DXTHREADS -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/x11/SDL_x11modes.c -fPIC -DPIC -o build/.libs/SDL_x11modes.o
-mcpu=' is deprecated. Use -mtune=' or '-march=' instead.
./src/video/x11/SDL_x11modes.c: In function X11_GetVideoModes': ./src/video/x11/SDL_x11modes.c:632: error: structure has no member named xinerama_info'
./src/video/x11/SDL_x11modes.c: In function X11_ResizeFullScreen': ./src/video/x11/SDL_x11modes.c:905: error: structure has no member named xinerama_info'
./src/video/x11/SDL_x11modes.c:906: error: structure has no member named xinerama_info' ./src/video/x11/SDL_x11modes.c:907: error: structure has no member named xinerama_info'
./src/video/x11/SDL_x11modes.c:908: error: structure has no member named xinerama_info' ./src/video/x11/SDL_x11modes.c: In function X11_EnterFullScreen':
./src/video/x11/SDL_x11modes.c:967: error: structure has no member named xinerama_info' ./src/video/x11/SDL_x11modes.c:968: error: structure has no member named xinerama_info'
./src/video/x11/SDL_x11modes.c:969: error: structure has no member named xinerama_info' ./src/video/x11/SDL_x11modes.c:970: error: structure has no member named xinerama_info'
make: *** [build/SDL_x11modes.lo] Error 1

!!! ERROR: media-libs/libsdl-1.2.10 failed.
Call stack:
ebuild.sh, line 1531: Called dyn_compile
ebuild.sh, line 931: Called src_compile
libsdl-1.2.10.ebuild, line 143: Called die

On 2006-05-28 18:21:51 +0000, Daniel Thaler wrote:

*** Bug 243 has been marked as a duplicate of this bug. ***

On 2006-06-20 01:26:51 +0000, Sam Lantinga wrote:

This is fixed in subversion, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant