Sun-Spots-Request@Rice.edu (William LeFebvre) (10/17/88)
SUN-SPOTS DIGEST Friday, 14 October 1988 Volume 6 : Issue 259 Today's Topics: Re: Popping up an independent window in SunView (2) Re: BITNET mangling source files (2) Re: rsh woes Re: Changing Sunview default font Re: Lightweight Processes in SunOS 4.0 Maxtor XT-4380E Drive, MDB Chassis, Sun 3/60 /dev/ttya operations on 3/80 server crash SunOS 4.0 386i c compiler bug mounting remote tape drives /var/spool/lpd/err files Postscript driver for plain text files? Ada compilers? lint and SPARC opinions on configuration wanted Looking for chuck@trantor.harris-atd.com Send contributions to: sun-spots@rice.edu Send subscription add/delete requests to: sun-spots-request@rice.edu Bitnet readers can subscribe directly with the CMS command: TELL LISTSERV AT RICE SUBSCRIBE SUNSPOTS My Full Name Recent backissues are available via anonymous FTP from "titan.rice.edu". For volume X, issue Y, "get sun-spots/vXnY". They are also accessible through the archive server: mail the request "send sun-spots vXnY" to "archive-server@rice.edu" or mail the word "help" to the same address for more information. ---------------------------------------------------------------------- Date: 10 Oct 88 22:24 -0500 From: Srinivas Eswara <eswara@deervax.concordia.ca> Subject: Re: Popping up an independent window in SunView (1) In reply to enea!front.se!per@uunet.uu.net (Per Lindberg) >I want to write a function that pops up a window in SunView. I have had the same problem for a long time till I discovered that you do not need another window_loop or window_main_loop. You start a program your base frame and window _main_loop and later you could call a function that does window_create. Set up your window with panels or whatever and just call window_set(popup_window, WIN_SHOW, TRUE, 0); This works just fine and is non-blocking. I also noticed that with two window_main_loops, the notifier gives an error message, "Invalid argument" but does nothing much else, at least as far as I could see. ------------------------------ Date: 10 Oct 88 15:27:26 GMT From: Anthony Worrall <mcvax!isg.cs.reading.ac.uk!adw@uunet.uu.net> Subject: Re: Popping up an independent window in SunView (2) I am in the process of writing a multi window application. In order to create new windows I have used the call win_insert(windowfd); where the windowfd is obtained by window_get(window,WIN_FD); This also allows the program to call other window management commands such as wmgr_close(windowfd,rootfd); wmgr_open(windowfd,rootfd); wmgr_move(windowfd,rootfd); wmgr_stretch(windowfd,rootfd); wmgr_top(windowfd,rootfd); wmgr_bottom(windowfd,rootfd); wmgr_refreshwindow(windowfd); where move and stretch interact with the user. rootfd is obtained from parent = (char *) getenv("WINDOW_PARENT"); rootfd = open(parent, 0); For more information see; Windows Chapter 5 SunView System Programmers Guide Window Management Chapter 13 SunView System Programmers Guide Anthony.D.Worrall@Reading.Ac.Uk PS. If anybody else is using these functions I would be please to here any experiences and/or tips they might care to pass on. ------------------------------ Date: Mon, 10 Oct 88 21:59:36 -0400 From: Ken Yap <ken@cs.rochester.edu> Subject: Re: BITNET mangles source files (1) Reference: v6n254 > [[...Uuencode/decode usually work, but I have encountered > EBCDIC machines that change around some ASCII characters in an unexpected > way. What have other peoples' experiences been in sending a uuencoded > file through Bitnet hosts?... --wnl ]] In cayuga.cs.rochester.edu:public/latex-style is rscsencode.shar. My ex-archive server offered this encoding option for requests. It is said to be more cautious than uuencode because it only uses the characters [A-Za-z0-9+-]. I cannot vouch for it being much better than uuencode, but I cannot imagine a Bitnet node mangling these characters. Maybe an uppercase only machine? :-) Ken ------------------------------ Date: Tue, 11 Oct 88 09:01 EDT From: Ralph Droms <DROMS@BKNLVMS.BITNET> Subject: Re: BITNET mangling source files (2) One hint for using uuencode/uudecode across BITNET - be sure to use "uurepair" (sorry - can't remember the source) to pad all the lines of the received uuencoded file out to the proper length. BITNET truncates all the trailing blanks... - Ralph Droms Bucknell University droms@bknlvms.bitnet ------------------------------ Date: Mon, 10 Oct 88 16:36:51 PDT From: jimc@math.ucla.edu Subject: Re: rsh woes doug@icase.edu installed a namedaemon and now people can't do rsh from other networks to his system. We have a fairly complex setup -- two closely integrated networks, each with independent YP, plus Vaxen and miscellany. We had a rash of similar rsh problems. It turned out that it wasn't entirely obvious what named/ypserv was going to use for a hostname on incoming connections. Try using nslookup to reverse-map the internet address of the site from which the rsh is coming. e.g. prompt>nslookup server sunset..... > set type=ptr > 16.64.97.128.in-addr.arpa. (substitute internet adr here, backwards) and it gives you the hostname that you need in .rhosts. Another problem occurs if the other site has two Ethernet boards, e.g. has workstations on ie0 and the backbone Ethernet on ie1. Normally you will put the "real" hostname on ie0 and a substitute (e.g. malibu2.pic.ucla.edu) on ie1; however, hosts on the backbone think rsh's are coming from the substitute name. I hope one or the other of these ideas helps. James F. Carter (213) 825-2897 UCLA-Mathnet; 6608B MSA; 405 Hilgard Ave.; Los Angeles, CA 90024-1555 UUCP:...!{rutgers,ucbvax,sdcrdcf,{hao!cepu}}!ucla-cs!math.ucla.edu!jimc ARPA: jimc@math.ucla.edu BITNET: jimc%math.ucla.edu@INTERBIT ------------------------------ Date: 10 Oct 88 23:57:53 GMT From: mkhaw@teknowledge-vaxc.arpa (Mike Khaw) Subject: Re: Changing Sunview default font Reference: v6n254 > I hope there's an easy fix to this problem I'm having with the font setup > in Sunview (on a SUN 3/50). I can't seem to change the default font the > way described in any of the manuals (i.e. using WIN_FONT in window_create, > or calling the pf_default() routine). Thus my application takes the > default font of the user. How can it be set to use one font, no matter > what the user's font is ? First, the SunView manual says that WIN_FONT only affect panels and text subwindows (Chapter 4). Second, pf_default() doesn't take an argument, since it opens the system default font; use pf_open(font_name_here) instead. However, in SunOS 3.5, I find that WIN_FONT only affects panels, not text subwindows. One workaround is to setenv DEFAULT_FONT your_font_here What's the deal with text subwindows and fonts? What am I missing? Mike Khaw -- internet: mkhaw@teknowledge.arpa uucp: {uunet|sun|ucbvax|decwrl|uw-beaver}!mkhaw%teknowledge.arpa hardcopy: Teknowledge Inc, 1850 Embarcadero Rd, POB 10119, Palo Alto, CA 94303 ------------------------------ Date: Thu, 6 Oct 88 09:21:12 BST From: mcvax!ritd.co.uk!mr@uunet.uu.net Subject: Re: Lightweight Processes in SunOS 4.0 I had the same problem (undefined REGOFFSET). My local Sun Tech support office (in UK) supplied a replacement liblwp.a in a couple of days (thanks!) which cured the problem. Curiously, I had been using lwp on a Roadrunner (386i) quite happily before hitting the bug on a 3/260. Martin Reed, Racal Imaging Systems Ltd uucp: mr@ritd.co.uk,{uunet!ukc!ritd,sun!sunuk!brains}!mr Global String: +44 252 622144 Paper: 309 Fleet Road, Fleet, Hants, England, GU13 8BU ------------------------------ Date: Mon, 10 Oct 88 17:52:38 PDT From: Stephen Lui <lui@cs.ucla.edu> Subject: Maxtor XT-4380E Drive, MDB Chassis, Sun 3/60 I'm trying to format a Maxtor XT-4380E drive which is mounted in a MDB removable chassis. I am running Sun OS 4.0 and using the "format" program. The error message is: Warning: Using default mode select parameters Warning: Drive format may not be correct formatting...done Block 658260 (1219/0/0) Fatal non-media error (illegal request) Warning: error saving defect list Block 658296 (1219/1/0) Fatal non-media error (illegal request) Warning: error saving defect list Block 658765 (1219/14/1) Fatal non-media error (illegal request) Warning: error writing backup label Block 658769 (1219/14/5) Fatal non-media error (illegal request) Warning: error writing backup label Block 658771 (1219/14/7) Fatal non-media error (illegal request) Warning: error writing backup label Block 658773 (1219/14/9) Fatal non-media error (illegal request) Warning: error writing backup label Does anyone have any idea what this means? Please reply directly; I don't read this newgroup regularly. Stephen Lui ARPA: lui@cs.ucla.edu UUCP: ...!{cepu,ihnp4,trwspp,ucbvax}!ucla-cs!lui ------------------------------ Date: Tue, 11 Oct 88 09:00:45 -0500 From: abe@mace.cc.purdue.edu (Vic Abell) Subject: /dev/ttya operations on 3/80 server crash SunOS 4.0 Opening, closing and reopening /dev/ttya causes our Sun 3/280S server, and another 4/280 server on the Purdue campus, both running SunOS 4.0, to crash. The crash is described on the console with the messages: staff vmunix: trap address 0x8, pid 240, pc = f029380, sr = 2004, stkfmt b, context 3 staff vmunix: Bus Error Reg 80<INVALID> Investigation of the dump produced by this crash shows that the bus error is occurring in the following instruction of the prologue of stropen() in /usr/src/sys/os/str_io.c. register struct vnode *vp = *vpp; Here is a simple test program that will exploit the bug: #include <stdio.h> #include <sys/file.h> int fd; main(argc, argv) { opn(); if (close(fd) < 0) { perror("close"); exit(1); } opn(); exit(0); } opn() { if ((fd = open("/dev/ttya", O_RDWR)) < 0) { perror("open /dev/ttya"); exit(1); } } /dev/ttya and /dev/console are the same physical device. On occasion, syslogd will cause the same crash when it is given a SIGHUP. When syslogd receives a SIGHUP it closes /dev/console and then reopens it in the process of rescanning /etc/syslog.conf. Kermit will also cause the crash by using its "set line /dev/ttya" command in two, separate invocations of Kermit. Vic Abell Purdue University Computing Center ------------------------------ Date: Mon, 10 Oct 88 18:06:33 EDT From: gatech!stiatl!meo@cs.utexas.edu Subject: 386i c compiler bug In my previous posting regarding the compiler losing an extern declaration in a situation similar to the following: #include "foo.h" main () { extern foo_type f(); /* foo_type is a pointer to a struct */ foo_type a, b, c, d; a = f (); b = f (); { c = f(); } d = f (); } I mentioned that this was a simplification of the problem, which involved a good deal more code. It is actually an X11 program, about 400 lines long, with a number of include files. I appreciate the responses I have gotten; I should have thought to try the simple case myself on the 386i, even thought I knew it had worked elsewhere. The sample (foo.c) I included indeed works fine on the 386i. I was hoping someone had some insight to the problem based on prior experience, familiarity with the Sun internals, or whatever. Looking at the preprocessor output has given me no clues, either. If someone wouldnt mind doing a test compile on a Sun 3 or 4 (pref. 4.0, but whatever), I would appreciate it. I can email the source; obviously you need to have X11 (r2) up already. Again, thanks to those who have responded. -=Miles=- ------------------------------ Date: Mon, 10 Oct 88 23:07:30 EDT From: edsews!mancer!wintermute!dharvey@uunet.uu.net (Doug Harvey) Subject: mounting remote tape drives Is it possible to access a remote tape drive without 'rlogin'ing to the remote machine? Here is the setup: A Sun 3/50 is a diskless node on our server, a 3/260. What I would like to do is access the tape drive without having to rlogin to the server. I have tried using MAKEDEV, etc to create a suitable device but to no avail. Is this possible? Thanks in advance, Douglas Harvey Electronic Data Systems UUCP: {uunet.uu.net}!edsews!mancer!dharvey (313) 556-0791 ------------------------------ Date: Tue, 11 Oct 88 10:30:55 cdt From: grunwald@m.cs.uiuc.edu (Dirk Grunwald) Subject: /var/spool/lpd/err files We're using TranScript 1.1 on SunOS 4.0 to drive a DEC ScriptPrinter. The TransScript documentation (and the SunOS documentation) claim that error messages get put into the file specified by ``lf'' in the printcap entry. This is, in part, true: the output from psbanner gets put there. However, there's another file that gets created in the spool directory, labeled errABCDE where ABCDE is probably a process number. This file contains the useful error messages from the PostScript printer (i.e. all the messages that tell you why your print didn't come out of the printer). I can find no incantation that makes these messages go to the log file. Has anyone else run into this problem? Any clues? Suggestions? I will summerize responses if there is interest. Dirk Grunwald Univ. of Illinois grunwald@m.cs.uiuc.edu ------------------------------ Date: Mon, 10 Oct 88 16:32:48 CDT From: "Rich Winkel" <MATHPG1@UMCVMB.BITNET> Subject: Postscript driver for plain text files? Is there such a beast? Failing that, does anyone know a set of postscript commands to 'wrap around' a text file to get it printed as plain ascii text on a postscript printer? [[ What is this? Info-Postscript?? Please MAIL your responses to Mr. Winkel. --wnl ]] Thanks, Rich Winkel (MATHPG1.UMCVMB.MISSOURI.EDU) ------------------------------ Date: 11 Oct 88 06:57:00 EDT From: ridolfil@esdvax.arpa Subject: Ada compilers? I'd appreciate anyone's information/experiance/comments on any *validated* Ada compilers for the Sun line (yes, even the 386sigh). If there's enough of a response, I'll post. Thanx in advance. E-mail: Ridolfil@ESDVAX.ARPA or ridolfil%si01.decnet@ESDVAX.ARPA voice : 617-271-2296 ------------------------------ Date: 11 Oct 88 15:18:17 GMT From: alan@jane.jpl.nasa.gov (Alan S. Mazer) Subject: lint and SPARC We just went to SunOS 4.0 and installed a Sun 4 upgrade and something's really irritating me. It is no longer possible to do some things without provoking lint messages. In particular, using varargs stuff with pointer arguments (as in the man page example) produces "pointer alignment" warnings, and if one uses the lint library definitions for the malloc family the compiler freaks with a ton of error messages since the proper type for these things (unknown to lint) is now void *. Is Sun planning to do anything about this? As far as I'm concerned, it makes lint virtually unusable, unless one goes through the messages one by one to determine which represent real problems and which are just suspicions. -- Alan ..!{ames,cit-vax}!elroy!alan alan@elroy.jpl.nasa.gov ------------------------------ Date: Tue, 11 Oct 88 08:12:57 -0400 From: Steve Elias <eli@spdcc.com> Subject: opinions on configuration wanted on the following setup: 1 sun 3/60 with 327M disk & tape drive, 4 diskless sun 3/50 clients. the system will start with just the 3/60 and one 3/50, but will grow to include 3 more 3/50s. all systems will initially have only 4M of memory. i know this is marginal -- i'll buy more from the aftermarket, hopefully. when the system reaches 5 nodes, at most 2 of the 3/50s are likely to be doing any serious crunching at one time. i'm familiar with the performance of a 3/280 serving a bunch of clients, but does anyone have experience with a 3/60 serving a couple clients? the 3/60 itself will be used for some serious crunching, as well... (gnu + compile/links). how is the 327M disk? is it an RLL or ERLL unit? is it very loud? i think that 327M is marginal for a 5 node network, and would consider getting local swap disk shoeboxes when more 3/50s get added. any opinions appreciated! please use email -- the PO for this stuff will probably be put in very shortly. also.. any comments on OCLI screens? i've used them and they are much nicer -- but are they worth $1000 more? thanks... steve elias harvard!spdcc!eli ------------------------------ Date: Mon Oct 10 18:18:47 1988 From: portal!cup.portal.com!DMasterson@sun.com Subject: Looking for chuck@trantor.harris-atd.com The subject line about says it all. I wanted to communicate with him about tooltool in the archives, but my mail keeps bouncing back. Can anyone give me a set of reliable paths to him?? Thanx David Masterson DMasterson@cup.portal.com ------------------------------ End of SUN-Spots Digest ***********************