Error while reading shared library symbols

Hi,

I’ve been using 1.1.8 for a while and although
it works great I wanted to try some OpenGL stuff.
But all the demos require 1.2.0 at least, so
I thought it would be a good time to upgrade.

I downloaded the SDL-1.2.1.tar.gz distribution,
moved the 1.1.8 version out of the way, and
installed 1.2.1 the same way as with 1.1.8:
./configure --prefix=/home/jkort/pkgs/sdl
make
make install
I did rehash and sdl-config --version to be sure
I got the right one. Then I moved to the test
programs directory and tried "make testvidinfo"
which compiles fine:

gcc -DPACKAGE=“SDL_tests” -DVERSION=“1.2.0” -I. -I. -g -O2
-I/usr/X11R6/include -I/home/jkort/pkgs/sdl/include
-I/home/jkort/pkgs/sdl/include/SDL -D_REENTRANT -DHAVE_OPENGL -c
testvidinfo.c
gcc -g -O2 -I/usr/X11R6/include -I/home/jkort/pkgs/sdl/include
-I/home/jkort/pkgs/sdl/include/SDL -D_REENTRANT -DHAVE_OPENGL -o
testvidinfo testvidinfo.o -L/home/jkort/pkgs/sdl/lib
-Wl,-rpath,/home/jkort/pkgs/sdl/lib -lSDL -lpthread

The only odd things I notice are that -DVERSION is 1.2.0
instead of 1.2.1 and the link command gets “-I” flags,
but I doubt that will cause bad things to happen
I was expecting more -l flags, but if the linker doesn’t
complain I wont either. The installed libraries look ok too:

jkort at hip:~/src/SDL-1.2.1/test > ls -l ~/pkgs/sdl/lib/*
lrwxrwxrwx 1 jkort users 19 Jul 7 12:43
/home/jkort/pkgs/sdl/lib/libSDL-1.2.so.0 -> libSDL-1.2.so.0.0.1
-rwxr-xr-x 1 jkort users 1130668 Jul 7 12:43
/home/jkort/pkgs/sdl/lib/libSDL-1.2.so.0.0.1
-rw-r–r-- 1 jkort users 3388262 Jul 7 12:43
/home/jkort/pkgs/sdl/lib/libSDL.a
-rwxr-xr-x 1 jkort users 761 Jul 7 12:43
/home/jkort/pkgs/sdl/lib/libSDL.la
lrwxrwxrwx 1 jkort users 19 Jul 7 12:43
/home/jkort/pkgs/sdl/lib/libSDL.so -> libSDL-1.2.so.0.0.1
-rw-r–r-- 1 jkort users 2586 Jul 7 12:43
/home/jkort/pkgs/sdl/lib/libSDLmain.a

But when I run testvidinfo it goes into a loop before
it does anything, it doesn’t display a window or text.
When I use gdb I get a little more information, but
I don’t understand what it means:

(gdb) file testvidinfo
Reading symbols from testvidinfo…done.
(gdb) run
Starting program: /home/jkort/src/SDL-1.2.1/test/testvidinfo
Error while reading shared library symbols:
Quit

===> It went in a loop here, so I pressed control-C and got this:
Program received signal SIGINT, Interrupt.
0x4013671e in select () from /lib/libc.so.6
(gdb) bt
#0 0x4013671e in select () from /lib/libc.so.6
#1 0x402a3f98 in DTOR_END () from /usr/X11R6/lib/libX11.so.6
#2 0x4020987a in _XRead () from /usr/X11R6/lib/libX11.so.6
#3 0x402b5647 in XF86VidModeGetModeLine () from
/usr/X11R6/lib/libXxf86vm.so.1
#4 0x40046cb9 in XF86VidModeGetModeInfo () at SDL_x11modes.c:350
#5 0x40046d21 in save_mode (this=0x8049ef0) at SDL_x11modes.c:54
#6 0x40047585 in X11_GetVideoModes () at SDL_x11modes.c:191
#7 0x40048f23 in X11_VideoInit (this=0x8049ef0, vformat=0xbffff674) at
SDL_x11video.c:428
#8 0x4003ec74 in SDL_VideoInit () at SDL_video.c:814
#9 0x4002030b in SDL_InitSubSystem () at SDL.c:148
#10 0x40020415 in SDL_Init () at SDL.c:148
#11 0x8048753 in main (argc=1, argv=0xbffff794) at testvidinfo.c:15
(gdb) quit

Any idea what’s wrong ?

I use gcc version 2.95.2

Regards,
Jan

===> It went in a loop here, so I pressed control-C and got this:
Program received signal SIGINT, Interrupt.
0x4013671e in select () from /lib/libc.so.6
(gdb) bt
#0 0x4013671e in select () from /lib/libc.so.6
#1 0x402a3f98 in DTOR_END () from /usr/X11R6/lib/libX11.so.6
#2 0x4020987a in _XRead () from /usr/X11R6/lib/libX11.so.6
#3 0x402b5647 in XF86VidModeGetModeLine () from
/usr/X11R6/lib/libXxf86vm.so.1

Any idea what’s wrong ?

Let me guess, you’re running SuSE 7.0 or 7.1?
http://www.libsdl.org/faq/FAQ-Linux.html#BROKEN_SUSE

See ya,
-Sam Lantinga, Lead Programmer, Loki Software, Inc.