linkage problem under Linux/a.out

Rolf-Thomas Happe rthappe@mathematik.uni-freiburg.de
Thu, 6 Nov 1997 12:29:18 +0100 (MET)


I am having the following problem with Clean 1.1 on my Linux PC 
(kernel 1.2.3, a.out): when I try to make a demo program in 
iodemos/ I get

  ld: Output file requires shared library `libX11.so.3'
  Linker exited abnormally

Yet, this library is available, the library path /usr/X11/lib is
put down in the linker options file, and strace (the syscall monitor)
tells me that clm reads in (part of) this file:  I couldn't persuade 
strace to tell me all arguments to system calls, so I don't know
wether the linker options from x.lo are passed to the linker or not:

  execve("/usr/bin/ld", ["ld", "-s", "-o", "LifeGame", "/usr/lib/crt0.o", 
	 "/usr/local/lib/clean/stdenv/_sta", "/usr/local/lib/clean/stdenv/
         _sys", "/usr/local/lib/clean/stdenv/StdA", "/usr/local/lib/clean/
         stdenv/_Sys", "/usr/local/lib/clean/stdenv/StdC", "/usr/local/lib/
         clean/stdenv/StdO", "/usr/local/lib/clean/stdenv/StdB", "/usr/local/
         lib/clean/stdenv/StdI", "/usr/local/lib/clean/stdenv/StdR", "/usr/
         local/lib/clean/stdenv/StdC", "/usr/local/lib/clean/stdenv/StdS", 
         ...], [29 vars]) = 0  

Supposedly either the library name or the library path name is missing
from the "..." above. 

I'd appreciate to hear what I might possibly be doing wrong. Or, if 
another Linux user has met this problem, too, I'd love to hear how
he solved it. 

Thanks in advance,
rthappe