From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6c8d68efa33fd133,start X-Google-Attributes: gidfee84,public From: a880233@zipi.fi.upm.es Subject: Problems with netmsgserver Date: 1995/08/18 Message-ID: <1995Aug18.102240@zipi.fi.upm.es> X-Deja-AN: 108352645 organization: Facultad de Informatica - (UPM) newsgroups: comp.unix.osf.osf1 Hello! I'm trying to install "netmsgserver". If somebody knows how to install "snames", I think that can help me, because "netmsgserver" and "snames" need "mach_init" running. My computer is a i386, and I'm using OSF/1. The operating system version is: OSF1 1.2 osc1.2-MK5.0.2 i386. I installed "mach_init" in "/mach_servers". In my installation "mach_init" was in "/sbin" directory. Now the operating system will run "mach_init" when the machine starts. "mach_init" is the Service Server. Some servers, as "netmsgserver" or "snames", need this server (see appendix C in "Mach 3 Server Writer's Guide" for more details). I will show you some important directories: 1. ls -al /mach_servers drwxr-xr-x 2 root wheel 512 Jul 20 14:00 . drwxr-xr-x 13 root wheel 1024 Aug 7 13:08 .. -rwxr-xr-x 1 root wheel 112286 Jul 20 13:00 mach_init -rwxr-xr-x 1 root wheel 14889 Apr 19 1993 mem lrwxrwxrwx 1 root wheel 15 Feb 14 09:18 paging_file -> /dev/sd0b/space -rwxr-xr-x 2 root wheel 929299 Aug 31 1993 startup -rwxr-xr-x 1 root wheel 929182 May 12 16:24 vmunix.new -rwxr-xr-x 2 root wheel 929299 Aug 31 1993 vmunix.osc1.2-MK5.0.2.PRODUCTION 2. ls -al /etc/init lrwxrwxrwx 1 root 19 10 Jul 20 13:06 init -> /sbin/init 3. ls -al /sbin/rc3.d/_S90netmsgserver lrwxrwxrwx 1 root 19 22 Feb 14 09:20 _S90netmsgserver -> ../init.d/netmsgserver When I try to install "mach_init", I rename "_S90netmsgserver" to "S90netmsgserver", and I boot the machine again. After this, the operating system starts in debugger mode, because "netmsgserver" fails. "netmsgserver" prints the following error message: netname_init.netname_check_in fails, kr = -303 Panic: netname_init fails log dumped It seems that "mach_init" did not worked well. If I rename "S90netmsgserver" to "_S90netmsgserver", boot the machine, and type ps -A, the output is: PID TTY STAT TIME COMMAND 0 ?? 42:29.95 [OSF/1 server] 1 ?? 0:00.15 init -xx 2 ?? 4:49.15 /mach_servers/mach_init -xx 17 ?? 0:00.01 /sbin/cfgmgr -a 20 ?? 0:00.13 /sbin/update 61 ?? 0:00.12 /sbin/syslogd 66 ?? 0:00.05 /sbin/named 87 ?? 0:00.00 /usr/sbin/strerr 93 ?? 0:00.02 /usr/sbin/portmap 95 ?? 0:00.09 /usr/sbin/mountd 98 ?? 0:00.01 -nfsd.udp (nfsd) 99 ?? 0:00.00 -nfsd.udp (nfsd) 101 ?? 0:00.01 -nfsd.udp (nfsd) 102 ?? 0:00.01 -nfsd.udp (nfsd) 103 ?? 0:00.02 -nfsd.tcplistener (nfsd) 104 ?? 0:00.03 /usr/sbin/nfsiod 4 105 ?? 0:00.01 /usr/sbin/nfsiod 4 107 ?? 0:00.00 /usr/sbin/nfsiod 4 108 ?? 0:00.00 /usr/sbin/nfsiod 4 122 ?? 0:00.01 /usr/sbin/inetd 127 ?? 0:00.18 /usr/sbin/cron 133 ?? 0:00.05 -accepting connections (sendmail) 142 ?? 0:00.02 /usr/sbin/writesrv 148 ?? 0:00.04 /usr/sbin/lpd 153 ?? 0:00.06 /usr/bin/X11/xdm -config /usr/lib/X11/xdm/xdm-c 155 ?? 0:00.69 /usr/bin/X11/Xvga -su -config /usr/lib/X11/Xcon 157 ?? 0:00.08 -:0 (xdm) 173 ?? 0:00.08 -gnomo7.fi.upm.es:0 (xdm) 180 ?? 0:00.07 /bin/sh /usr/lib/X11/xdm/Xsession 184 ?? 0:00.21 /usr/bin/X11/twm 185 ?? 0:00.13 xclock -g 50x50-350+0 -bw 0 186 ?? 0:01.64 xterm -geometry 80x24+35+76 -name Shell -sb 227 ?? 0:00.05 -AA00135 postman.gr.osf.org: user (sendmail) 156 console + 0:00.14 /usr/sbin/getty console console at386 187 pts/0 0:00.80 -csh (tcsh) 195 pts/0 0:01.22 xterm -name poleo2 -sb 225 pts/0 + 0:00.69 vi carta_1.doc 196 pts/1 0:01.24 -csh (tcsh) 245 pts/1 + 0:00.03 ps -A You can see that "mach_init" is working, however it seems that does not work well. If I execute the next program: #include #include void main (void) { if (MACH_PORT_VALID(service_port)==FALSE) puts("Problems ..."); } the output is: "Problems...". "mach_init" didn't work well. When "netmsgserver" tries to use the Service Server (mach_init) services fails, because "service_port" does not a corret name port. I hope that this information can help you. Thanks in advance, Fernando (A880233@zipi.fi.upm.es).