HDTenEightyP/NetNews huggingface dataset:
From: kevin@tamri.com (Kevin Dalley)
Subject: Re: Bug in SGI ansi compliance (or are the others wrong ?)
Summary: sgi's header files are broken
Reply-To: kevin@tamri.com
Organization: TOSHIBA America MRI, South San Francisco, CA
Date: Wed, 18 Nov 92 00:53:43 GMT


Look at SGI's header files sometime.  A lot of things are slightly or
badly broken when using "-ansi" because "sgi" is not defined.  Of
course "__sgi__" is defined, but the header files usually say "#ifdef
sgi".  A few functions are left undefined; a few macros are defined
incorrectly; some structures are defined incorrectly.  Because of this
problem, you may want to stay away from "-ansi" completely.

On the other hand, a few things are broken when "__STDC__" is not
defined.  For example, rename and remove are left undefined.  Because
of this problem, you may want to use "-ansi".

I am in the process of filing a bug report on these problems.  I
finally grew tired of trying to outguess the header files.

>>>>> On Wed, 11 Nov 1992 22:54:22 GMT, hoesel@igc.ethz.ch (Frans van
Hoesel) said:
> In article <s5c02sg@sgi.sgi.com> davea@quasar.mti.sgi.com (David B.Anderson) writes:
>>In article <1992Nov9.140450.591@bernina.ethz.ch> torda@igc.ethz.ch (Andrew Torda) writes:
>>>The following two lines of code don't compile with the -ansi option to
>>>the sgi cc compiler (version 3.10)
>>>
>>>---------- begin code ----------
>>>#include <stdio.h>
>>>FILE *fp = stdout;
>>>---------- end code   ----------
>>>
>>>% cc -c -ansi z.c
>>>accom: Error: z.c, line 2: integer constant expected
>>>       FILE *fp =       (__stdout) ;
>>>       ----------------------------^
>>
>>This (normally minor)annoyance was introduced with -ansi because
>>The value of stdout with -xansi is (&_iob[1]) which, though a constant,
>>collides with the user namespace in:
> [removed]
>>
>>I a future release the constant form is reintroduced and stdout is
>>(&__iob[1]) when a pure ANSI C namespace is requested.
>>
>>Sorry, but for 4.0.x we could not rename _iob. It was too far-reaching
>>a change to contemplate.
>>[ David B. Anderson             (415)390-4263             davea@sgi.com ]

> You might find it a '(normally minor)annoyance' but lex produces code
> that does *NOT* compile using -ansi, exactly because of the above reason!!
> (you can check that easely by creating a file with two lines of '%%' 
> (a minimal lex program) run lex with it, and try to compile with -ansi)
--
Kevin Dalley
Toshiba America MRI, Inc.
kevin@tamri.com
From: steve@pitacat.math.cwru.edu (Steven H. Izen)
Newsgroups: comp.sys.sgi
Subject: Re: Printer Parallel port misery
Date: 20 Nov 1992 22:53:41 GMT
Organization: Math Department, Case Western Reserve University
Distribution: world
NNTP-Posting-Host: pitacat.math.cwru.edu

In article <167@denali.UUCP>, steve@denali (steve) writes:
> In article <1992Nov16.141604.16853@eurohub.neu.sgi.com>, joe@spectrum.neu.sgi.com (Joe Elliott) writes:
> > I have been having problems with printers for some time now. All of them
> > with PostScript printers and parallel ports.

