lang/lua fails to build on 9.0-STABLE amd64 - bug or config issue?

Christer Solskogen christer.solskogen at gmail.com
Tue Jan 24 07:12:35 UTC 2012


On Tue, Jan 24, 2012 at 12:22 AM, Lee Thomas <lthomas_lists at lthomas.net> 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=<something>, try setting it to CFLAGS?=<something>.


-- 
chs,


More information about the freebsd-questions mailing list