[ale] X program linking on ELF system

Steven A. DuChene sad at sduchene.mindspring.com
Sun May 19 19:44:53 EDT 1996


As I have mentioned I am converting my system from a.out to ELF and
today I downloaded the latest XFree86 ELF distribution files. After
installing the various packages, I tried recompiling some programs.
Well, they all ended up statically linked to the X libraries.
The libc is dynamically linked as well as libXpm which I downloaded
and compiled today also. I am using gcc-2.7.2, binutils-2.6.0.12,
and the XFree-3.1.2E ELF stuff. Anyone have any ideas why this might
be happening? Here is some info on an X application I tried:

sduchene:/usr/src/X11/xshisen-1.02#  ll `which xshisen`
-rwxr-xr-x   1 root     root       844356 May 19 14:52 /usr/bin/X11/xshisen*

sduchene:/usr/src/X11/xshisen-1.02# ldd `which xshisen`
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4
        libc.so.5 => /lib/libc.so.5.3.12

sduchene:/usr/src/X11/xshisen-1.02# file `which xshisen`
/usr/bin/X11/xshisen: ELF 32-bit LSB executable i386 (386 and up) Version 1

I also tried something simple like xale and got the following:

sduchene:/usr/local/src/X11/xale-0.1.1# ll xale_elf
-rwxr-xr-x   1 root     root       396312 May 19 18:57 xale_elf*

sduchene:/usr/local/src/X11/xale-0.1.1# ldd xale_elf
        libc.so.5 => /lib/libc.so.5.3.12

sduchene:/usr/local/src/X11/xale-0.1.1# file xale_elf
xale_elf: ELF 32-bit LSB executable i386 (386 and up) Version 1

Seems a little bigger than what I'm used too! :-) Is there some special
options I should be putting into the Imakefile to get these to be dynamically
linked against the X libraries? In one of the packages I installed was the
imake files (xmkmf, imake, and the template files) and I looked through the
directory they get put in but there didn't seem to be anything unusual like
old files hanging around or anything. Just for grins I did some investigating
of the X libraries and they seem fine:

/usr/X11R6/lib# file libXtst.so.6.1 libX11.so.6.1 libXext.so.6.1 libXIE.so.6.0
libXtst.so.6.1: ELF 32-bit LSB dynamic lib i386 (386 and up) Version 1
libX11.so.6.1:  ELF 32-bit LSB dynamic lib i386 (386 and up) Version 1
libXext.so.6.1: ELF 32-bit LSB dynamic lib i386 (386 and up) Version 1
libXIE.so.6.0:  ELF 32-bit LSB dynamic lib i386 (386 and up) Version 1

-- 
Steven A. DuChene   Linux Weenie!  http://www.mindspring.com/~sduchene

		isollae - loneliness in the face of beauty
		    -- Sean Russell, "World Without End"






More information about the Ale mailing list