> On Fri, Feb 25, 2011 at 01:17:08AM -0500, Dennis Clarke wrote: > >> >> $ ls -l /dev/urandom >> >> lrwxrwxrwx 1 root root 34 Feb 19 2008 /dev/urandom -> >> >> ../devices/pseudo/random@0:urandom >> > >> > Which version of SunOS first introduced unconditional support for >> > /dev/urandom? >> >> I don't know what you mean by "unconditional" but the feature was added >> to >> Solaris 8 in : >> Patch-ID# 112439-02 > > That's conditional on the SunOS patch. The question is which SunOS > releases *always* have /dev/urandom.
Well, two responses here : 1) that patch is deemed essential and no one, ever, runs without it 2) Solaris 9 provides SSH built in and thus it has a PRNG built into the kernel. Guess which patch in the Solaris 9 beta provides that feature? Yep, you guessed it, the one that applies to Solaris 8 was actually a patch from the Sol 9 dev stage. Anyways the hard answer is Solaris 9 but in practice Solaris 8. >> > On Fri, Feb 25, 2011 at 12:35:48AM -0500, Dennis Clarke wrote: >> > >> >> /opt/studio/SOS11/SUNWspro/bin/cc -DNO_CLOSEFROM -DNO_DEV_URANDOM >> >> -DNO_FUTIMESAT -Dstrcasecmp=fix_strcasecmp >> >> -Dstrncasecmp=fix_strncasecmp -g -O -I. -I../../include -DSUNOS5 -c >> >> postconf.c >> >> "str_table.h", line 46: non-constant initializer involving a cast >> >> cc: acomp failed for postconf.c >> > >> > What do you see on line 46 of str_table.h? >> >> $ cat -n str_table.h | head -46 | tail -1 >> 46 VAR_TLS_BUG_TWEAKS, DEF_TLS_BUG_TWEAKS, &var_tls_bug_tweaks, 0, >> 0, > > Well, DEF_TLS_BUG_TWEAKS is defined as the constant expression: > > ((TLS_BUG_TWEAK_A TLS_BUG_TWEAK_B)+1) > > where TLS_BUG_TWEAK_A and TLS_BUG_TWEAK_B are string literals. In your > case: "" and " ". So the expression is: > > (("" " ") + 1) > > which should be the constant pointer to the second (NUL) character of " ". > Not quite sure why your compiler objects, but I guess the expression > needs to be simplified. :-( I could try with GCC but really it *should* compile with baseline Solaris 8 and Sun Studio 11 fully patched. > Does the patch below solve the problem? Let me try it and report back shortly ! Did I say thank you? Well people in the open source world need to say it much more often. Postfix is simply the best and I thank thee from the bottom of my heart and man .. I mean it ! -- Dennis Clarke dcla...@opensolaris.ca <- Email related to the open source Solaris dcla...@blastwave.org <- Email related to open source for Solaris