From owner-freebsd-questions@FreeBSD.ORG Tue Jan 24 15:26:36 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E3781065670 for ; Tue, 24 Jan 2012 15:26:36 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 9B0108FC1A for ; Tue, 24 Jan 2012 15:26:35 +0000 (UTC) Received: by wgbdr11 with SMTP id dr11so4431193wgb.31 for ; Tue, 24 Jan 2012 07:26:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cxtAEPtOGdSzarnWNgRqicaCeqHy9xF9TUt1Q37WVM0=; b=E9D7AqDK1CTVUIrnZcTotBuqcI//KvKu44ZYv55Mw62lI4lq0R5JVTJawR6b4unO0R AtUlHndk9oU1OT8iT6MKvXxGST8SLt+NDqVzPV3Eg8cGQR62Kij3v4GbI1/8EtF4sxXD BgYL7hdFacljMV+gkgYOs49icFvhO78Lp5HH0= MIME-Version: 1.0 Received: by 10.180.95.131 with SMTP id dk3mr4408427wib.6.1327418794700; Tue, 24 Jan 2012 07:26:34 -0800 (PST) Received: by 10.216.21.193 with HTTP; Tue, 24 Jan 2012 07:26:34 -0800 (PST) In-Reply-To: References: <522f40f6b20c88cc7b17b4967e09cea6@lthomas.net> Date: Tue, 24 Jan 2012 10:26:34 -0500 Message-ID: From: "illoai@gmail.com" To: Christer Solskogen Content-Type: text/plain; charset=ISO-8859-1 Cc: Lee Thomas , FreeBSD Questions Subject: Re: lang/lua fails to build on 9.0-STABLE amd64 - bug or config issue? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2012 15:26:36 -0000 On 24 January 2012 02:12, Christer Solskogen wrote: > On Tue, Jan 24, 2012 at 12:22 AM, Lee Thomas wrote: >> Hello fellow FreeBSD users, >> I ran across an odd issue compiling lua from ports on amd64 with FreeBSD >> 9.0-STABLE, and I'm not sure whether it's a bug or incorrect configuration >> on my part. The lang/lua port throws a linker error, claiming to need -fPIC, >> which is odd because the port Makefile seems to have logic to add that in, >> but somehow the logic seems not to have any effect, at least in my case. >> Making the port Makefile put ${CFLAGS} directly into lua's Makefile (patch >> at the end of this mail) fixes matters for me, but I don't understand the >> port infrastructure well enough to understand whether this patch represents >> a bugfix or a workaround of some local configuration issue. Has anyone run >> into this issue before? If this is a config issue, any hints on what might >> be going on or how to dope it out? >> > > I think I had the same problem about a moth ago. The problem was my > CFLAGS in make.conf. > You probably have CFLAGS=, try setting it to CFLAGS?=. > We note above that: CFLAGS= -O2 -fno-strict-aliasing -pipe & since that tends to be the default anyway (see /usr/share/mk/sys.mk ), you're generally better off leaving it out entirely. -- --