First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

wireshark 3.0.1 and lua on Debian stretch - cmake issues

  • retag add tags

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
alior101's avatar
1
alior101
asked 2019-04-17 09:10:48 +0000
grahamb's avatar
23.8k
grahamb
updated 2019-04-17 09:52:23 +0000
edit flag offensive 0 remove flag close merge delete

Comments

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

Anders's avatar Anders (2019-04-17 10:16:12 +0000) edit

yes I do:

    lior@il-1448:~/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's avatar alior101 (2019-04-17 10:58:32 +0000) edit
add a comment see more comments

1 Answer

0

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

alior101's avatar
1
alior101
answered 2019-04-17 15:08:12 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer