HDTenEightyP/NetNews huggingface dataset:
From: root@itnsg1.cineca.it (Valter Cavecchia)
Subject: sockets problem
Organization: Laboratorio di Fisica Computazionale, INFM. Trento Italia
Date: Thu, 3 Sep 1992 10:46:56 GMT

I'm trying to write two simple communication programs using internet sockets,
a client and a server that simply need to exchange some data.
I'm not a communication expert and used as skeleton the two programs
accept.c and connect.c that come with 4Dgifts.
I found the following problem:

I start client on machine A and server on machine B, everything works well
and the two programs exchange the data.
After that I retry the same thing and errors happen (garbage and so on).

I suppose that I need to synchronize the sockets (or something like that).

Is there anyone that may have some suggestions about this problem?
Thanks a lot in advance,
	valter
From: d3a132@pnl.gov (Carl P Baker)
Newsgroups: comp.sys.sgi
Subject: xmail
Date: 3 Sep 92 18:56:21 GMT
Article-I.D.: oracle.1992Sep3.185621.3940
Reply-To: d3a132@pnl.gov
Followup-To: comp.sys.sgi
Organization: Battelle Pacific Northwest Laboratories

Has anyone compiled xmail for the SGI?  I got source from gatekeeper.dec.com,
and can't get it to compile.  If this is a FAQ, let me know.



-- carl

Carl P Baker
cp_baker@pnl.gov
509-375-2724

