Subject: SunOS emulation
To: None <port-sparc@NetBSD.ORG>
From: Stefan Monnier <stefan.monnier@lia.di.epfl.ch>
List: port-sparc
Date: 01/24/1996 10:27:21
I have trouble getting emacs running under SunOS emulation.
First, the libraries are strangely not always found:

	/logiciels-0> setenv LD_LIBRARY_PATH /logiciels/public/X11R5/lib
	/logiciels-0> emacs
	/logiciels-0> setenv LD_LIBRARY_PATH ~/$SYS/lib
	/logiciels-0> emacs
	ld.so: libXaw.so.5: not found
	/logiciels-127> ls -l /logiciels/public/X11R5/lib/libXaw.so.5.0
	-rw-r--r--  1 495  497  245760 Nov 14  1993 /logiciels/public/X11R5/lib/libXaw.so.5.0
	/logiciels-0> ls -l ~/$SYS/lib/libXaw.so.5.0
	lrwxr-xr-x  1 monnier  dilia  41 Jan 19 17:59 /users/monnier/netbsd/sparc/1.1/lib/libXaw.so.5.0 -> /logiciels/public/X11R5/lib/libXaw.so.5.0
	/logiciels-0> ls -lL ~/$SYS/lib/libXaw.so.5.0
	-rw-r--r--  1 495  497  245760 Nov 14  1993 /users/monnier/netbsd/sparc/1.1/lib/libXaw.so.5.0

Why is the library found when LD_LIBRARY_PATH points to 
/logiciels/public, but not when it point to ~/$SYS/lib ?

I feel this might be related to the other problem I have with emacs:

	ELISP> (directory-files "/home/nestor_dist")
	("." ".." ".dmflock" ".dmpre" ".dmunmig" ".ldb" "du_all" "licences" "lost+found" "maintenance" "public" "sounds" "sunsoft" "termX" "users")
	ELISP> (directory-files "/home/liasg9")
	nil
	ELISP> 

Which means that emacs believes that /home/liasg9 is empty. /home is an
amd-managed directory, the content at this point was:

	/logiciels-0> ls -l /home
	total 2
	lr-xr-xr-x  1 root  wheel  15 Jan 24 10:14 liasg9 -> /amd/liasg9/usr
	lr-xr-xr-x  1 root  wheel  24 Jan 24 10:14 nestor_dist -> /amd/nestor/distribution
	/logiciels-0>

So why can emacs get directory's contents of the file system mounted from
nestor, but not the one mounted from liasg9 ?
Also this is probably related to the LD_LIBRARY_PATH thing since ~/$SYS/lib
is under /home/liasg9, whereas /logiciels/public/X11R5/lib is under
/home/nestor_dist. Note that the actual access to files on liasg9 are not a
problem. The problem seems to be only for reading directory's contents.
And it only shows up with liasg9. It might be related to the fact that
liasg9 is the only machine running Irix-6.2-beta. I'm ready to believe there
is a bad interaction between the beta version of Irix and NetBSD, but I've
never had any problems before, and furthermore "ls" and tons of other commands
which would seem to need the "directory's contents" have never showed any sign
of bad behviour (I'm not saying that emacs is the only program posing problems,
but I haven't tried thousands of others)

Any idea ?


	Stefan

PS: by the way, is it possible to have ktrace use only one line per syscall,
    like truss does ? The sheer size of ktrace.out makes it annoying to use.