Hi,
I apologize for being slow to test 5.3.5 on FreeBSD. The extra -DLUA_USE_READLINE in the FreeBSD target causes compiler warnings:
cc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -DLUA_USE_READLINE -I/usr/include/edit -c lctype.c -o lctype.o
In file included from lctype.c:13:
In file included from ./lctype.h:10:
In file included from ./lua.h:16:
./luaconf.h:64:9: warning: 'LUA_USE_READLINE' macro redefined [-Wmacro-redefined]
#define LUA_USE_READLINE /* needs some extra libraries */
^
<command line>:3:9: note: previous definition is here
#define LUA_USE_READLINE 1
^
1 warning generated.
cc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -DLUA_USE_READLINE -I/usr/include/edit -c ldebug.c -o ldebug.o
In file included from ldebug.c:17:
In file included from ./lua.h:16:
./luaconf.h:64:9: warning: 'LUA_USE_READLINE' macro redefined [-Wmacro-redefined]
#define LUA_USE_READLINE /* needs some extra libraries */
^
<command line>:3:9: note: previous definition is here
#define LUA_USE_READLINE 1
^
1 warning generated.
cc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -DLUA_USE_READLINE -I/usr/include/edit -c ldo.c -o ldo.o
In file included from ldo.c:17:
In file included from ./lua.h:16:
./luaconf.h:64:9: warning: 'LUA_USE_READLINE' macro redefined [-Wmacro-redefined]
#define LUA_USE_READLINE /* needs some extra libraries */
^
<command line>:3:9: note: previous definition is here
#define LUA_USE_READLINE 1
^
1 warning generated.
cc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -DLUA_USE_READLINE -I/usr/include/edit -c ldump.c -o ldump.o
In file included from ldump.c:15:
In file included from ./lua.h:16:
./luaconf.h:64:9: warning: 'LUA_USE_READLINE' macro redefined [-Wmacro-redefined]
#define LUA_USE_READLINE /* needs some extra libraries */
^
<command line>:3:9: note: previous definition is here
#define LUA_USE_READLINE 1
^
1 warning generated.
cc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -DLUA_USE_READLINE -I/usr/include/edit -c lfunc.c -o lfunc.o
In file included from lfunc.c:15:
In file included from ./lua.h:16:
./luaconf.h:64:9: warning: 'LUA_USE_READLINE' macro redefined [-Wmacro-redefined]
#define LUA_USE_READLINE /* needs some extra libraries */
^
<command line>:3:9: note: previous definition is here
#define LUA_USE_READLINE 1
^
1 warning generated.
cc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -DLUA_USE_READLINE -I/usr/include/edit -c lgc.c -o lgc.o
In file included from lgc.c:15:
In file included from ./lua.h:16:
./luaconf.h:64:9: warning: 'LUA_USE_READLINE' macro redefined [-Wmacro-redefined]
#define LUA_USE_READLINE /* needs some extra libraries */
^
<command line>:3:9: note: previous definition is here
#define LUA_USE_READLINE 1
^
1 warning generated.
cc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -DLUA_USE_READLINE -I/usr/include/edit -c llex.c -o llex.o
In file included from llex.c:16:
In file included from ./lua.h:16:
./luaconf.h:64:9: warning: 'LUA_USE_READLINE' macro redefined [-Wmacro-redefined]
#define LUA_USE_READLINE /* needs some extra libraries */
^
<command line>:3:9: note: previous definition is here
#define LUA_USE_READLINE 1
^
1 warning generated.
cc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -DLUA_USE_READLINE -I/usr/include/edit -c lmem.c -o lmem.o
In file included from lmem.c:15:
In file included from ./lua.h:16:
./luaconf.h:64:9: warning: 'LUA_USE_READLINE' macro redefined [-Wmacro-redefined]
#define LUA_USE_READLINE /* needs some extra libraries */
^
<command line>:3:9: note: previous definition is here
#define LUA_USE_READLINE 1
^
1 warning generated.
My shame is heavy. I have patched it in the FreeBSD port I will submit shortly.