cd src; make all gcc -I/usr/local/include/lua5.1 -Icompat-5.1r5 -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o compat-5.1r5/compat-5.1.o compat-5.1r5/compat-5.1.c compat-5.1r5/compat-5.1.c:1: warning: -fpic is not supported; -fPIC assumed gcc -I/usr/local/include/lua5.1 -Icompat-5.1r5 -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o luasocket.o luasocket.c luasocket.c:1: warning: -fpic is not supported; -fPIC assumed gcc -I/usr/local/include/lua5.1 -Icompat-5.1r5 -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o timeout.o timeout.c timeout.c:1: warning: -fpic is not supported; -fPIC assumed gcc -I/usr/local/include/lua5.1 -Icompat-5.1r5 -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o buffer.o buffer.c buffer.c:1: warning: -fpic is not supported; -fPIC assumed gcc -I/usr/local/include/lua5.1 -Icompat-5.1r5 -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o io.o io.c io.c:1: warning: -fpic is not supported; -fPIC assumed gcc -I/usr/local/include/lua5.1 -Icompat-5.1r5 -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o auxiliar.o auxiliar.c auxiliar.c:1: warning: -fpic is not supported; -fPIC assumed gcc -I/usr/local/include/lua5.1 -Icompat-5.1r5 -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o options.o options.c options.c:1: warning: -fpic is not supported; -fPIC assumed gcc -I/usr/local/include/lua5.1 -Icompat-5.1r5 -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o inet.o inet.c inet.c:1: warning: -fpic is not supported; -fPIC assumed gcc -I/usr/local/include/lua5.1 -Icompat-5.1r5 -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o tcp.o tcp.c tcp.c:1: warning: -fpic is not supported; -fPIC assumed gcc -I/usr/local/include/lua5.1 -Icompat-5.1r5 -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o udp.o udp.c udp.c:1: warning: -fpic is not supported; -fPIC assumed gcc -I/usr/local/include/lua5.1 -Icompat-5.1r5 -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o except.o except.c except.c:1: warning: -fpic is not supported; -fPIC assumed gcc -I/usr/local/include/lua5.1 -Icompat-5.1r5 -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o select.o select.c select.c:1: warning: -fpic is not supported; -fPIC assumed gcc -I/usr/local/include/lua5.1 -Icompat-5.1r5 -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o usocket.o usocket.c usocket.c:1: warning: -fpic is not supported; -fPIC assumed gcc -O -dynamiclib -fpic -L/usr/local/lib -llua5.1 -o socket.so.2.0.1 compat-5.1r5/compat-5.1.o luasocket.o timeout.o buffer.o io.o auxiliar.o options.o inet.o tcp.o udp.o except.o select.o usocket.o ld: Undefined symbols: _luaL_error _lua_createtable _lua_getfenv _lua_gettable _lua_gettop _lua_insert _lua_pushcclosure _lua_pushlstring _lua_pushstring _lua_pushvalue _lua_remove _lua_settable _lua_settop _lua_type _luaL_checkinteger _luaL_openlib _lua_error _lua_pushboolean _lua_rawset _luaL_argerror _luaL_checknumber _luaL_optlstring _luaL_optnumber _lua_pushnumber _luaL_addlstring _luaL_buffinit _luaL_checklstring _luaL_prepbuffer _luaL_pushresult _lua_isnumber _lua_pushnil _lua_replace _lua_tonumber _luaL_checkudata _luaL_newmetatable _luaL_typerror _lua_getfield _lua_getmetatable _lua_isstring _lua_pushfstring _lua_rawget _lua_setmetatable _lua_toboolean _lua_tolstring _lua_touserdata _lua_typename _lua_newuserdata _lua_pcall _lua_call /usr/bin/libtool: internal link edit command failed make[1]: *** [socket.so.2.0.1] Error 1 make: *** [all] Error 2