[ksh93-integration-discuss] Re: [ast-users] /dev/tcp+/dev/udp notcompiled-in for Solaris ksh93r...

Roland Mainz roland.mainz at nrubsig.org
Thu Sep 7 14:20:33 PDT 2006


James Carlson wrote:
> Roland Mainz writes:
> > Glenn Fowler wrote:
> > > socket() not in libc
> > > solaris is still in the 70's on this one
> > > is it in -lsocket?
> > [snip]
> >
> > Minor update (I just hit that problem again): It still doesn't work in
> > ksh93r+_20060724... ;-(
> 
> It's not _exactly_ that it's in the 70's, though I agree that this
> particular issue is quite annoying.
> 
> The difficulty here (in case someone feels moved to take it on) is
> that there are actually two incompatible sockets libraries.  There's
> the old BSD4.2-ish "-lsocket -lnsl" on one side, and there's the more
> modern and standards-conformant "-lxnet" on the other.
> 
> In folding sockets into libc, I'd strongly recommend going with
> libxnet over libsocket.

I am not sure whether this is a good idea right now...

Some questions (CC:'ing Casper to have a look at the problem, too):
- AFAIK none of { Xorg, Xsun, Mozilla. FireFox, KDE, Kerberos5, bash }
uses libxnet... the question is: Why can't they use libxnet ?

- The majority of applications in OS/Net uses libnsl+libsocket and not
libxnet (182 vs. 16) - is that just historical cruft that they do not
use libxnet (sometimes all three libraries are used (like
http://cvs.opensolaris.org/source/xref/on/usr/src/cmd/cmd-inet/usr.sbin/ping/Makefile#43))
?

- How does libxnet interfer with SCTP support and libsctp itself ? For
example libsctp links against libsocket and not libxnet:
-- snip --
$ ldd
/home/test001/ksh93/threaded_ksh/on_build1/test1_x86/proto/root_i386/usr/lib/libsctp.so
        libsocket.so.1 =>        /lib/libsocket.so.1
        libc.so.1 =>     /lib/libc.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libmd5.so.1 =>   /lib/libmd5.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libm.so.2 =>     /lib/libm.so.2
-- snip --

- What do the "bind" authors mean with the following comment (see
http://cvs.opensolaris.org/source/xref/sfw/usr/src/cmd/bind/bind-9.2.4/lib/bind/configure.in#654):
-- snip --
653 #
654 # -lxnet buys us one big porting headache...  standards, gotta love
'em.
655 #
-- snip --
That comment somehow makes me think that the use of libxnet may cause
some trouble for ksh93...

----

Bye,
Roland

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



More information about the ksh93-integration-discuss mailing list