Subject: Re: Dynamic Libraries Problem?
To: Simon Burge <simonb@telstra.com.au>
From: Gregory McGarry <g.mcgarry@qut.edu.au>
List: port-pmax
Date: 10/09/1997 19:15:14
Simon Burge wrote:
> 
> > # ls -la /usr/local/lib
> > 
> > -rw-r--r--   1 root  wheel  libXm.a
> > lrwxr-xr--   1 root  wheel  libXm.so -> /usr/local/lib/libXm.so.0.81
> > -rw-r--r--   1 root  wheel  libXm.so.0.81
> 
> Just a hunch, but all the existing libraries have a symlink with only
> the major number of the shared lib.  For example, try linking libXm.so.0
> to libXm.so.0.81 .
> 
> Like I said, just a guess...

Well, it didn't work either.  However, after spending a couple of hours
on it, everything looks considerably better if I place all the paths
into the LD_LIBRARY_PATH variable.

# echo $LD_LIBARY_PATH
/usr/X11R6/lib:/usr/local/lib

# ldd lesstif-0.81/test/Xm/scrollbar/test1
test1:
         -lXm => /usr/local/lib/libXm.so
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lSM.6 => /usr/X11R6/lib/libSM.so.6
         -lICE.6 => /usr/X11R6/lib/libICE.so.6
         -lXt.6 => /usr/X11R6/lib/libXt.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm.so.0
         -lc.12 => /usr/lib/libc.so.12

I'll just accept this fix, and attribute it to
\quote{pmaxes are a not-quite-properly-configred ELF system}.

Other than that, the lesstif library compiled flawlessly and
looks great!

Thanks,
Greg