Ask Your Question
0

wireshark 3.0.1 and lua on Debian stretch - cmake issues

asked 2019-04-17 09:10:48 +0000

alior101 gravatar image

updated 2019-04-17 09:52:23 +0000

grahamb gravatar image

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
edit retag flag offensive close merge delete

Comments

Have you tried running tools/debian_setup.sh? To install required packages. Do you have liblua5.2-dev?

Anders gravatar imageAnders ( 2019-04-17 10:16:12 +0000 )edit

yes I do:

    [email protected]:~/Tools/wireshark$ dpkg -l | grep lua
ii  liblua5.2-0:amd64                                                5.2.4-1.1+b2                                amd64        Shared library for the Lua interpreter version 5.2
ii  liblua5.2-dev:amd64                                              5.2.4-1.1+b2                                amd64        Development files for the Lua language version 5.2
ii  liblua5.3-0:amd64                                                5.3.3-1                                     amd64        Shared library for the Lua interpreter version 5.3
ii  libtexlua52:amd64                                                2016.20160513.41080.dfsg-2+deb9u1           amd64        TeX Live: Lua 5.2, modified for use with LuaTeX
ii  libtexluajit2:amd64                                              2016.20160513.41080.dfsg-2+deb9u1           amd64        TeX Live: LuaJIT, modified for use with LuaJITTeX
ii  lua-bitop:amd64                                                  1.0.2-4                                     amd64        fast bit manipulation library for the Lua language
ii  lua-expat:amd64                                                  1.3.0-4                                     amd64        libexpat bindings for the Lua language
ii  lua-json                                                         1.3.3-2                                     all          JSON decoder/encoder for Lua
ii  lua-lpeg:amd64                                                   1.0.0-1                                     amd64        LPeg library ...
(more)
alior101 gravatar imagealior101 ( 2019-04-17 10:58:32 +0000 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-04-17 15:08:12 +0000

alior101 gravatar image

I retried in a clean VM and it compiled successfully ... It must be something bad in my packages... Closing the issue ..

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-04-17 09:10:48 +0000

Seen: 47 times

Last updated: Apr 17