Disclaimer: I am not the official spokesperson for anyone.  For which
organizations that use spokespersons are profoundly grateful.
Newsgroups: comp.sys.sgi
From: dan@cscsun2.larc.nasa.gov (Dan O'Brien)
Subject: Re: Wavefront bombs under Irix4.05
Organization: NASA Langley Research Center, Hampton, VA  USA
Date: Thu, 3 Sep 1992 02:13:27 GMT



   We have had some problems with the Wavefront Software as well
 under 4.0.5.  Also, FAST does not run under 4.0.5.  However, 
 through some experimentation and use of trace we were able to
 determine that the failings are due to an inability to deal
 with fonts properly.  A fix that worked for us was to replace
 the fonts in /usr/lib/fmfonts with the old 4.0.1 ones (this
 includes the old X11 fonts and not links to the new ones) and
 to replace the /usr/lib/libfm_s and /usr/lib/libfm_s.a with
 their 4.0.1 versions.  We did receive a fix for FAST, but I
 don't think this is official so I will say no more--contact
 the person who gave you the software.  

   Will the font changes break anything?  We have not seen any
 problems, but we have not left them in for regular use.

   By the way the Wavefront programs that we know 
 just won't run without the font changes are

      Data Visualizer 2.1
      Visualizer Paint 2.0
      Advanced Visualizer 2.11


   We have not seen problems under either font scheme with

      Advanced Visualizer 3.0
      Video Composer 1.1

   
Dan O'Brien
dan@cscsun2.larc.nasa.gov




Newsgroups: comp.sys.sgi
From: olson@anchor.esd.sgi.com (Dave Olson)
Subject: Re: updating bad block list on SCSI disk using fx
Organization:  Silicon Graphics, Inc.  Mountain View, CA
Date: Sat, 29 Aug 92 03:05:20 GMT

In <1992Aug28.191401.29136@unixg.ubc.ca> laplante@ocgy.ubc.ca (Denis Laplante) writes:


| I tried to use the fx command 'auto' to reformat a disk suspected of having
| bad blocks.  The man page says
|      auto Initializes a	new disk. The disk is formatted, a label is created
| 	  and written to it, and it is exercised to detect and map out bad
| 	  blocks.
| Fx then printed 213 cryptic 2-line errors, all the same except for a block
| number near the block in error, in the form:
|   fx/auto/complete: warning - data mismatch
|   fx/auto/complete: Error 0 -- Couldn't find bad block on track starting with \
| 	block 283590 after 2 tries

That means you either have bad cabling/termination problems, or a drive
with extremely flaky firmware.  fx won't forward the bad blocks unless
it is convinced that they are really bad; it isn't able to find the
failing blocks when it goes to look for them.  You could use -r0 to
suppress some of the retries, which might find some of them.

| 1- How likely are those 213 ignored bad blocks to come back and haunt me?
|    Will these blocks just invisibly suffer from automatically recovered
|    errors?  

They aren't really 'bad' in the sense of causing an error, but they
aren't returning the same data that was written to them, at least
some of the time, which is definitely going to cause problems!

| 2- Is there a way to log recovered SCSI disk errors, as a warning of trouble

Yes; use the /label/set/param menu to enable reporting of recovered
errors; the kernel will print them, and syslogd will log them to
/usr/adm/SYSLOG

| 3- What did I do wrong for the bad block list to not be updated?

There weren't any hard errors.

| 4- Is there a way to declare new bad blocks without losing data, and without
|    I would guess that on an unmounted partition the following might do it:
|      badblock/addbb
|      debug/writebuf (the same block address now accesses a new disk sector)

As of 4.0.5, fx will attempt to read the data before forwarding the
bad blocks on SCSI drives (it always has for other drive types), and
if successful, will rewrite the data after the block is forwarded.

I'm not sure that will fix your problems though.
--
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
From: 6500hsb@ucsbuxa.ucsb.edu (Howard Bergh)
Newsgroups: comp.sys.sgi
Subject: help: fortran/libcgs.a
Date: 25 Aug 92 20:59:09 GMT

I am trying to compile mcnp (neutron transport simulator)
on a 320VGX.  It requires a library file: libcgs.a  I
obtained a copy of this library from another SGI computer.
When I try to link the *.u files I get an error stating
that libcgs.a doesn't have a table of contents and to
add one using "ar ts"  If I run "ar ts" the libcgs.a file
is not changed, and If I look at the file it starts with
a _.SYMDEF. "ar t" gives a correct listing of object files.
What is going on?  How can I tell if my library has a table
of contents, and if it does, why else might I be getting this
error.

	thanks, 	Sam

hbergh@topgun2.ucsb.edu
From: mstgil@sol.acs.unt.edu (Marc Ph. A. J. St.-Gil - Solbourne Administrator)
Newsgroups: comp.sys.sgi
Subject: Need help with QIC-02 on IRIS 3130
Keywords: QIC-02 3130 tar cpio dd tape
Date: 26 Aug 92 21:36:56 GMT
Reply-To: mstgil@sol.acs.unt.edu
Organization: University of North Texas

Hi,
    One of our faculty recently inherited an IRIS 3130 with wat seems to be a
QIC-02 cartridge tape drive.  The manual says it can write to a 600ft tape
for up to 60MB of storage.  When I try to use a Sony DC600A I get constant
write/read errors on both /dev/rmt1 and /dev/rmt2 (which both access the
one drive).  Am I using the wrong tapes?  Can anyone give me some examples
of tar, cpio, or dd commands that have worked on their similar systems?

Thanks for any help,
Marc
Newsgroups: comp.sys.sgi
From: philip@ziggy.stanford.edu (Philip Machanick)
Subject: Re: IRIX 4.0.4 include bugs
Reply-To: philip@ziggy.stanford.edu (Philip Machanick)
Organization: CS Department, Stanford University, California, USA
Date: Fri, 4 Sep 1992 16:42:44 GMT

In article <Bu24E8.5H9@math.uwaterloo.ca> mskucher@math.uwaterloo.ca (Murray S.  
Kucherawy [MFCF]) writes:
> olson@anchor.esd.sgi.com (Dave Olson) writes:
> >mskucher@math.uwaterloo.ca (Murray S. Kucherawy [MFCF]) writes:
> >
> >| This program:
> >| 
> >| #include <pwd.h>
> >| main()
> >| {
> >| }
> >| 
> >| ...produces three compilation warnings while it's reading the file
> >| "/usr/include/pwd.h".
> >
> >I don't have 4.0.4, but it works fine for me under 4.0.5.  What
> >warnings do you get, and what compiler flags are you using?
> 
> Using "cc -o x x.c":
> 
[warnings deleted]

Same on 4.0.1.
--
Philip Machanick
philip@pescadero.stanford.edu
Newsgroups: comp.sys.sgi
From: michael@iastate.edu (Michael M. Huang)
Subject: HELP: Looking for GL/Fortran Tutorials.
Organization: Iowa State University, Ames IA
Date: Thu, 27 Aug 1992 22:06:05 GMT

I've heard about some possible PD GL or Fortran tutorials out there
for SGIs.  If any kind soul out there who knows where I can get
them, please email me. :)  

