Subject: Re: Lesstif on pmax
To: Harald Bjoroy <harald@bitcon.no>
From: Simon Burge <simonb@telstra.com.au>
List: port-pmax
Date: 03/27/1998 10:23:45
On Thu, 26 Mar 1998 21:38:40 +0100 (MET)  Harald Bjoroy wrote:

> Hi.
> 
> I tried to use the pkgsrc tools to build lesstif for my pmax system.
> 
> The build process stops somewhere in building clients/Motif-1.2/ stuff. 
> 
> The makefile passes the argument -R:NONE to gcc (or cc). This option is 
> NOT documented in either cc or gcc manpages.
> 
> Also, when I tried to manually edit the Makefiles causing the problems by 
> removing the option, it stopped on "cannot find file -lXm".
> 
> Well, then I tried to build the package using ./configure and make. This 
> didn't stop the same way, but it didn't compile the same files. The same 
> problem existed in the Makefiles, by removing it it seemed to work.
> 
> So, after all compilation (seemingly successfully) was finished, i did 
> a(n equally successfull) make install, and I was almost happy.
> 
> Now when I try to start mwm, it stops with the message "./mwm: can't load 
> library libXm.so'". The installation completed without problems, and 
> ldconfig lists amongst others "30 - ELF libXm.so.0.82 =..." (yes, the 
> full path to the lib).
> 
> What now?
> 
> I am running the generic 1.3.1 kernel. If this is a bug and I should 
> report it using some other tool, please be a bit patient with me, I first 
> lay my hands on pmax and NetBSD about a week ago, and assume that 
> everything that goes wrong is my mistyping. When I get a bit more 
> confident I will learn how to do this the right way.
> 
> BTW!! Gunnar Helliesen used pkgsrc on the same files, downloaded to 
> NetBSD/i386 and ran make. This compiled with a smile, and everything 
> seemed to work (maybe that machine runs on an older kernel); even the 
> -R:NONE option ran with no complaint.
> 
> Either give me some hints, or just explain why this will not work.

Just a guess (Jonathan can probably clear this up a little - he's sort
of been looking at how well pmaxs and pkgs work together), but do you
have a link from libXm.so.0.82 to libXm.so.0?  Look at the structure
in (say) /usr/X11R6/lib, and try to make the lesstif libraries look
similar.

For example,

	vlad:/usr/X11R6/lib 11> ls -l libX11*
	-rw-rw-r--  1 root  wheel  1978400 Dec 26 11:09 libX11.a
	lrwxrwxr-x  1 root  wheel       13 Dec 26 11:09 libX11.so.6@ -> libX11.so.6.1
	-r-xr-xr-x  1 bin   bin    1423679 Dec 26 11:09 libX11.so.6.1*
	vlad:/usr/X11R6/lib 12>

Try making lesstif look like:

	-rw-rw-r--  1 root  wheel    xxxxx Mar 27 12:00 libXm.a
	-rw-rw-r--  1 root  wheel    xxxxx Mar 27 12:00 libXm.so.0 -> libXm.so.0.82
	-r-xr-xr-x  1 root  wheel    xxxxx Mar 27 12:00 libXm.so.0.82*


Hmm, is there any reason the .so's are executable in /usr/X11R6/lib?

Hope this helps,
 Simon.