[plug] Open GL / SDL / Debian Problem
Simon N
newtons at iinet.net
Sat Mar 27 16:55:43 WST 2004
On Sat, 2004-03-27 at 15:40, Cameron Patrick wrote:
> Could you give the output from "ldd lesson04" for the desktop and the
> laptop?
The working one :
libGL.so.1 => /usr/lib/tls/libGL.so.1 (0x40023000)
libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x40080000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x400fc000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x401ed000)
libc.so.6 => /lib/tls/libc.so.6 (0x401fc000)
libGLcore.so.1 => /usr/lib/tls/libGLcore.so.1 (0x40335000)
libm.so.6 => /lib/tls/libm.so.6 (0x407ea000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4080d000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4081c000)
libdl.so.2 => /lib/tls/libdl.so.2 (0x408e3000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x408e6000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4099f000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x409a7000)
libvga.so.1 => /usr/lib/libvga.so.1 (0x40a53000)
libaa.so.1 => /usr/lib/libaa.so.1 (0x40ab9000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libncurses.so.5 => /lib/libncurses.so.5 (0x40ad5000)
libslang.so.1 => /lib/libslang.so.1 (0x40b14000)
libgpm.so.1 => /usr/lib/libgpm.so.1 (0x40b88000)
The broken one :
libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x40023000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x4009e000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40190000)
libc.so.6 => /lib/tls/libc.so.6 (0x4019f000)
libGL.so.1 => /usr/lib/tls/libGL.so.1 (0x402d8000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40335000)
libm.so.6 => /lib/tls/libm.so.6 (0x403ee000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40411000)
libdl.so.2 => /lib/tls/libdl.so.2 (0x4041a000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x4041d000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x404c9000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40590000)
libvga.so.1 => /usr/lib/libvga.so.1 (0x4059e000)
libaa.so.1 => /usr/lib/libaa.so.1 (0x40603000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libGLcore.so.1 => /usr/lib/tls/libGLcore.so.1 (0x40620000)
libncurses.so.5 => /lib/libncurses.so.5 (0x40ad5000)
libslang.so.1 => /lib/libslang.so.1 (0x40b14000)
libgpm.so.1 => /usr/lib/libgpm.so.1 (0x40b88000)
I presume the order here isn't important ?
> The size difference suggests that one might be linked
> statically and the other dynamically to some libraries. (Or that one
> is compiled with debugging and the other not, but presumably you'd
> have mentioned if that was the case.)
I ran the same command on both of them:
gcc -ansi -Wall lesson04.c -o lesson04 -lGL -lGLU `sdl-config --cflags
--libs`
> Also, look at the versions of
> the Debian packages providing the listed libraries on each system -
> anything weird there?
>
I'll take a look
Simon N
More information about the plug
mailing list