I installed these packages on an amd64 system (S10 update 1) but can't get them 
to function fully.  The problem appears to be the version of libnsl.so.1 that 
mercurial expects.  "hg init" works but "hg stat" after that fails.  It seems 
anything that uses _socket.so fails.  Here's what happens:

$ hg st
** unknown exception encountered, details follow
** report bug details to [EMAIL PROTECTED]
** Mercurial Distributed SCM (version 0.9)
Traceback (most recent call last):
  File "/opt/dscm/bin/hg", line 12, in ?
    commands.run()
  File "/opt/dscm/lib/python2.4/site-packages/mercurial/commands.py", line 
3182, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/opt/dscm/lib/python2.4/site-packages/mercurial/commands.py", line 
3343, in dispatch
    return d()
  File "/opt/dscm/lib/python2.4/site-packages/mercurial/commands.py", line 
3318, in <lambda>
    d = lambda: func(u, repo, *args, **cmdoptions)
  File "/opt/dscm/lib/python2.4/site-packages/mercurial/commands.py", line 
2562, in status
    show_ignored=show_ignored)]
  File "/opt/dscm/lib/python2.4/site-packages/mercurial/localrepo.py", line 
617, in changes
    wlock = self.wlock(wait=0)
  File "/opt/dscm/lib/python2.4/site-packages/mercurial/localrepo.py", line 
371, in wlock
    desc=_('working directory of %s') % self.origroot)
  File "/opt/dscm/lib/python2.4/site-packages/mercurial/localrepo.py", line 
350, in do_lock
    l = lock.lock(self.join(lockname), 0, releasefn, desc=desc)
  File "/opt/dscm/lib/python2.4/site-packages/mercurial/lock.py", line 42, in 
__init__
    self.lock()
  File "/opt/dscm/lib/python2.4/site-packages/mercurial/lock.py", line 51, in 
lock
    self.trylock()
  File "/opt/dscm/lib/python2.4/site-packages/mercurial/lock.py", line 64, in 
trylock
    self.host = socket.gethostname()
  File "/opt/dscm/lib/python2.4/site-packages/mercurial/demandload.py", line 
61, in __getattribute__
    module = object.__getattribute__(self, 'module')()
  File "/opt/dscm/lib/python2.4/site-packages/mercurial/demandload.py", line 
54, in module
    return object.__getattribute__(self, 'importer').module()
  File "/opt/dscm/lib/python2.4/site-packages/mercurial/demandload.py", line 
30, in module
    self.fromlist)
  File "/opt/dscm/lib/python2.4/socket.py", line 45, in ?
    import _socket
ImportError: ld.so.1: python2.4: fatal: libnsl.so.1: open failed: No such file 
or directory

$ ls /lib/libnsl.so*
/lib/libnsl.so@    /lib/libnsl.so.1*

$ ldd -s /opt/dscm/lib/python2.4/lib-dynload/_socket.so
<snip>

   find object=libnsl.so.1; required by 
/opt/dscm/lib/python2.4/lib-dynload/_socket.so
    search path=/usr/sfw/lib  (RPATH from file 
/opt/dscm/lib/python2.4/lib-dynload/_socket.so)
    trying path=/usr/sfw/lib/libnsl.so.1
    search path=/lib:/usr/lib  (default)
    trying path=/lib/libnsl.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libnsl.so.1 (SUNW_1.10) =>       (version not found)

<snip>

Any idea what the problem is?  I don't remember installing any special libnsl 
on my system.  It's the stock one that came with S10 u1, or it came with one of 
the  patches that I pulled using "smpatch update."

Regards
 
 
This message posted from opensolaris.org
_______________________________________________
tools-discuss mailing list
[email protected]

Reply via email to