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
Search Criteria
Package Details: wireshark-git 51933.b2689ab-1
Package Actions
| Package Base: | wireshark-git |
|---|---|
| Description: | A free network protocol analyzer for Unix/Linux. GIT version |
| Upstream URL: | http://www.wireshark.org/ |
| Category: | none |
| Licenses: | |
| Conflicts: | |
| Provides: | |
| Replaces: | |
| Submitter: | drevilt |
| Maintainer: | drevilt |
| Last Packager: | drevilt |
| Votes: | 3 |
| First Submitted: | 2014-07-11 19:05 |
| Last Updated: | 2014-07-11 19:05 |
Latest Comments
Comment by Lekensteyn
Comment by dx
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
@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
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
Wireshark has switched to git on January 28, 2014.
Comment by travis.hegner
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
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
Fixed help/faq.py bug upstream
Comment by alexbrinister
nixscripter: Fixed to compile with lua 5.2
Comment by nixscripter
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
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
[ 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
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
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
And after reading about gcc for a little while i present to you: a fixed PKGBUILD. :-P
Comment by ptchinster
This is the svn package.
If you have a build() that works better, consider showing us?
Comment by ploxiln
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
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
The current PKGBUILD worked for me, and i have both pythons installed.
Comment by ptchinster
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
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
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
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
Fixed!
Comment by ptchinster
You need to have it depend on python2 and then set the shebang line to python2 instead of python
Comment by ptchinster
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
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...