rxvt-devel fails on -CURRENT
Christopher Hall
freebsd at generalresources.com
Wed May 7 18:16:38 PDT 2003
rxvt-devel-2.7.8_1 fails with the following error:
ptytty.c:50:48: sys/stropts.h: No such file or directory
After some searching I fount the same error in:
http://bento.freebsd.org/errorlogs/i386-5-latest/rxvt-devel-2.7.8_1.log
http://bento.freebsd.org/errorlogs/i386-5-latest/zh-rxvt-devel-2.7.8_1.log
I also found a uncommited update to rxvt-devel-2.7.9 which I tried
and give the same error.
http://www.FreeBSD.org/cgi/query-pr.cgi?pr=46244
This seems to be the problem: (from the above logs)
pty/tty type: STREAMS
It is building for Linux style /dev/ptmx
This is the code in configure:
else if test -c /dev/ptc -a -d /dev/pts; then
rxvt_cv_ptys=PTC
else if test -c /dev/ptmx -a -c /dev/pts/0; then
rxvt_cv_ptys=STREAMS
else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes;
then
rxvt_cv_ptys=STREAMS
else
rxvt_cv_ptys=BSD
Configure is detecting grantpt and unlockpt from stdlib.h
I noticed there is also a posix_openpt, presumably rxvt
should be modified to detect and use this.
As a quick fix, I made it compile by patching configure
to force BSD ptys:
--- configure.x Wed May 7 17:17:21 2003
+++ configure Wed May 7 17:25:09 2003
@@ -8904,11 +8904,8 @@
rxvt_cv_ptys=PTC
else if test -c /dev/ptmx -a -c /dev/pts/0; then
rxvt_cv_ptys=STREAMS
- else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
- rxvt_cv_ptys=STREAMS
else
rxvt_cv_ptys=BSD
-fi
fi
fi
fi
---
Christopher Hall <hswATgeneralresources.com> Fax: +886-2-2795-3030
Christopher Hall <hswATacm.org> Phone: +886-2-2795-5799
More information about the freebsd-ports
mailing list