From owner-freebsd-questions@FreeBSD.ORG Tue Jan 24 07:12:35 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 01AAA106564A for ; Tue, 24 Jan 2012 07:12:35 +0000 (UTC) (envelope-from christer.solskogen@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 89E438FC15 for ; Tue, 24 Jan 2012 07:12:34 +0000 (UTC) Received: by wgbdr11 with SMTP id dr11so3920820wgb.31 for ; Mon, 23 Jan 2012 23:12:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=G0k0rERKUnybU6jDqIsCbk21RN4jFA7MnySh85cowes=; b=BSPLWglG28VTL1NS0nUBZdFFUFKa2g9rAbHFRb/x2evvcsKlFheXOa3lCJBDuFczSz 6+q4Bom1LQxoVslJ6Qz7nKURMx2IXMPlFqc4q+4XGwv7SPsAMFcv8d8C7S8vinzkUX2x 1KVdXA9775Brvy5Fpe/WxUDK7FaY1GlltgWiM= Received: by 10.180.103.97 with SMTP id fv1mr18684045wib.17.1327389153547; Mon, 23 Jan 2012 23:12:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.142.20 with HTTP; Mon, 23 Jan 2012 23:12:11 -0800 (PST) In-Reply-To: <522f40f6b20c88cc7b17b4967e09cea6@lthomas.net> References: <522f40f6b20c88cc7b17b4967e09cea6@lthomas.net> From: Christer Solskogen Date: Tue, 24 Jan 2012 08:12:11 +0100 Message-ID: To: Lee Thomas Content-Type: text/plain; charset=UTF-8 Cc: 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 07:12:35 -0000 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?=. -- chs,