Me too! :-(

> > I have tried all OS versions from 4.0.1 to 4.0.5F
> > stopping / restarting the scheduler does no good
> > /etc/init.d/lp stop/start is no good.

It's not the spool system, it's the port itself.  It happens even when I cat to
/dev/plp.

> > The printers are Brother HL-8PS and QMS-PS-410 which do work fine on MACS.>> 

The QMS PS410 also works fine on PCs.  

> >Any Ideas .. Thanx in advance.
> > -- 
> > joe@neu.sgi.com  (VM# 9083)   Tel. +41 38 433 698  Fax. +41 38 43 39 74
> 
> We have had a similar problem since at least 3.3 on our PI.
> 
> If a job is sent while the printer is off, the port locks and it
> is necessary to reboot.  Someone posted a program to reset the
> port here before, but I've had limited success with it.  Our
> solution was to put a sign on the printer asking to never turn it off.

I'm not sure what the problem is, but I suspect handshaking with the QMS.  The same parallel port seems to work fine with a Seiko CH5504PM3 color printer.

I thought I had the problem licked by adding to the spool system a call to a small program I worte to reset the parallel port.  But recently that stopped
working too.  This is on a 4D/35 running 4.0.5.  I have a call open with the 
TAC that just went up one level.  Anyone else have any ideas?

-- 
Steve Izen, Associate Prof. of Mathematics, Case Western Reserve University
Best Address:              MaBell: Voice: (216)368-2891  Fax: (216)368-5163
shi@po.cwru.edu		Next best address: steve@pitacat.math.cwru.edu
From: wiltzius@anduin.ocf.llnl.gov (Dave Wiltzius)
Newsgroups: comp.sys.sgi
Subject: "imgsnap" capability from application
Date: 17 Nov 92 18:40:16 GMT
Distribution: usa
Organization: Lawrence Livermore Nat'l Lab.


I would like to capture all or portions of the screen display
from an application and write this to a file that could later
be displayed using, for example, "ipaste".  In essence, I would
like to have the "imgsnap" capability within the application but
without the user interaction (hence forking a process to run
imgsnap is not what I desire).

I have everything working using a GLX window to cover the area
to capture and lrectread to get the image.  However, as soon as
this GLX window is managed, the images that are not drawn in RGB
have a strange color.

I suspect I'm getting fouled up in the GL colormap vs the default
X colormap.

What to do?  Some of the area under the aforementioned GLX window
is was not drawn by the application (and hence does not necessarily
share the same colormap).  However, all non-RGB windows have the
aforementioned problem.

Thanks much.
  Dave Wiltzius
  Lawrence Livermore Nat'l Lab
  wiltzius@llnl.gov

Newsgroups: comp.sys.sgi
From: olson@anchor.esd.sgi.com (Dave Olson)
Subject: Re: PANIC: Indigo R4000 dies once a day
Keywords: R4000, 4.0.5(f), kernel fault
Organization:  Silicon Graphics, Inc.  Mountain View, CA
Date: Tue, 17 Nov 92 22:11:54 GMT

In <long.36.722018843@vax.ox.ac.uk> long@vax.ox.ac.uk (Neil J. Long) writes:
| >I had a brand-new Indigo R4000 installed on Nov. 5th. The machine came
| >up ok, running Irix 4.0.5(f). Since then, it has been crashing
| >consistently once about every day, producing a different PANIC message
| >every time. Some of the PANICs were because of kernel faults, others
| >because of pagedeque faults, etc, etc. The SYSLOG shows some
| >suspicious events such as:
| >
| >	Nov 10 21:38:44 eos unix: sv1LoadMap: bad sv1AddWork
| >	Nov 10 21:38:45 eos last message repeated 34 times
| >	Nov 10 21:41:32 eos unix: sv1LoadMap: bad sv1AddWork
| >	Nov 10 21:41:32 eos last message repeated 24 times
| >	Nov 10 22:31:19 eos syslogd: restart
| >
| >hinv returns the following information:
| >

| Hi
| We have been having a similarly weird experience with one of 5 R4K's - it 
| was fine until the video board was installed. I have found that the crashes 
| stop if I switch off all networking and run in stand-alone mode. There were 
| similar panic messages but ours were all Unrecoverable ECC errors.
| Our local SGI people are aware of it and working on a solution, we will run 
| either with the svideo board or networking until then.
| I will re-post if a solution becomes available - or even an explanantion 8-)

It sounds to me like the wrong video driver is being used.  A new
video driver was released with 405F, and there is no guarantee that
the older one will work, in fact, it probably won't, or we wouldn't
have done a new one in the first place!  The new driver wasn't because
of 405F changes per se, but to fix a number of problems/limitations
with the video stuff.

The other possibility is that you have the wrong power supply, although
I don't remember the video board by itself hitting the limitations of
the original power supply, but I'm a bit hazy on what configurations
had problems.

Certainly for the r4k, if you got an early demo unit, the power supply
is likely to be wrong.  The officially shipped systems have the right
powersupply.
--
Let no one tell me that silence gives consent,  |   Dave Olson
because whoever is silent dissents.             |   Silicon Graphics, Inc.
    Maria Isabel Barreno                        |   olson@sgi.com
Newsgroups: comp.sys.sgi
From: vulture@imperial.ac.uk (Thomas Sippel - Dau)
Subject: Re: Makefile and head headers
Reply-To: cmaae47@imperial.ac.uk
Organization: Imperial College of Science, Technology and Medicine
Date: Mon, 16 Nov 92 20:20:39 GMT

In article <34078@adm.brl.mil>, rose@baby.swmed.utexas.edu (Rose Oguz) writes:
- I'm new at using make.  If I want a file to be recompiled when the
- included header file changes, must I specify that dependency in the
- makefile?  If I specify that dependency for each source file, must
- I aslo specify the compile command since I have object files and 
- includes each in directories separate from each other and the
- source files?  In simpler terms, I'd like to have as general a
- makefile as possible.  Also, I like keeping my files segregated.  Am
- I asking for too much?

Have a look at GNU make. Unfortunately many of the make processors you get
with the systems are fairly direct descendants of the AT&T original. And
even more unfortunately, Imake makes it worse.

GNU make comes with a reasonably good manual and uaer guide, which is more
than can be said about *x* make. It does, however, mean that you have to port
GNU make to every machine before you can even think of building a product,
but this is usually easier than to try and make the resident make accept a 
makefile written for another vendor's make.

                                       Thomas
-- 
*** This is the operative statement, all previous statements are inoperative.
*   email: cmaae47 @ ic.ac.uk (Thomas Sippel - Dau) (uk.ac.ic on Janet)
*   voice: +44 71 589 5111 x4937 or 4934 (day), or +44 71 823 9497 (fax)
*   snail: Imperial College of Science, Technology and Medicine
*   The Center for Computing Services, Kensington SW7 2BX, Great Britain
Newsgroups: comp.sys.sgi
From: sullivan@gorgo.gsfc.nasa.gov (Dan sullivan)
Subject: How to convert from PostScript to Iris RGB?
Reply-To: sullivan@gorgo.gsfc.nasa.gov (Dan sullivan)
Organization: NASA/GSFC Hydrospheric Sciences Branch
Date: Wed, 18 Nov 1992 21:43:28 GMT

I need to convert PS files to Iris RGB format to print on a Tektronix
4693D printer. Is there a command to do this? I can't find 'fromps'
in the /usr/sbin or the sgi anon ftp site. Imgworks doesn't seem to
be able to do this either. I could  display the file in xpsview,
then make a screen snapshot, but this is crude. Is there a simpler way?

             Thanks,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Sullivan                   #  Laboratory for Terrestrial Physics (STX) 
                               #  Code 920.2
sullivan@gorgo.gsfc.nasa.gov   #  NASA-Goddard Space Flight Center
                               #  Greenbelt, MD 20771
                               #  voice: (301) 286-2484
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Newsgroups: comp.sys.sgi
From: stephen_veit@sbctri.sbc.com (Stephen Veit)
Subject: makedepend that handles libraries properly
Reply-To: <stephen_veit@SBCTRI.tri.sbc.com>
Organization: Southwestern Bell Technology Resources, Inc.
Date: Wed, 18 Nov 92 15:43:23 GMT

Does anyone know of a makedepend that can produce library dependencies of the
form:

libname(file.o): file.h header1.h header2.h

The makedepend that is on the system can't do this. It would help if I could get
hold of source code for a makedepend that I might be able to modify. Thanks.

Stephen Veit
From: cew6@po.CWRU.Edu (Carlin E. Wiegner)
Newsgroups: comp.sys.sgi
Subject: Spending 10-11k....Can I get an SGI?
Date: 17 Nov 1992 01:58:58 GMT
Organization: Case Western Reserve University, Cleveland, Ohio (USA)
NNTP-Posting-Host: hela.ins.cwru.edu


I'm planning on spending 10-11k on a new computer this spring and
I was wondering what SGI offered in that ball park. The comparable
Sun offering is the SparStation 10/30 at 100 MIPs at $18k multiplied
by a 40% educational discount. Does SGI offer a educational discount
on their machines? I think I'm in the 3000 chip range around an 
Iris Indigo if there is a substantial educational discount. What
is the MIPs comparision between a the 3000 and 4000 chips and what
is the cheapest 4000? Please email replies b/c I do not monitor this
group.
CW
####
1
From: vjs@rhyolite.wpd.sgi.com (Vernon Schryver)
Newsgroups: comp.sys.sgi
Subject: Re: Net Services and backdoors
Date: 18 Nov 92 18:32:55 GMT
Organization: Silicon Graphics, Inc.  Mountain View, CA

In article <1992Nov18.162916.12717@tamsun.tamu.edu>, bpb9204@tamsun.tamu.edu (Brent) writes:
> Hello, all.
> 
> We have a lab with SGIs, RS6Ks, and Suns, and some of the machines
> have subtle network software problems.  Fortunately, I've been
> able to track down all the problems (except for mail).
> 
> One minor problem was that you could not "finger @machine" because
> finger would print "connection refused."  This simple problem boiled
> down to "machine" (an SGI) running fingerd as user "guest."  Guest
> was a nonexistent user on the system.  I edited /usr/etc/inetd.conf
> to change the finger entry to run as root.
> 
> Now my main question.  Which of these network services do you NOT
> want to run as root?  Does finger have any backdoors or other holes
> into the system?
> 
> Is there documentation someplace about which network services can
> spawn shells or otherwise allow somebody access to your system
> (by not using telnet/rlogin)?
> 
> I'd appreciate any comments you may think of.


There are no known security problems with the IRIX fingerd, but
the same could have no doubt been said about fingerd for VAX's
and Sun's in 1986.  Remember the "worm"?

It is not generally a good idea to run programs with more permission
than they need.

Instead of removing the "guest" entry from /etc/passwd, I would
make it present but unusable:

guest:off:998:998:Guest Account:/dev/null:/bin/true



Vernon Schryver,  vjs@sgi.com
Newsgroups: comp.sys.sgi
From: gamiddle@math.uwaterloo.ca (Guy Middleton)
Subject: Re: how to dissociate from controlling terminal?
Organization: University of Waterloo Software Liberation Army
Date: Thu, 19 Nov 1992 17:59:13 GMT

Ok, I understand what's happening now.  Thanks.

 -Guy Middleton, University of Waterloo		gamiddleton@math.waterloo.edu
		(+1 519 885 1211 x3472)		gamiddleton@math.uwaterloo.ca
From: joachim@cat.informatik.uni-erlangen.de (Joachim Guenther)
Newsgroups: comp.sys.sgi
Subject: Re: ortho2 and ortho
Date: 18 Nov 92 19:25:16 GMT


Patrick ChengSan Teo <teo@xenon.stanford.edu> wrote:
=> I've just finished implementing the Lisp FFI for GL.  Everything seems
=> to work fine except for ortho(), ortho2() and window().  I tried
=> (ortho2 0.0 60.0 0.0 60.0), i.e. ortho2(0.0, 60.0, 0.0, 60.0) which I
=> got from the book and it gave me a ERR_BADWINDOW error.  The arguments
=> to ortho2 are floats and those check out correctly.  Does anybody know

I encountered the same problem when I tried to call some GL routines
from Lucid CommonLisp. I don't know what exactly gets messed up,
but it must have something to do with LCLs passing of float variables
- you're never sure whether they'll be single or double-floats...

Anyway, the C compiler seems to be somewhat smarter than LISP 
and the problem vanished when I wrote a C whopper like

  void c_ortho(left, right, bottom, top, near, far)
  Coord left, right, bottom, top, near, far;
  {
     ortho(left, right, bottom, top, near, far);
  }

and had LISP call c_ortho instead of ortho. This has to be done for
all (GL-)routines taking :single-float and not (:pointer :foo) arguments.

This magic works for Lucid LISP, I don't know about others.
You might want to printf the arguments inside the whopper, to see
what you really get...

-- Joachim.


-----------------------------------------------------------------------
Joachim Guenther         
CAT Software GmbH        EMail: joachim@cat.informatik.uni-erlangen.de
Am Weichselgarten 23     Phone: ++49-9131-777750
D-8520 Erlangen 26       Fax:   ++49-9131-777711
Newsgroups: comp.sys.sgi
From: vjs@rhyolite.wpd.sgi.com (Vernon Schryver)
Subject: Re: what should an arch command return on an indigo?
Organization: Silicon Graphics, Inc.  Mountain View, CA
Date: Tue, 17 Nov 1992 02:25:13 GMT

In article <1992Nov16.215158.12838@news.arc.nasa.gov>, lamaster@pioneer.arc.nasa.gov (Hugh LaMaster) writes:
> ...
> 
> I have been using /bin/cpp to obtain the architecture by deduction.  
> Unfortunately, this is being broken of late by two things:
> 
> 1) C compiler unbundling, and systems with no cc, or cpp
> 
> 2) /bin/cpp is no longer operative on some systems, even when the compiler is
> there, and cpp appears to be there.  Unfortunately, there is no guaranteed
> replacement.


