view paste/paste.2788 @ 3381:6c1921ed1fd2

<Jafet> echo $\'main() { int x; x = 3; int y; return x + y; }\\n\' > a.c && gcc a.c
author HackBot
date Wed, 07 Aug 2013 00:32:29 +0000
parents 35723677f1c5
children
line wrap: on
line source

cd src && make linux
make[1]: Entering directory `/hackenv/luabuild/lua-5.2.1/src'
make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline -lncurses"
make[2]: Entering directory `/hackenv/luabuild/lua-5.2.1/src'
gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lua.o lua.c
make[2]: Leaving directory `/hackenv/luabuild/lua-5.2.1/src'
make[1]: Leaving directory `/hackenv/luabuild/lua-5.2.1/src'
lua.c:67:31: error: readline/readline.h: No such file or directory
lua.c:68:30: error: readline/history.h: No such file or directory
lua.c: In function ‘pushline’:
lua.c:266: warning: implicit declaration of function ‘readline’
lua.c:266: warning: assignment makes pointer from integer without a cast
lua.c: In function ‘loadline’:
lua.c:296: warning: implicit declaration of function ‘add_history’
make[2]: *** [lua.o] Error 1
make[1]: *** [linux] Error 2
make: *** [linux] Error 2