Thanks in advance for any help.

-michael

-- 
Michael Ming-Yang Huang                                michael@iastate.edu
PV Student Dev. Group &                                (michaelhg@ids.net)
Carver/Vis. Lab Assist         "A mind is such a terrible thing to waste."
Iowa State Univ, Ames, IA      I speak for myself an' not of my employers.
From: jwt@duke.cs.duke.edu (Jeffrey W. Tannehill)
Newsgroups: comp.sys.sgi
Subject: Re: 8mm and dd (thanks for the help)
Date: 1 Sep 92 18:16:42 GMT
Organization: Duke University Computer Science Dept.; Durham, N.C.


	Just to be sure people understand how our problem was resolved, here
is the solution. We installed a third party 8mm on our SGI machine, and by
default the /dev/tape file was linked to /dev/rmt/tps1d5ns. As John Merritt
pointed out in his first reply posting, one can get this error if one
has a block size mismatch.  So, after looking more carefully at the 
man page for tps and determining how to translate the names of the tape
device files in /dev/rmt, I linked /dev/tape to /dev/rmt/tps1d5nsv (note
the "v" on the end of the name) which is the variable block size tape device.
This works.  Thanks for all the responses.

-- 
/*______________________________Jeff Tannehill_______________________________*
 * MAIL:  Duke Dept. of Computer Science        Internet: jwt@cs.duke.edu    *
 *        Durham, NC 27708 USA                  PHONE: +1 919 660 6500       */
From: thant@void.esd.sgi.com (Thant Tessman)
Newsgroups: comp.sys.sgi
Subject: Re: C++ 3.0
Date: 1 Sep 92 17:09:05 GMT
Organization: Silicon Graphics, Inc.  Mountain View, CA


So what's really weird is if you replace the line:


>     const String B = "Hello World";

with:

    char* s = "Hello World";
    const String B = s;

It works.  Looks like a compiler bug to me.  I will forward 
to the appropriate people.

thant
			


