[nas] cc/gcc issues with imake on Solaris 8

Jon Trulson jon at radscan.com
Wed May 19 17:36:52 MDT 2004


On Wed, 19 May 2004 rhfreeman at micron.com wrote:

> From: rhfreeman at micron.com
> Date: Wed, 19 May 2004 08:23:49 +0100
> Subject: RE: [nas] cc/gcc issues with imake on Solaris 8
> To: jon at radscan.com
> Cc: nas at radscan.com
> X-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,NO_REAL_NAME
> 	autolearn=no version=2.60
>
>
> > > Wow, we got there in the end I think. :) Thanks for your help!!
> > >
> >
> > 	Good to hear!  Though this brings up another question... What
> > should we do for nas on Solaris?  Should I just remove this call
> > altogether?  Anyone using NAS on Solaris have any suggestions?
>
> AUDIO_DRAIN is used a lot, so I'm just going to clarify which one I did
> comment out!
>
> It is in dda/sun/ausuni.c at line 948 (1.6c codebase):
>
> /* callback */
> static void
> disableProcessFlow()
> {
> #ifdef DEBUGLOG
> 	fprintf(stderr, "disableProcessFlow()\n");
> 	fflush(stderr);
> #endif
>
> 	signalEnabled = AuFalse;
> 	ioctl(devAudioCtl, I_SETSIG, 0);	/* disable signal */
> //	ioctl(devAudio, AUDIO_DRAIN, 0);	/* drain everything out
> */
> 	if (relinquish_device)
> 		closeDevice();
> }
>

	Ok, I think I will add this to the nas 1.6c tree as a few people
on the list ran into the problem.

> This actually dropped the binary size of nasd a lot for one line:
>
> 28516853  380 -rwxrwxr-x   1 richf    ukit       383504 May 18 11:00
> ./server/nasd
> 28768386  420 -rwxrwxr-x   1 richf    ukit       424608 Apr 26 10:14
> ./server/nasd.bak


	This I do not understand at all.  ioctl() is just a function call
into the system's libc library.  All it should occupy is the very few
bytes needed to setup the arg's and call the function. Hmm.

	Maybe the solaris update you did in between changed some things...

>
> I suppose the sensible thing to do would be for some other Solaris users
> to test it out?
>
> I've been using it a lot, and it has been working great. I can't get it
> to hang at all, I can even play stuff from Linux ok!
>

	Great!

> Rich
>

-- 
Jon Trulson    mailto:jon at radscan.com
ID: 1A9A2B09, FP: C23F328A721264E7 B6188192EC733962
PGP keys at http://radscan.com/~jon/PGPKeys.txt
#include <std/disclaimer.h>
"I am Nomad." -Nomad




More information about the Nas mailing list