Subject: Re: Failed to "su" on 1.4_ALPHA
To: None <port-macppc@netbsd.org>
From: Yoshihisa Sugimoto <sugimoto@sums.shiga-med.ac.jp>
List: port-macppc
Date: 04/07/1999 23:35:17
Hi,
Thank you very much.
At 8:39 PM +0900 99.4.7, Izumi Tsutsui wrote:
> sugimoto@sums.shiga-med.ac.jp wrote:
>
> > I updated to 1.4_ALPHA on both 8500/120 and PMG3/266MT. Now it seems to
> > run properly except for "su" and "ldconfig" commands. The su command ran
> > normally on Jan. 19 distribution.
>
> 1.4_ALPHA su is working fine on my macppc.
> How did it not work? If you are using NIS, you should
> check /etc/nsswitch.conf first.
I never use NIS. When I check su with ktrace command,
182 su CALL open(0x2184c140,0,0)
182 su NAMI "/usr/lib/libc.so.12"
182 su RET open 3
182 su CALL read(0x3,0x7fffd7c8,0x1000)
182 su GIO fd 3 read 4096 bytes
"\^?ELF\^A\^B\^A\0\0\0\0\0\0\0\0\0\0\^C\0\^T\0\0\0\^A\0\^Ag\M^T\0\0\000\
\M-o\0\0\^D\M^P\0\0\^C\^R\0\0\0\0\0\0\^C\M-t"
182 su RET read 4096/0x1000
182 su CALL mmap(0,0xdd000,0x5,0x2,0x3,0,0,0)
182 su RET mmap 562941952/0x218dd000
182 su CALL mmap(0x21992000,0xe000,0x7,0x12,0x3,0,0,0x75000)
182 su RET mmap 563683328/0x21992000
182 su CALL mmap(0x219a0000,0x1a000,0x7,0x1012,0xffffffff,0,0,0)
182 su RET mmap 563740672/0x219a0000
182 su CALL close(0x3)
182 su RET close 0
182 su CALL getpriority(0,0)
182 su RET getpriority 0
182 su CALL setpriority(0,0,0xfffffffe)
182 su RET setpriority -1 errno 13 Permission denied
182 su CALL getuid
182 su RET getuid 100/0x64
182 su CALL __getlogin(0x219a6364,0x10)
182 su RET __getlogin 0
182 su CALL __stat13(0x2199b0f8,0x7fffdeb8)
182 su NAMI "/etc/nsswitch.conf"
182 su RET __stat13 0
182 su CALL open(0x2199b0f8,0,0x1b6)
The error above may be the cause.
> > It seems that "ldconfig" is lacking in base.tgz. I could not find it at all
> > even though the man page existed.
>
> There is no ldconfig on ELF systems. See the alpha FAQ page
> http://www.netbsd.org/Ports/alpha/faq.html#ldconfig
> (This should be in MI FAQ?)
Oh! What a shame! I didn't know what the ELF system was.
I could call libraries on /usr/X11R6/lib setting LD_LIBRARY_PATH environment
variable. Thanks.
But I wonder why I could use shared libraries without this on the 1.3I
distribution.
--
Yoshihisa Sugimoto, M.D., Ph. D.
Medical Information Center / First Deapartment of Medicine
Shiga University of Medical Science
Seta-Tsukinowa, Otsu, Shiga, 520-2192, Japan