I found and fixed the problem
(edit src/lib/libast/comp/conf.tab, change all
        SVID    SI 1 0
lines to
        SVID    SI 1 O
trailing zero to upper case o)

the solaris uname(1) uses sysinfo(SI_*) for some values
the builtin uname(1) uses sysinfo values too, but through
the unified astconf(3) string interface

the compile time probe for astconf(3) was the problem
fixed by the table edit above

btw, with the builtin getconf you can

        getconf 'CS(123)'
        getconf 'PC(123)'
        getconf 'SC(123)'
        getconf 'SI(123)'

for the 123 value for { _CS_* _PC_* _SC_* _SI_* } respectively

how did we (the unix community) ever get to the state of a
registry more messed up than windows :
        confstr, sysconf, pathconf, sysinfo, uname, /dev/kmem, /proc

-- Glenn Fowler -- AT&T Research, Florham Park NJ --

On Thu, 19 Apr 2007 18:18:54 +0200 Roland Mainz wrote:
> Glenn Fowler wrote:
> > On Thu, 19 Apr 2007 07:46:21 -0700 Alan Coopersmith wrote:
> > > I assume he's talking about ksh93 here - how would the
> > > builtin uname conflict with the real uname and break apps?
> > 
> > my guess its a diff in -m and/or -p values
> > can you point me to the /bin/uname source

> See
> http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/uname/

> Quick test:
> -- snip --
> $ for i in -p -m -i -n -r -s -v ; do print "builtin: uname $i returns
> |$(PATH=/usr/ast/bin ; uname $i)|, /sbin/uname returns |$(/sbin/uname
> $i)|" ; done
> builtin: uname -p returns |sun4u|, /sbin/uname returns |sparc|
> builtin: uname -m returns |sun4u|, /sbin/uname returns |sun4u|
> builtin: uname -i returns |sun4|, /sbin/uname returns |SUNW,Ultra-5_10|
> builtin: uname -n returns |jupiterb48|, /sbin/uname returns |jupiterb48|
> builtin: uname -r returns |5.11|, /sbin/uname returns |5.11|
> builtin: uname -s returns |SunOS|, /sbin/uname returns |SunOS|
> builtin: uname -v returns |snv_48|, /sbin/uname returns |snv_48|
> -- snip --
> ... which shows that the values for "-p" and -i" differ beteen the
> builtin and the standalone command...

> ----

> Bye,
> Roland

> -- 
>   __ .  . __
>  (o.\ \/ /.o) roland.mainz at nrubsig.org
>   \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
>   /O /==\ O\  TEL +49 641 7950090
>  (;O/ \/ \O;)
> _______________________________________________
> ksh93-integration-discuss mailing list
> ksh93-integration-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss


Reply via email to