From owner-freebsd-questions@FreeBSD.ORG Tue Apr 1 03:05:02 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44F3137B401 for ; Tue, 1 Apr 2003 03:05:02 -0800 (PST) Received: from relay1.ntu-kpi.kiev.ua (oberon.ntu-kpi.kiev.ua [195.245.194.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BB6943FCB for ; Tue, 1 Apr 2003 03:04:57 -0800 (PST) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: by relay1.ntu-kpi.kiev.ua (Postfix, from userid 426) id 459C719CBF; Tue, 1 Apr 2003 14:04:49 +0300 (EEST) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id 37DC319A40; Tue, 1 Apr 2003 14:04:34 +0300 (EEST) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.6/8.11.6) with ESMTP id h31B9JA03641; Tue, 1 Apr 2003 14:09:19 +0300 (EEST) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (localhost [127.0.0.1]) h31B4J8n000279; Tue, 1 Apr 2003 14:04:19 +0300 (EEST) (envelope-from simon@pm514-9.comsys.ntu-kpi.kiev.ua) Received: (from simon@localhost)h31B4C67000278; Tue, 1 Apr 2003 14:04:12 +0300 (EEST) Date: Tue, 1 Apr 2003 14:04:12 +0300 (EEST) Message-Id: <200304011104.h31B4C67000278@pm514-9.comsys.ntu-kpi.kiev.ua> From: Andrey Simonenko To: Jim Arnold In-Reply-To: X-Newsgroups: lucky.freebsd.questions User-Agent: tin/1.5.12-20020427 ("Sugar") (UNIX) (FreeBSD/4.7-STABLE (i386)) cc: questions@freebsd.org Subject: Re: making expect without X11 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 11:05:02 -0000 On Sun, 30 Mar 2003 16:34:44 +0000 (UTC) in lucky.freebsd.questions, Jim Arnold wrote: > How do I compile expect without having X windows installed? > > If I use: make WITHOUT_X11=yes if bombs out with the message below: > I'm sorry, I made mistake in previous my answer, your command is correct as well. > ct.o shared/exp_event.o shared/exp_chan.o shared/Dbg.o > -Wl,-rpath,/usr/local/lib -L/usr/local/lib -ltcl83 -lm -lc > /usr/libexec/elf/ld: unrecognized option '-Wl,-rpath,/usr/local/lib' > /usr/libexec/elf/ld: use the --help option for usage information > *** Error code 1 > > Stop in /usr/ports/lang/expect/work/expect-5.38. > *** Error code 1 > > Stop in /usr/ports/lang/expect. > > Please CC any responses to me as I cannot subscribe to the list. On my ports collection I also can't build expect. It seems that ld(1) doesn't understand -Wl option, actually this is a option of gcc(1) for the linker. Check output of "ld --help" and man page for gcc. When "make WITHOUT_X11=yes build" reaches that error message on my system, I modified expect's Makefile (in the work directory) and successfully build expect from ports collection. Modification: change "-Wl,-rpath,/usr/local/lib" to "-rpath /usr/local/lib" in expect's Makefile. Right now I can run expect, but more tests should be done if above mentioned modification is correct. I suppose that this a bug and appropriate PR should be sent to FreeBSD.