From nate@mercury.st.hmc.edu  Thu Mar 27 00:32:01 2003
Return-Path: <nate@mercury.st.hmc.edu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 609AD37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Mar 2003 00:32:01 -0800 (PST)
Received: from mercury.st.hmc.edu (mercury.ST.HMC.Edu [134.173.63.136])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E453B43FA3
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Mar 2003 00:32:00 -0800 (PST)
	(envelope-from nate@mercury.st.hmc.edu)
Received: from mercury.st.hmc.edu (localhost [127.0.0.1])
	by mercury.st.hmc.edu (8.12.6/8.12.6) with ESMTP id h2R8W099041315
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Mar 2003 00:32:00 -0800 (PST)
	(envelope-from nate@mercury.st.hmc.edu)
Received: (from nate@localhost)
	by mercury.st.hmc.edu (8.12.6/8.12.6/Submit) id h2R8W0pX041314;
	Thu, 27 Mar 2003 00:32:00 -0800 (PST)
	(envelope-from nate)
Message-Id: <200303270832.h2R8W0pX041314@mercury.st.hmc.edu>
Date: Thu, 27 Mar 2003 00:32:00 -0800 (PST)
From: Nate Eldredge <neldredge@hmc.edu>
Reply-To: Nate Eldredge <neldredge@hmc.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: lang/expect port build failure: `openpty' unresolved
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         50335
>Category:       ports
>Synopsis:       lang/expect port build failure: `openpty' unresolved
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 27 00:40:02 PST 2003
>Closed-Date:    Sat Mar 29 11:57:39 PST 2003
>Last-Modified:  Sat Mar 29 11:57:39 PST 2003
>Originator:     Nate Eldredge
>Release:        FreeBSD 4.7-RELEASE-p9 i386
>Organization:
>Environment:
System: FreeBSD mercury 4.7-RELEASE-p9 FreeBSD 4.7-RELEASE-p9 #3: Mon Mar 24 02:21:23 PST 2003 nate@mercury:/big/obj/big/src/sys/MERCURY i386


	
>Description:

Building the lang/expect port fails when it goes to link expectk.

cc -pipe -O -pipe  -o expectk exp_main_tk.o libexpect538.a -L/usr/local/lib -ltk83 -L/usr/local/lib -ltcl83   -L/usr/X11R6/lib -lX11   -lm -Wl,-rpath,/usr/local/lib:/usr/local/lib:/usr/local/lib:/usr/X11R6/lib
libexpect538.a(pty_termios.o): In function `exp_getptymaster':
pty_termios.o(.text+0x170): undefined reference to `openpty'
*** Error code 1

Stop in /big/ports/lang/expect/work/expect-5.38.

It looks to me like it needs to link -lutil.

>How-To-Repeat:
cd /usr/ports/lang/expect
make
>Fix:

	


>Release-Note:
>Audit-Trail:

From: Tilman Linneweh <tilman@arved.de>
To: freebsd-gnats-submit@FreeBSD.org, neldredge@hmc.edu
Cc: jerry@thehutt.org
Subject: Re: ports/50335: lang/expect port build failure: `openpty' unresolved
Date: Sat, 29 Mar 2003 18:22:39 +0100

 --ikeVEW9yuYc//A+q
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Nate, Can you try this patch.
 Jerry, Can i commit it?
 
 regards
 tilman
 
 --ikeVEW9yuYc//A+q
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="expect.diff"
 
 Index: Makefile
 ===================================================================
 RCS file: /home/ncvs/ports/lang/expect/Makefile,v
 retrieving revision 1.60
 diff -u -r1.60 Makefile
 --- Makefile	21 Feb 2003 12:35:01 -0000	1.60
 +++ Makefile	29 Mar 2003 17:18:57 -0000
 @@ -42,6 +42,7 @@
  		--with-tclconfig=${LOCALBASE}/lib/tcl8.3 \
  		--with-tclinclude=${LOCALBASE}/include/tcl8.3 \
  		${TK_CONFIG_ARGS}
 +CONFIGURE_ENV=	LDFLAGS="-lutil"
  
  .if !defined(NO_MAN_INSTALL)
  MAN1=		autoexpect.1 cryptdir.1 decryptdir.1 dislocate.1 \
 
 --ikeVEW9yuYc//A+q--

From: Nate Eldredge <neldredge@hmc.edu>
To: Tilman Linneweh <tilman@arved.de>
Cc: <freebsd-gnats-submit@FreeBSD.org>, <jerry@thehutt.org>
Subject: Re: ports/50335: lang/expect port build failure: `openpty' unresolved
Date: Sat, 29 Mar 2003 10:16:05 -0800 (PST)

 On Sat, 29 Mar 2003, Tilman Linneweh wrote:
 
 > Nate, Can you try this patch.
 
 That fixed it, thanks.
 
 -- 
 
 Nate Eldredge
 neldredge@hmc.edu
 
State-Changed-From-To: open->closed 
State-Changed-By: arved 
State-Changed-When: Sat Mar 29 11:57:28 PST 2003 
State-Changed-Why:  
Patch, committed, thanks for reporting. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50335 
>Unformatted:
