Roland Mainz wrote:
> Roland Mainz wrote:
> > Roland Mainz wrote:
> > > Is it possible that the builtin fuction "iszero" somehow disappeared in
> > > ast-ksh/2006-11-22 ?
> > >
> > > $ ./arch/sol11.i386/bin/ksh -o gmacs
> > > $ (float x=0 ; print $(( iszero(x) )) )
> > > /home/test001/tmp/build32/arch/sol11.i386/bin/ksh: iszero(x) : unknown
> > > function
> > [snip]
> > > Steps to reproduce (for i386/AMD&4):
> > > $ wget
> > > http://svn.genunix.org/repos/on/branches/ksh93/gisburn/scripts/buildksh93.ksh
> > > $ wget --http-user="I accept www.opensource.org/licenses/cpl"
> > > --http-passwd="."
> > > 'http://www.research.att.com/~gsf/download/alpha/INIT.2006-11-22.tgz'
> > > $ wget --http-user="I accept www.opensource.org/licenses/cpl"
> > > --http-passwd="."
> > > 'http://www.research.att.com/~gsf/download/alpha/ast-ksh.2006-11-22.tgz'
> > > $ mkdir build32 ; cd build32
> > > $ gunzip -c ../ast-ksh.2006-11-22.tgz | tar -xf -
> > > $ gunzip -c ../INIT.2006-11-22.tgz | tar -xf -
> > > $ time nice ksh ../buildksh93.ksh build.solaris.i386.32bit.suncc 2>&1 |
> > > tee -a buildlog.log
> > > $ ./arch/sol11.i386/bin/ksh -o gmacs
> > > $ (float x=0 ; print $(( iszero(x) )) )
> > > ./arch/sol11.i386/bin/ksh iszero(x) : unknown function
> > >
> > > This looks a little bit weired... "isnormal" is there, "issubnormal"
> > > isn't... and I don't see a pattern why one is there and the other
> > > isn't... the "buildksh.ksh" script enforces C99 mode via
> > > "/opt/SUNWspro/bin/cc -xc99=%all -D_XOPEN_SOURCE=600 -D__EXTENSIONS__=1
> > > ..." and should make all these functions accessible to the code... ;-/
> >
> > Ok... it seems to be the old issue of "libsunmath"
> [snip]
> 
> Question to gatekeepers:
> Is there a precedent that an application in OS/Net links with
> libsunmath.a ? The problem is that libm.so.2 lacks some functions (e.g.
> |iszero()|, |issubnormal()| etc.) and libsunmath.so.1 sits in
> /opt/SUNWspro/prod/lib/ ... ;-(
> 
> If there is no precedent is there an option to get the permission to
> link against libsunmath.a for libshell.so.1 ?

Seems the "perl" build ran into the same problem long ago.
From
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/perl/5.6.1/distrib/hints/solaris_2.sh
-- snip --
    521 The Sun Workshop math library is not installed; therefore I do
not
    522 know how to do long doubles, sorry.  I'm disabling the use of
long
    523 doubles.
    524 EOM
    525                 uselongdouble="$undef"
    526         fi
    527         ;;
    528 esac
    529 EOCBU
    530 
    531 rm -f try.c try.o try a.out
-- snip --
If we can link against "libsunmath" statically we may be able to get the
same fix for "perl", too.

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

Reply via email to