You're not supposed to notice the contents of /usr/sysgen/root, which is
required for the system to auto-configure itself.   At least up through
IRIX 4.*.


Vernon Schryver,  vjs@sgi.com
Newsgroups: comp.sys.sgi
From: feil@prl.philips.nl (Hans Feil)
Subject: 4.0.4 -> 4.0.5  Xmailtool doesn't work anymore?!
Organization: Philips Research Laboratories Eindhoven, Netherlands
Date: Mon, 16 Nov 1992 12:52:26 GMT

I've installed 4.0.5 on my Power Series R4000-50 GTX last week.
Everything works fine and some software (Chem-X) required the
installation of 4.0.5 to work anyway.

However, I am (was) a heavy user of the Sun mailtool running on a Sun
and displayed on my screen. It is a very easy to use mailtool
and I don't want to miss it. Now the mailtool comes up but when
I make a selection (clicking) somewhere in its window to let it open
a window and display a email-message, it fails! Input focus remains
in the mailtool window (black arrow) and nothing works anymore.
Then I have to walk to another screen, login in the Sun and kill
the application. After that, the x-window of the mailtool is removed
from my screen and the red arrow is back again.

I never had any troubles with 4.0.4 (except that Chem-X did not run. )


Is there anybody else who knows this problem (and the solution......)