In article <3922@sicsun.epfl.ch>, lapique@siisg1.epfl.ch writes:
> The following  code illustrates an anomaly between
> IRIX 4.0.5 maint C++3.0 and version IRIX 4.0.5 C++2.1.1:
> -----------------------------------------------------------
> #include <string.h>
> class String {
>   private:
>      char *data;
>   public:
>      String(char *value =0){ 
>          data = new char[strlen(value) + 1];
>          strcpy(data,value);
>      }
> };
> main()
> {
>     const String B = "Hello World";
> }
> -------------------------------------------------------------
> Compiled with C++3.0 :
> 
> accom: Error: string.C, line 13: __2__X1 undefined
>        struct String __1B = (*( (__2__X1 = "Hello World"), ( ((
>        -------------------------------------------------^
> accom: Error: string.C, line 13: illegal combination of pointer and integer, op =
>        struct String __1B = (*( (__2__X1 = "Hello World"), ( ((
>        -------------------------------------------------^
> accom: Error: string.C, line 13: types :   int  versus   pointer to char
>        struct String __1B = (*( (__2__X1 = "Hello World"), ( ((
>        -------------------------------------------------^
> accom: Error: string.C, line 14: redeclaration of __2__X1
>        char *__2__X1 = 0 ;
>        --------------^
> Compiled with C++2.1.1 : OK
> ---------------------------------------------------------------------
> Francis Lapique
> Swiss Federal Institute of Technology-Lausanne
> Computer Center-SIC/SII
> E-mail : lapique@sic.epfl.ch
> voice : 41-21-693-4596
From: olson@anchor.esd.sgi.com (Dave Olson)
Newsgroups: comp.sys.sgi
Subject: Re: SCSI cable length
Keywords: SCSI,4D25,Iris
Date: 3 Sep 92 02:05:18 GMT
Organization: Silicon Graphics, Inc.  Mountain View, CA

In <drablos.715442946@marvin> drablos@marvin.mr.sintef.no (Finn Drablos) writes:

| I need to know the length of the internal SCSI cable in a 4D25 PI
| and an Iris File. Thanks in advance for any info!

3-6 feet internal to the box, depending on when it was made (and
the number of disk slots, in the latest PF).
--
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
From: horen@medusa.bioc.aecom.yu.edu (Ben Horenstein)
Newsgroups: comp.sys.sgi
Subject: mac/pc <> sgi file compress
Date: 26 Aug 92 18:05:49 GMT
Organization: Albert Einstein Coll of Medicine
Originator: horen@medusa

I transfer files between my MAC and SGI using kermit on a modem at
a (slow) 2400 bps. I'd like to compress the files, however I need
a program for the sgi which can handle stuffit format; does any such 
thing exist -- also is there a pkzip format compressor/uncompressor 
for the sgi?
Thanks
Xref: sparky comp.sys.sgi:13069 comp.unix.questions:10557
From: lebrun@ll.mit.edu (Steven F. LeBrun)
Newsgroups: comp.sys.sgi,comp.unix.questions
Subject: flock(), Files left locked after program terminates
Date: 31 Aug 92 12:04:22 GMT
Distribution: comp
Organization: MIT Lincoln Laboratory, Lexington, MA

I recently wrote a program on an SGI Indigo (IRIX 4.0.1) that uses 
flock() on a file.  Due to a bug, the program failed to explicitly 
unlock the file.  The program hangs in the call to flock() that 
locks the file whenever it runs a second time using the same file.  
The program is expected to wait for a locked file to become unlocked 
but since the program that locked the file has terminated, the file 
never becomes unlocked.  

Two factors may be important.  The first is that exclusive locks
were used.  The second, is that the program was run a second time
within a few minutes of the first run.

I have two questions:
	
1)      Is it a feature of flock() or a bug that when a program
        terminates normally that all advisory file locks remain?
        I thought that when you close a file, which is done
        implicitly when a program terminates, that the advisory
        lock was lost.

2)     	How do you get rid of an advisory lock on a file if the 
        program that issued it is no longer running?  Deleting
        the file works but I would like to know of a less 
        destructive method.
--

+--------------------------------------------------------------------------+
| Steven F. LeBrun             |      MIT Lincoln Laboratory, Group 91     |
|                              |        244 Wood Street, Room LI-136       |
| lebrun@ll.mit.edu (Internet) |          Lexington, MA 02173-9108         |
| lebruns@merlin    (internal) |  Phone:(617)-981-5742, FAX:(617)-981-0991 |
+--------------------------------------------------------------------------+
|"Hard as ligthning, soft as candlelight,                                  |
|                    dare you trust the Music of the Night?" - The Phantom |
+--------------------------------------------------------------------------+
From: marc@pxcl1.gi.rwth-aachen.de (Marc van Woerkom)
Newsgroups: comp.sys.sgi
Subject: GNU C++ on Iris 4d-70G
Date: 30 Aug 92 22:25:23 GMT
Article-I.D.: adm.32274

Hello!

I have two questions about GNU's gcc-2.2.2 on an Iris 4d-70G:

a) Using the GL Library:
   Is there a C++ interface-classlib available, which uses the power of
   C++ on GL programming?
   (What do you think in general about using GNU's C++ with the GL?)

b) Building gcc-2.2.2 

   Since we switched to Irix 4.01 I tried several times to compile gcc-2.2.2
   on our 4d-70G.
   For some disturbing reason I seem to be the only one so far, encountering
   problems building the compiler. I got at least half a dozen replies
   from other SGI users who hat no trouble at all.
   Note that I had no difficulties with the previous gcc-2.x versions
   when we still ran Irix 3.3.x

Thanks & Bye, Marc


Marc van Woerkom  ******  Aachen Center for Solidification in Space  *******
ACCESS e.V., Intzestr. 5                E-Mail: marc@pxcl1.gi.rwth-aachen.de
D-5100 Aachen, Germany                          Marc_van-Woerkom@ac3.maus.de
Fax: +49 241 38578        "Trust me, I know what I'm doing!" (Sledge Hammer)
From: olson@anchor.esd.sgi.com (Dave Olson)
Newsgroups: comp.sys.sgi
Subject: Re: "at" problems under 401 and 405
Date: 31 Aug 92 22:32:02 GMT
Organization: Silicon Graphics, Inc.  Mountain View, CA

In <Btuwnn.DHu@news.cso.uiuc.edu> dweber@ncsa.uiuc.edu (Daniel Weber) writes:


| I can't seem to get the "at" command to work under IRIX 4.0.1 and 4.0.5,
| either as a super-user or normal-user.  If I type:
| 
| VGX 1> at 11:00am today test
| VGX 2> at 11:01 today test
| VGX 3> at 11:02 test
| 
| where test is a file that contains the line "echo testing", I get

'test' is indeed a bad date.  See the 'at' man page for the usage.
--
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
From: HERBER@fnalf.fnal.gov (Randolph J. Herber, CD/DCD/USS, x2966)
Newsgroups: comp.sys.sgi
Subject: Re: modem and background jobs
Date: 27 Aug 92 18:47:32 GMT

+From: "Richard E. Gillilan" <reg@sdchemw2.ucsd.edu>
+Newsgroups: comp.sys.sgi
+Subject: modem and background jobs
+Date: 10 Aug 92 20:13:27 GMT

+Normally, when users log off of a modem line, the SGI hangs up the
+phone. If, however, anyone has submitted a background job from that
+line, our SGI will not terminate the call. Does anyone know what the
+problem is here?

+Thanks

+Richard E. Gillilan

Dave Olson of SGI, please correct me if I make any errors.

This is a FAQ and a RTFM item.  But, I must admit that it is hard-to-find
RTFM item!

1. a regular file or special device file is not closed in the kernel until
   all open fd's for the file are closed either by explicit close()s or
   by implicit closes as a result of process termination.

2. an exec() replicates open fd's (except for those marked close-on-exec)
   so that both parent and child have open fd's.  After the fork, the open
   status of the fd's are independent.

3. as long as any process has a open fd for the process, including control tty,
   the tty driver will not drop DTR to the modem.  It is dropping of DTR that
   normally signals the disconnection of the telephone connection.

4. I believe that:
	nohup %cmd% </dev/null >& report.file &
   will result in the proper conditions for a background job that will release
   the modem by dropping DTR.

Randolph J. Herber, herber@fnalf.fnal.gov, +1 708 840 2966
(Speaking for myself and not for US, US DOE, FNAL nor URA.)
(Product, trade, or service marks herein belong to their respective owners.)
From: andersen@marvin.ama.ttu.edu (Kim Andersen)
Newsgroups: comp.sys.sgi
Subject: Why won't my IRIS read this CD?
Date: 28 Aug 92 19:19:14 GMT

When I bought this cdrom player, I foolishly thought that I would be
able to read cdroms (in the proper format, of course).  However, the
first cd that I've tried to read (not from SGI, but in iso9660 format)
is not working at all.  I'm just a little bit ticked off, especially 
since I've mounted the same disk on a Solbourne and it reads it just fine.

This is a 4D/35, with cdrom, running 4.0.1.

Here is the problem:

root# mount -t iso9660 -o ro /dev/scsi/sc0d4l0 /CDROM

root# ls -al /CDROM
total 10
dr-xr-xr-x   1 root     sys         2048 Jul  9 20:08 .
drwxr-xr-x  25 root     sys         1024 Aug 28 10:11 ..
dr-xr-xr-x   1 root     sys         2048 Jul 10 17:28 pdb92cd

root# ls -al /CDROM/pdb92cd
/CDROM/pdb92cd
/CDROM/pdb92cd/asn_1: Not a directory
/CDROM/pdb92cd/dataprtp: Not a directory
/CDROM/pdb92cd/docs: Not a directory
/CDROM/pdb92cd/index: Not a directory
/CDROM/pdb92cd/nonst: Not a directory
/CDROM/pdb92cd/pdbcon: Not a directory
/CDROM/pdb92cd/pdbpgmtp: Not a directory
/CDROM/pdb92cd/readme: Not a directory
/CDROM/pdb92cd/wais: Not a directory
total 8
dr-xr-xr-x   1 root     sys         2048 Jul 10 17:28 .
dr-xr-xr-x   1 root     sys         2048 Jul  9 20:08 ..

All of the above (asn_1, dataprtp, docs, etc.) ARE directories.

Any clues? Hints? RTFMs?



Kim Andersen
Harrington Cancer Research
andersen@marvin.ama.ttu.edu
Newsgroups: comp.sys.sgi
From: tarun@psyclops.psyc.queensu.ca (Tarun Kripalani)
Subject: System Slowdown 
Organization: Dept. Of Psychology,  Queen's University,  Kingston
Date: Fri, 4 Sep 1992 13:23:59 GMT

I am experiencing a slowdown in our Iris (310GTX) whenever
we have more than a certain number of files in a directory.
As soon as I am in a directory that has about 2000 files and 
I do a mv, cp, ls etc. it takes ages to perform. Everything 
I do then is slowed down including any other user's processes.
Why is this happening? What can I do to fix this problem?

TIA

-- 

Tarun Kripalani (of Wounded Knee and now Wounded Shoulder)
e-mail:   tarun@psyclops.psyc.queensu.ca
Dept. of Psychology, Queen's University,
Kingston, Ontario.
From: george@tusk.med.harvard.edu (George Planansky)
Newsgroups: comp.sys.sgi
Subject: "cd .." failure on iso9 fs ( CDROM ) -- Remedy ??
Date: 28 Aug 92 00:04:50 GMT
Organization: Harvard Medical School, Boston MA

Functions or attributes connected with directories do not work
inside the iso9 apparent-directory tree.  The .. and . forms
break, and pwd breaks.  Is there a remedy?

System:  IRIX Release 4.0.4 IP17 Version 03241739 System V

CDROM mounted via cdromd, as an iso9 filesystem:

  mud(50)%m fsd.tab
  /dev/scsi/sc0d4l0 /cdromd.sc0d4l0 cdrom ro,nosuid,key=1,cdrom 0 0

  mud(51)%df /cdromd.sc0d4l0
  Filesystem                 Type  blocks     use   avail %use  Mounted on
  /dev/scsi/sc0d4l0          iso9  915456  915456       0 100%  /cdromd.sc0d4l0

mud[309]%cd /cdromd.sc0d4l0
mud[310]%echo $cwd; pwd
/cdromd.sc0d4l0
/cdromd.sc0d4l0
mud[311]%ls
./        ../       pdb92cd/

mud[312]%cd pdb92cd
mud[313]%echo $cwd ; pwd
/cdromd.sc0d4l0/pdb92cd
/cdromd.sc0d4l0/pdb92cd
mud[314]%ls
./         asn_1/     docs/     
../        dataprtp/  index/    

mud[315]%cd docs
mud[316]%echo $cwd ; pwd
/cdromd.sc0d4l0/pdb92cd/docs
pwd: read error in ..
mud[317]%ls
./             advisory.ps*   
../            advisory.txt*  
access.txt*    apr92nl/       

mud[323]%cd apr92nl
mud[324]%echo $cwd ; pwd
/cdromd.sc0d4l0/pdb92cd/docs/apr92nl
pwd: cannot open ..
mud[325]%ls
./..: Not a directory
./             entries.txt*   
biblio.txt*    newslett.ps*   

mud[326]%cd ..
..: Not a directory

--
George Planansky
Department of Biological Chemistry & Molecular Pharmacology
Harvard University Medical School, 240 Longwood Ave., Boston, MA 02115
email: gplanansky@tusk.med.harvard.edu
phone: (617) 432-3919
fax:   (617) 432-4360
From: C.G.C.vanDijk@io.tudelft.nl
Newsgroups: comp.sys.sgi
Subject: curvature<explorer<inventor<nurbs
Date: 3 Sep 92 15:58:37 GMT

Wanted:

An explorer map & modules to view the Gaussian curvature of
nurbs surfaces.  Input can be in inventor format.

I know that the 'readGeom' module can read inventor nurbs, but I
do not know enough about explorer to convert this to a lattice.
Once I have a lattice, I suppose that the curvature can be
obtained with a nifty cascade of 'gradient' modules.

Any help, code, or manual references appreciated.

Casper G.C. van Dijk               "Broken words,
Delft University of Technology      never meant to be spoken"
the Netherlands                                    Bob Dylan