User Tools

Site Tools


wiki:blog:compile_tshark_with_custom_lua

compile tshark with custom lua

Linking with liblua failed.

lua: 5.1.4 wireshark: 1.12.2

1. download lua sources, download wireshark sources; 2. build shared library for lua Edit Makefile fo building liblua.so. You'll have to complete src/Makefile. Name the target, add it to the main list, and add a build rule, like this:

  LUA_SO=liblua.so 
  ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
  $(LUA_SO): $(CORE_O) $(LIB_O)
      $(CC) -o $@ -shared $?

Also in the main Makefile, have the shared library installed along with the static one:

  TO_LIB= liblua.a liblua.so

3. run ./configure for wireshark with special flag for linker:

  LDFLAGS="-ldl" ./configure --disable-wireshark --with-lua=/usr/local/

souces: http://lua-users.org/lists/lua-l/2006-10/msg00091.html

original url: http://blog.c0f3.net/2015/09/compile-tshark-with-custom-lua.html

wiki/blog/compile_tshark_with_custom_lua.txt · Last modified: 2019/01/05 13:04 by kpc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki