Package Details: wireshark-git 51933.b2689ab-1

Package Base: wireshark-git
Description: A free network protocol analyzer for Unix/Linux. GIT version
Upstream URL: http://www.wireshark.org/
Category: none
Licenses: GPL2
Conflicts: wireshark-gtk
Provides: wireshark
Replaces: ethereal
Submitter: drevilt
Maintainer: drevilt
Last Packager: drevilt
Votes: 3
First Submitted: 2014-07-11 19:05
Last Updated: 2014-07-11 19:05

Required by (0)

Sources

Latest Comments

Comment by Lekensteyn

2015-03-02 13:36

For faster builds, I can recommend you cmake+ninja. This one is based on the wireshark packages:
https://github.com/Lekensteyn/aur/tree/master/wireshark-git

Comment by dx

2015-02-28 18:30

This somehow fails to detect my lua.h, and doesn't like that i rebuild without deleting src/build first. Also the pkgbuild in [community] looks much better, i suggest copying that one.

Comment by aya

2014-10-11 16:24

@thewooster
I can see that the problem is with /../tools/html2text.py utility.
Try to run it and you will get the same error.
So this error should probably be reported upstream.

Comment by thewooster

2014-09-09 17:47

Have both python2 and python3 installed. Changed PKGBUILD as noted by travis. Still getting this error, and cannot finish build. Any ideas?


Making all in help
make[2]: Entering directory '/tmp/builds/wireshark-git/src/wireshark/help'
GEN faq.txt
File "./../tools/html2text.py", line 332
self.o("][" + `a['count']` + "]")
^
SyntaxError: invalid syntax
Makefile:684: recipe for target 'faq.txt' failed
make[2]: *** [faq.txt] Error 1
make[2]: Leaving directory '/tmp/builds/wireshark-git/src/wireshark/help'
Makefile:3458: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/builds/wireshark-git/src/wireshark'
Makefile:2058: recipe for target 'all' failed
make: *** [all] Error 2

Comment by JSpaces

2014-04-26 20:27

Wireshark has switched to git on January 28, 2014.

Comment by travis.hegner

2014-01-03 21:50

With the default switched to python3, this PKGBUILD no longer builds. A python2 only script is called and should be explicitly ran with python2. Edit the PKGBUILD and change the line:

/usr/lib/python2.7/Tools/scripts/reindent.py $srcdir/$_svnmod/tools/ncp2222.py

to:

/usr/bin/python2 /usr/lib/python2.7/Tools/scripts/reindent.py $srcdir/$_svnmod/tools/ncp2222.py

for a clean build (after getting libsmi installed anyway).

Thanks,

Travis Hegner

Comment by ogasser

2013-06-27 09:38

Please remove the -j2 from the make commands in the PKGBUILD files. This a system-specific option that should be stored in /etc/makepkg.conf.

Comment by alexbrinister

2013-03-18 23:43

Fixed help/faq.py bug upstream

Comment by alexbrinister

2013-03-18 00:14

nixscripter: Fixed to compile with lua 5.2

Comment by nixscripter

2013-02-13 01:43

I tried building it just now, after the main tree went to LUA to 5.2. It seems the auto detection in cmake for 5.1 is incomplete. I get all sorts of weird errors when I try to link things against LUA.

But if I change the package dependency to "lua51" and patch the build() function like this:

- cmake -DCMAKE_INSTALL_PREFIX=/usr
+ cmake -DLUA_INCLUDE_DIR=/usr/include/lua5.1 -DCMAKE_INSTALL_PREFIX=/usr

That fixes them.

Comment by jeffcasavant

2012-12-10 23:15

Hey - just FYI -
heimdal is no longer available.

There is a similar package on the AUR called heimdal-aur - this may provide what you're looking for.

Thanks,
Jeff

Anonymous comment

2012-05-01 15:19

