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 edited 28 Dec '12, 14:57 |
2 Answers:
That looks strange. You better leave the path and let the build system find the correct path for lua.
Can you show the output of your compiled wireshark?
Regards answered 28 Dec '12, 13:30 Kurt Knochner ♦ showing 5 of 8 show 3 more comments |
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 ♦ |
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]#
Why 1.8.0rc2? That's a release candidate leading up to 1.8.0. the lates bug fix release is 1.8.4
can you please post the output of the following commands.
And yes: why 1.8.0RC2?
[[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.
[[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]#
so, does it make any difference?
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.
worked with 1.8.0 version . Thanks Kurt and Anders. Appreciate it.