On Fri, Apr 18, 2008 at 12:50:41PM +0400, Roman Bogorodskiy wrote: > Hello, > > devel/mercurial is not usable on -CURRENT after /src/sys/sys/fcntl.h > changes[1]. > > It compiles alright, but fails to start with the following message: > > ImportError: /usr/local/lib/python2.5/site-packages/mercurial/osutil.so: > Undefined symbol "fdopendir" > > since we don't have fdopendir() implemented in FreeBSD. > > osutil.c contains the following code: > > #ifdef AT_SYMLINK_NOFOLLOW > dfd = open(path, O_RDONLY); > dir = fdopendir(dfd); > #else > dir = opendir(path); > dfd = -1; > #endif > > So the problem didn't show up because AT_SYMLINK_NOFOLLOW was not > defined, but after the change in fcntl.h mentioned above it got broken. > > 1: > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/fcntl.h.diff?r1=1.19;r2=1.20;f=h > > Roman Bogorodskiy
fdopendir() was committed several days ago. Anyway, the check in the cited source is obviously broken.
pgpoyHKIagM2e.pgp
Description: PGP signature