[ 14%] Building C object ui/gtk/CMakeFiles/gtkui.dir/sip_stat.c.o
[ 15%] Building C object ui/gtk/CMakeFiles/gtkui.dir/smb_stat.c.o
[ 15%] Building C object ui/gtk/CMakeFiles/gtkui.dir/smb2_stat.c.o
[ 15%] Building C object ui/gtk/CMakeFiles/gtkui.dir/stats_tree_stat.c.o
[ 15%] Building C object ui/gtk/CMakeFiles/gtkui.dir/tcp_graph.c.o
[ 15%] Building C object ui/gtk/CMakeFiles/gtkui.dir/voip_calls_dlg.c.o
[ 15%] Building C object ui/gtk/CMakeFiles/gtkui.dir/wlan_stat_dlg.c.o
[ 15%] Building C object ui/gtk/CMakeFiles/gtkui.dir/wsp_stat.c.o
[ 15%] Building C object ui/gtk/CMakeFiles/gtkui.dir/wireshark-tap-register.c.o
Linking C static library ../../lib/libgtkui.a
[ 15%] Built target gtkui
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

I figured since it's an SVN build it might be a bad update, but the same thing happened a month ago. No idea what to do.

Comment by rickeyski

2011-11-14 06:59

One more go around, I had a new batch of build trouble and here is the fix if it helps anyone else. Not the prettiest but it got the job done, http://pastebin.com/VgvTtppr

Comment by rickeyski

2011-07-03 19:03

Hey, I had some problems with the pkgbuild still including python3.2mu, so I changed the pkgbuild to use cmake and it builds successfully for me. I posted it here if it helps anyone. http://pastebin.com/PT4Y3uud

Comment by ptchinster

2011-05-21 17:13

And after reading about gcc for a little while i present to you: a fixed PKGBUILD. :-P

Comment by ptchinster

2011-05-21 03:23

This is the svn package.

If you have a build() that works better, consider showing us?

Comment by ploxiln

2011-05-20 17:57

another btw, I had great results taking the PKGBUILD of the latest wireshark in extra, and just changing pkgver to 1.6.0rc1

Comment by ploxiln

2011-05-18 23:35

So if you consider python a makedepend, yeah, it works. Not a big deal I guess.
By the way, I just built it again, and had to further add "-Wno-error=old-style-definition" to CFLAGS.

Comment by ptchinster

2011-05-10 16:41

The current PKGBUILD worked for me, and i have both pythons installed.

Comment by ptchinster

2011-05-10 16:17

I find that it builds easily if you have python2 OR python installed, but get both installed and theres lots of problems :-\

Im debating just having a different build based on testing for the existence of python3 and python2, but its finals week for this grad student... so not this week!

Comment by ploxiln

2011-05-10 04:16

I just tried to build wireshark again today... because of gcc 4.6, I had to add CFLAGS=-Wno-error=unused-but-set-variable and because I don't have python (3) installed on this computer I also had to uncomment and tweak the find/sed line to become:
find . -type f -name '*.py' -exec sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' {} \;

Comment by ptchinster

2011-04-14 17:11

It fails for me with:
mv -f .deps/wireshark-u3.Tpo .deps/wireshark-u3.Po
rm: cannot remove `wireshark': Is a directory
make[2]: *** [wireshark] Error 1
make[2]: Leaving directory `/tmp/wireshark-svn/src/wireshark-build'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/wireshark-svn/src/wireshark-build'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

Comment by ploxiln

2011-04-14 03:22

Some makefiles end up using /usr/bin/python where they need /usr/bin/python2... I fixed it by adding PYTHON=/usr/bin/python2 to the ./configure and the first make.

Comment by ptchinster

2010-12-11 03:13

Fixed!

Comment by ptchinster

2010-11-17 18:20

You need to have it depend on python2 and then set the shebang line to python2 instead of python

Comment by ptchinster

2010-11-16 01:01

Checked out revision 34896.
==> SVN checkout done or server timeout
==> Starting make...
File "<string>", line 1
print 'Checking for python.'
^
SyntaxError: invalid syntax

You must have Python in order to compile Wireshark.
Download the appropriate package for your distribution/OS,
or get the source tarball at http://www.python.org/
Aborting...
==> ERROR: Makepkg was unable to build wireshark-svn.

Anonymous comment

2010-11-08 14:18

This won't build for me anymore. Seems to require the older python version:

Checked out revision 34803.
==> SVN checkout done or server timeout
==> Starting make...
File "<string>", line 1
print 'Checking for python.'
^
SyntaxError: invalid syntax

You must have Python in order to compile Wireshark.
Download the appropriate package for your distribution/OS,
or get the source tarball at http://www.python.org/
Aborting...