Hi I'm trying to build wireshark lua support on debian stretch. Initially cmake failed to find Lua. After adding a set (LUA_INCLUDE_DIR "/usr/include/lua5.2/") set(LUA_LIBRARY "/usr/lib/x86_64-linux-gnu/") set(LUA_DLL "liblua5.2.so.0.0.0") just to "help" it a little bit I got the below... Any clue what's wrong ? Thanks!
[ 94%] Linking C executable run/tshark
run/libwireshark.so.0.0.0: undefined reference to lua_replace'
run/libwireshark.so.0.0.0: undefined reference to
lua_remove'
run/libwireshark.so.0.0.0: undefined reference to lua_insert'
collect2: error: ld returned 1 exit status
CMakeFiles/tshark.dir/build.make:995: recipe for target 'run/tshark' failed
make[2]: *** [run/tshark] Error 1
CMakeFiles/Makefile2:679: recipe for target 'CMakeFiles/tshark.dir/all' failed
make[1]: *** [CMakeFiles/tshark.dir/all] Error 2
run/libwireshark.so.0.0.0: undefined reference to
lua_remove'
run/libwireshark.so.0.0.0: undefined reference to lua_insert'
run/libwireshark.so.0.0.0: undefined reference to
lua_replace'
collect2: error: ld returned 1 exit status
CMakeFiles/wireshark.dir/build.make:596: recipe for target 'run/wireshark' failed
make[2]: * [run/wireshark] Error 1
CMakeFiles/Makefile2:726: recipe for target 'CMakeFiles/wireshark.dir/all' failed