devel/mercurial is not usable on -CURRENT after /src/sys/sys/fcntl.h changes

Roman Bogorodskiy novel at FreeBSD.org
Fri Apr 18 09:00:49 UTC 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20080418/46084283/attachment.pgp


More information about the freebsd-ports mailing list