Hans Feil
Philips Research Labs.
Eindhoven
The Netherlands
feil@prl.philips.nl
Organization: Penn State University
Date: Mon, 23 Nov 1992 22:06:42 EST
From: <SML108@psuvm.psu.edu>
Newsgroups: comp.sys.sgi
Subject: Possible GlxMDraw widget bug

Hi, I am encountering some strange behavior with mixed-mode programming
on the SGI.  In the input callback to a GlxmDraw widget, the GlxDrawCallback
structure returns the width and height of the window to be 3393 and 64152
pixels respectively no matter what I do to resize the window...

Any ideas?

Scott
From: scott@conan.UUCP (Scott Weitzenkamp)
Newsgroups: comp.sys.sgi
Subject: simple sysid(3) question
Keywords: sysid unique
Date: 22 Nov 92 18:43:12 GMT


  Is the sysid(3) function available on both IRIX 3.X and 4.0.X?  We
only have IRIX 4.0.1 in-house, so I can't easily check.  Does sysid(3)
return a number that is unique for that specific computer, or unique
for that *model* of computer?  I assume the number is unique for that
specific computer, but wasn't 100% sure.

  Thanks for any insight...



-- 
Thanks in advance...
Scott Weitzenkamp, Talarian Corporation, Mountain View, CA
scott@talarian.com OR uunet!talarian!scott     	(415) 965-8050
"Welcome to the late show, starring NULL and void" -- Men At Work
Newsgroups: comp.sys.sgi
Subject: Undefined RPC stuff
From: johns@io.datasys.swri.edu (Stephen Johns)
Date: 17 Nov 92 18:45:14 GMT
Organization: Southwest Research Institute, San Antonio

