This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

compiling wireshark with lua enabled

0

Hi,

I want to compile wireshark 1.8.0 version with lua enabled on centos 6.2.

Here are the steps that I tried, 1) downloaded and extracted the wireshark source.

2) ./configure --with-lua=/usr/

3) make

4) created and rpm and installed it in the same system

when i launch wireshark in about me section it says compiled without lua, although the .configure command output did say configured with lua library = yes. I have properly installed lua-devel 5.1 package installed in system.

Any suggestions or documentation that i can follow to compile lua on wireshark and how do I test it properly?

Thx

asked 28 Dec '12, 08:51

kerolkarper's gravatar image

kerolkarper
1224
accept rate: 0%

edited 28 Dec '12, 14:57


2 Answers:

1

2) ./configure --with-lua=/usr/

That looks strange. You better leave the path and let the build system find the correct path for lua.

./configure --with-lua

Can you show the output of your compiled wireshark?

./wireshark -v

Regards
Kurt

answered 28 Dec '12, 13:30

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

Now i configured it with command ./configure --with-lua

and here is the -v output

[[email protected] wireshark-1.8.0rc2]# ./wireshark -v wireshark 1.8.0rc2 (SVN Rev Unknown from unknown)

Copyright 1998-2012 Gerald Combs [email protected] and contributors. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with GTK+ 2.18.9, with Cairo 1.8.8, with Pango 1.28.1, with GLib 2.22.5, with libpcap, with libz 1.2.3, without POSIX capabilities, without SMI, without c-ares, without ADNS, without Lua, without Python, without GnuTLS, without Gcrypt, with MIT Kerberos, without GeoIP, without PortAudio, with AirPcap.

Running on Linux 2.6.32-220.el6.x86_64, with locale en_US.UTF-8, with libpcap version 1.3.0, with libz 1.2.3, without AirPcap.

Built using gcc 4.4.6 20120305 (Red Hat 4.4.6-4). [[email protected] wireshark-1.8.0rc2]#

(28 Dec '12, 14:43) kerolkarper

Why 1.8.0rc2? That's a release candidate leading up to 1.8.0. the lates bug fix release is 1.8.4

(28 Dec '12, 16:59) Anders ♦

can you please post the output of the following commands.

grep LUA config.status
yum list | grep -i lua | grep -i installed

And yes: why 1.8.0RC2?

(28 Dec '12, 17:33) Kurt Knochner ♦

[[email protected] wireshark-1.8.0rc2]# grep LUA config.status

S["HAVE_LIBLUA_FALSE"]="#"

S["HAVE_LIBLUA_TRUE"]=""

S["LUA_INCLUDES"]=""

S["LUA_LIBS"]="-llua -lm"

D["HAVE_LUA_H"]=" 1"

D["HAVE_LUALIB_H"]=" 1"

D["HAVE_LUA_5_1"]=" 1"

[[email protected] wireshark-1.8.0rc2]#

i just randomly picked up source code, let me try on 1.8.4 version if that makes any difference.

(31 Dec '12, 07:51) kerolkarper

[[email protected] wireshark-1.8.0rc2]# yum install lua lua-devel Loaded plugins: fastestmirror, refresh-packagekit, rhnplugin, security Loading mirror speeds from cached hostfile Setting up Install Process Package lua-5.1.4-4.1.el6.x86_64 already installed and latest version Package lua-devel-5.1.4-4.1.el6.x86_64 already installed and latest version Nothing to do [[email protected] wireshark-1.8.0rc2]#

(31 Dec '12, 07:52) kerolkarper

i just randomly picked up source code, let me try on 1.8.4 version if that makes any difference.

so, does it make any difference?

(31 Dec '12, 08:14) Kurt Knochner ♦

It works 'out of the box' on CentOS 6.2 with the sources of Wireshark 1.8.0. The only packages I had to install: lua-devel and libpcap-devel.

[[email protected] wireshark-1.8.0]# ./wireshark -v
wireshark 1.8.0 (SVN Rev Unknown from unknown)

Copyright 1998-2012 Gerald Combs <[email protected]<a href="http://wireshark.org">wireshark.org> and contributors. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (32-bit) with GTK+ 2.18.9, with Cairo 1.8.8, with Pango 1.28.1, with GLib 2.22.5, with libpcap, with libz 1.2.3, without POSIX capabilities, without SMI, without c-ares, without ADNS, with Lua 5.1, without Python, with GnuTLS 2.8.5, with Gcrypt 1.4.5, with MIT Kerberos, without GeoIP, without PortAudio, with AirPcap.

Running on Linux 2.6.32-220.el6.i686, with locale en_US.utf8, with libpcap version 1.0.0, with libz 1.2.3, GnuTLS 2.8.5, Gcrypt 1.4.5, without AirPcap.

Built using gcc 4.4.6 20110731 (Red Hat 4.4.6-3).

(31 Dec ‘12, 09:06) Kurt Knochner ♦

worked with 1.8.0 version . Thanks Kurt and Anders. Appreciate it.

(02 Jan ‘13, 07:25) kerolkarper
showing 5 of 8 show 3 more comments

1

Any arguments you manually give 'configure' when building an RPM are not used when building the RPM. The RPM .spec file has its own 'configure' line which controls what actually goes into the RPM.

(Remember that RPMs are designed to build from un-modified source and a .spec file; the .spec file contains everything that controls the actual build.)

answered 02 Jan '13, 08:21

JeffMorriss's gravatar image

JeffMorriss ♦
6.2k572
accept rate: 27%