[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linking surprise...



On Wed, Oct 23, 2002 at 01:49:56PM +0100, Al Riddoch wrote:
> On Wed, Oct 23, 2002 at 01:33:31PM +0200, Christian Henz wrote:
> > On Wed, Oct 23, 2002 at 11:50:00AM +0100, Al Riddoch wrote:
> > > Could you tell me what version of gcc you are using? May not be relevant,
> > > but I'd like to know.
> > > 
> > I'm using gcc 2.5.4. 
> > 
> 
> Are you sure? That sounds like a version from about 1992. Its more likely
> that its 2.95.4.
> 
Whoops, that was a typo, its 2.95.4 of course!

> If you still have the binaries around could you run ldd on them, and post
> the results?
> 

Here it comes:

This one is for the first binary (the large one without -lglut):

	libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x4001f000)
	libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x40086000)
	libm.so.6 => /lib/libm.so.6 (0x40102000)
	libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x40123000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x401a4000)
	libc.so.6 => /lib/libc.so.6 (0x401f4000)
	libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40307000)
	libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40315000)
	libdl.so.2 => /lib/libdl.so.2 (0x403cf000)
	libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 
(0x403d2000)
	libasound.so.2 => /usr/lib/libasound.so.2 (0x4041b000)
	libartsc.so.0 => /usr/lib/libartsc.so.0 (0x4049b000)
	libesd.so.0 => /usr/lib/libesd.so.0 (0x404a1000)
	libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0x404a9000)
	libvga.so.1 => /usr/lib/libvga.so.1 (0x404c7000)
	libaa.so.1 => /usr/lib/libaa.so.1 (0x40527000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
	libslang.so.1 => /lib/libslang.so.1 (0x40540000)
	libgpm.so.1 => /usr/lib/libgpm.so.1 (0x405a1000)
	libncurses.so.5 => /lib/libncurses.so.5 (0x405a7000)


And this one is for the second binary (the small one with -lglut):

	libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x4001f000)
	libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x40086000)
	libglut.so.3 => /usr/lib/libglut.so.3 (0x40102000)
	libm.so.6 => /lib/libm.so.6 (0x4013d000)
	libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x4015e000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x401df000)
	libc.so.6 => /lib/libc.so.6 (0x4022f000)
	libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40343000)
	libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40350000)
	libdl.so.2 => /lib/libdl.so.2 (0x4040a000)
	libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 
(0x4040d000)
	libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x40456000)
	libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x4046a000)
	libasound.so.2 => /usr/lib/libasound.so.2 (0x40473000)
	libartsc.so.0 => /usr/lib/libartsc.so.0 (0x404f3000)
	libesd.so.0 => /usr/lib/libesd.so.0 (0x404f9000)
	libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0x40500000)
	libvga.so.1 => /usr/lib/libvga.so.1 (0x4051e000)
	libaa.so.1 => /usr/lib/libaa.so.1 (0x4057e000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
	libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40598000)
	libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x405e2000)
	libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x405ea000)
	libslang.so.1 => /lib/libslang.so.1 (0x40600000)
	libgpm.so.1 => /usr/lib/libgpm.so.1 (0x40661000)
	libncurses.so.5 => /lib/libncurses.so.5 (0x40667000)


As you can see, the smaller binary includes all the links the larger one 
has, plus some more...


cheers,
Christian