I am attempting to compile/link code generated by RPCGEN.
To get it to compile, the -cckr flag had to be used, that part seems ok,
but the linker can't find:

pmap_unset
svcudp_create
svc_register
svctcp_create
svc_run
xdr_void
svc_sendreply
xdr_long
svcerr_noproc
svcerr_decode
svcerr_systemerr

What library are these in?

Please e-mail responses.

Thanks!
From: clarke.stevens@gtri.gatech.edu (Clarke Stevens)
Newsgroups: comp.sys.sgi
Subject: GUI Mail and News
Date: 17 Nov 92 15:30:00 GMT
Article-I.D.: astgator.clarke.stevens-171192102042
Followup-To: comp.sys.sgi
Organization: GTRI/AERO

I am fairly new to the sgi platform, so forgive me if this is a FAQ.  I am
surprised that with all the great graphical user interface software on the
Indigo, the utilities manual still advocates the unix "Mail" program for
reading and sending mail.  Surely someone has a GUI mailing program out
there.  If nothing else, I would be willing to use elm (is it public
domain?)--but Mail??!?!

I would also be interested in a GUI news reader.

If anyone has GUI programs to do either of these things, I would greatly
appreciate hearing about it.

Also, I would like nifty GUI interfaces to the following if they are
available:

ftp
telnet
WAIS
Gopher
talk
IRC

