On Mon, Jul 18, 2011 at 06:17:29PM +0200, remi.poin...@xiri.fr wrote: > On Mon, 18 Jul 2011 11:13:11 -0400, dan wrote: > >Since upgrading to recent snapshots mercurial has stopped working for > >me. I get the following errors: > >$ hg > > > >/usr/local/bin/python2.7:/usr/local/lib/python2.7/site-packages/mercurial/osutil.so: > >undefined symbol 'fstatat' > > > >/usr/local/bin/python2.7:/usr/local/lib/python2.7/site-packages/mercurial/osutil.so: > >undefined symbol 'fdopendir' > >Traceback (most recent call last): > > File "/usr/local/bin/hg", line 38, in <module> > > mercurial.dispatch.run() > > File > >"/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", > >line 27, in run > > sys.exit(dispatch(request(sys.argv[1:]))) > > File > >"/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", > >line 40, in dispatch > > req.ui = uimod.ui() > > File "/usr/local/lib/python2.7/site-packages/mercurial/ui.py", line > >43, in __init__ > > for f in scmutil.rcpath(): > > File "/usr/local/lib/python2.7/site-packages/mercurial/scmutil.py", > >line 399, in rcpath > > _rcpath = osrcpath() > > File "/usr/local/lib/python2.7/site-packages/mercurial/scmutil.py", > >line 371, in osrcpath > > path = systemrcpath() > > File "/usr/local/lib/python2.7/site-packages/mercurial/scmutil.py", > >line 420, in systemrcpath > > path.extend(rcfiles(os.path.join(p, 'etc/mercurial'))) > > File "/usr/local/lib/python2.7/site-packages/mercurial/scmutil.py", > >line 409, in rcfiles > > for f, kind in osutil.listdir(rcdir) > > File > >"/usr/local/lib/python2.7/site-packages/mercurial/demandimport.py", > >line > >75, in __getattribute__ > > self._load() > > File > >"/usr/local/lib/python2.7/site-packages/mercurial/demandimport.py", > >line > >47, in _load > > mod = _origimport(head, globals, locals) > >ImportError: Cannot load specified object > > > > > >I get the same error no matter which command I pass to hg. I've tried > >updating ports, and removing all ports and starting over. > > > >I know it was working with the May 2 snapshot, but I cannot > >remember if > >it was working with the June 27. > > > >Any hints would be appreciated. > > Hello, > > it has been fixed in the 1.17 revision: > http://www.openbsd.org/cgi-bin/cvsweb/src/sys/sys/fcntl.h > > Could you wait the next snapshot, or rebuild your userland and > mercurial ? > > Thanks, > > Remi. >
I had to rebuild python as well, but this worked. The snapshot I'm using has 1.18 revision of fcntl.h, so that didn't need to be updated. Thanks! dan