From owner-freebsd-ports@FreeBSD.ORG Wed May 7 18:16:38 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 063E137B404 for ; Wed, 7 May 2003 18:16:38 -0700 (PDT) Received: from mail.generalresources.com (adsl-211-78-137-219.NH.sparqnet.net [211.78.137.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12BDA43FBD for ; Wed, 7 May 2003 18:16:34 -0700 (PDT) (envelope-from freebsd@generalresources.com) Received: from mail.generalresources.com (localhost [127.0.0.1]) h480qqLX030101 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 8 May 2003 08:52:52 +0800 (CST) (envelope-from freebsd@generalresources.com) Received: (from root@localhost) by mail.generalresources.com (8.12.9/8.12.6/Submit) id h480qqDS030095 for ports@freebsd.org.procmail; Thu, 8 May 2003 08:52:52 +0800 (CST) (envelope-from freebsd@generalresources.com) Received: from server.tucheng.generalresources.com (client-253.lan.generalresources.com [192.168.1.253])h480qpLX030086 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 8 May 2003 08:52:51 +0800 (CST) (envelope-from freebsd@generalresources.com) Received: from x4.tucheng.generalresources.com (x4.tucheng.generalresources.com [192.168.2.4])h480qEV7016718; Thu, 8 May 2003 08:52:14 +0800 (CST) (envelope-from freebsd@generalresources.com) Received: from x4.tucheng.generalresources.com (localhost [127.0.0.1]) h480psL6001440; Thu, 8 May 2003 08:51:54 +0800 (CST) (envelope-from freebsd@generalresources.com) Message-Id: <200305080051.h480psL6001440@x4.tucheng.generalresources.com> To: ports@freebsd.org From: Christopher Hall Content-transfer-encoding: 8bit Content-type: text/plain; charset=iso-8859-1 X-Operating-System: FreeBSD X-Mailer: Exmh Date: Thu, 08 May 2003 08:51:54 +0800 cc: lioux@freebsd.org Subject: rxvt-devel fails on -CURRENT X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Christopher Hall List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2003 01:16:38 -0000 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 Fax: +886-2-2795-3030 Christopher Hall Phone: +886-2-2795-5799