Any help would be appreciated.  If there are good sgi applicable anonymous
ftp sites, please let me know where they are.

Thanks in advance,
Clarke

------------------------------------------------------------------
J. Clarke Stevens               |  Georgia Tech Research Institute
clarke.stevens@gtri.gatech.edu  |  (404) 528-3254
Newsgroups: comp.sys.sgi
From: burr@seas.gwu.edu (Timothy J. Burr)
Subject: CodeVision Debugger: Saving/Loading Settings
Organization: George Washington University
Distribution: usa
Date: Mon, 23 Nov 1992 14:02:44 GMT

The Save and Load Settings option seems to not be working for
me.  I setup the debugger environment the way I like it (i.e., with
line numbers turned on, certain windows open, etc.), and then
go into Save Settings and try to save this to the .cvDebug startup
file.  I also indicate that I want the save settings command to take
note of which windows I have open and where so it will be able to
open these windows in their exact locations next time I enter the
debugger.  Unfortunately this is not working.  When I next reenter
cvd or use Load Settings nothing happens.  When I look in .cvDebug
it only has one line in it - a line specify the size and location
of the main window.  Could someone tell me what I'm doing wrong.

Thanks,
Tim

burr@enews.nrl.navy.mil  or burr@seas.gwu.edu
Newsgroups: comp.sys.sgi
From: chris@stellacom.com (Chris Cressy)
Subject: 3rd-party Indigo Monitors?
Organization: StellaCom, Inc., Arlington, VA
Date: Mon, 23 Nov 1992 15:44:03 GMT

Could anyone offer suggestions on third party monitors for the Indigo XS24?  
I am looking for a high-quality 16-19" monitor (1280x1024 res) to
replace the 16" Misubishi monitor that came with my Indigo.

16" Mitsubishi monitors apparently suffer from a minor design flaw.  
These monitors have two horizontal gray lines located at 1/4 screen from 
the top and bottom.  The lines are most noticable against a light
background.  I had the original monitor replaced but the new monitor
suffers the same problem.  The SGI Service Rep told me that the lines
are wires in the screen mask and that all the 16" Mitsubishi monitors
have this problem.

This Mitsubishi monitor is certainly acceptable for many engineering
applications.  However, for my applications, I would like something
better.  SGI's only other solution is the 19" Mitsubishi monitor which
is proportedly of better quality.  However, it is $2000 more and I
would prefer the portability of a 16".

Could anyone recommend a third-party alternative in the 16-19" size range?  

Thanks,
Chris
-- 
--------------------------------------------------------------------
Chris Cressy           StellaCom, Inc. / Advanced Television Systems
chris@stellacom.com    1901 N. Moore St., Suite 601
(703) 243-1695         Rosslyn, VA  22209
Organization: Arizona State University
Date: Sunday, 22 Nov 1992 11:15:55 MST
From: <AGDAV@ASUACAD.BITNET>
Newsgroups: comp.sys.sgi
Subject: GIF viewer for 3030

   Does anyone know where I might find a GIF viewer or a jpg viewer
  for this beast. (IRIS 3030) ?  Any help would be greatly apprec-
  iated!

                                         - Thanx
                                            Dave
                                     agdav@acvax.inre.asu.edu
Newsgroups: comp.sys.sgi,comp.mail.mh