[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Building Lua 5.3 from Lua.org on FreeBSD
- From: Sean Conner <sean@...>
- Date: Sat, 22 Jul 2017 02:50:44 -0400
It was thus said that the Great Russell Haley once stated:
> On Fri, Jul 21, 2017 at 11:28 PM, Sean Conner <sean@conman.org> wrote:
> > It was thus said that the Great Russell Haley once stated:
> >> Hi,
> >>
> >> I've built lua a bunch of times on TrueOS (aka FreeBSD 12-Current)
> >> using the files from git. I usually mangle the Makefile myself to use
> >> clang and make it install where I want to.
> >>
> >> Anyway, I have an arm board with FreeBSD 12-Current on it. I tried
> >> building from the tarball provided by the lua.org website. I modified
> >> the Makefile to use clang because, well, this is FreeBSD! I added the
> >> CC=cc flag from osx target to the freebsd.
> >>
> >> The following is my failed build output is below. For the record,
> >> readline 6.3.8_1 installed with git and git seems to work fine.
> >>
> >>
> >> freebsd@imx6:~/lua/lua-5.3.4/src % make freebsd
> >> make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -lreadline" CC=cc
> >> cc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c lapi.c -o lapi.o
> > ^^^^^^^^^^^^^^
> > Perhaps define LUA_USE_POSIX? Any reason you are using LUA_USE_LINUX on a
> > non-Linux system?
>
> That's what's in the default makefile from the lua site.
Huh ... so it is. Weird.
Anyway, I would try LUA_USE_POSIX (and maybe LUA_USE_DLOPEN for good
measure). From the errors, it seems that size_t (or __size_t) isn't be
defined, and it may be smoething that LUA_USE_LINUX includes (or defines)
that is causing the issue (but that's just a guess, not having TrueOS to
test this on).
-spc