After 51 minute of building source, I get 2 warnings and 4 errors. It looks as though its looking for the "guide docs" that don't exist? I'm using the Wireshark source files "as is" and have made no modifications to the build scripts, etc. I did a clean, prepared the sources with no issues, then ran the build. Any help would be greatly appreciated :) Build FAILED.
Time Elapsed 00:51:07.21 asked 27 Sep ‘16, 05:46 Mike_P showing 5 of 23 show 18 more comments |
One Answer:
Now we're getting somewhere:
Looking at line 86 or tools\runlex.sh indicates that it relies on sed, expecting to be using the Cygwin version. I suspect that somewhere on your path there is a non-Cygwin version in Can you look in the CMakeCache.txt file in your build directory for To fix this remove the offending directory from the path, delete CMakeCache.txt and re-run the CMake and build steps. answered 28 Sep '16, 08:06 grahamb ♦ Bullseye!
(28 Sep '16, 08:11) Mike_P Removed from path, cleaned folders, building now......... (28 Sep '16, 08:19) Mike_P SUCCESS! I need ccrypt, gzip, and tar provided by GnuWin32 and with it being in my path, it was using the wrong sed as you pointed out. By adding cygwin\bin to my path in front of GnuWin32, I can now compile Wireshark source with no errors. I cannot thank you enough for all your help!! (28 Sep '16, 08:42) Mike_P Note that I don't recommend adding Cygwin to your path for Wireshark dev, it has caused other issues in the past. What I would recommend is creating a batch file, or PowerShell script if you use that for your shell, to add the Wireshark specific env vars and modify the path to suit and run that when starting a shell for Wireshark dev. Much easier done in Powershell than dos batch though. (28 Sep '16, 08:50) grahamb ♦ I've re-arranged the deckchairs so we now have an answer you can accept. Sorry it took so long to get there, a few red herrings were caught along the way. (28 Sep '16, 08:53) grahamb ♦ |
So after doing searching, I can see that I’m not the only one that had this issue. https://ask.wireshark.org/questions/55094/build-wireshark-failed
In that case, they were not connected to the internet and could not make the download call to pull htmlhelp.xsl from the download site during the build. Or at least that’s what is thought.
I am connected to the internet and can manually download the file. I’ve placed it in my wireshark\docbook directory in the source, edited the custom_layer_chm.xsl to point to the local copy and will attempt a new build to see if it works.
The other question you refer to showed an explicit error in trying to retrieve the file, but that isn’t what you’re seeing.
Your build is complaining about the input to asciidoc, the .xml versions of the .asciidoc sources, that are built by running the a2x executable.
It looks like your build environment possibly isn’t complete, have you installed all the required Cygwin packages?
Checking my cygwin install now.
Have you managed to build Wireshark on this machine before? Are you building from a Git clone or a source tarball or some other means?
First build with source tarball on new pc with new wireshark setup using the online guide https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html. I’ve been building for a few years on another Windows machine using cmake.
Building on Windows from a source tarball isn’t checked by the automatic build systems and isn’t done by most devs either, so doing it that way might have issues that have gone unnoticed.
Building from a git clone is checked and is what most devs do, so is likely to be more successful.
However I don’t “think” the sources of your source files are the problem here.
Checked cygwin. Install was per the recommendations. Rebooted just in case. Cleaned my build directory, prepped source, then msbuild. Same errors.
My path:
system values:
Nothing too drastic there.
I think the issue is either CMake detection of the build tools, or something wrong with a2x in Cygwin.
What’s the output of
C:\Cygwin64\bin\cygcheck -c
? Redirecting it to a text file makes it go much quicker.All was OK. I’d post the list, but its too big for the comments section.
a2x in cygwin? Should I see that in the cygcheck list? I do not.
When a post is too big for a comment, post it as an answer, then convert it to a comment under either the question or an answer as appropriate using the buttons under the answer. For bonus points add the “code” formatting to the list so it displays nicely.
a2x is a symlink to a2x.py, both in the Cygwin bin directory, it doesn’t show up in the cygcheck package output as it’s part of the asciidoc package.
Cygwin Package Information Package Version Status _autorebase 001004-1 OK alternatives 1.3.30c-10 OK asciidoc 8.6.8-1 OK base-cygwin 3.8-1 OK base-files 4.2-4 OK bash 4.3.46-7 OK bc 1.06.95-2 OK biber 2.5-1 OK binutils 2.25-4 OK bison 3.0.4-1 OK build-docbook-catalog 1.5-2 OK bzip2 1.0.6-2 OK ca-certificates 2.9-1 OK ccrypt 1.10-1 OK clisp 2.49-6.20150312hg15611 OK coreutils 8.25-3 OK csih 0.9.9-1 OK cygrunsrv 1.62-1 OK cygutils 1.4.15-2 OK cygwin 2.6.0-1 OK cygwin-devel 2.6.0-1 OK dash 0.5.8-3 OK dblatex 0.3.7-1 OK dejavu-fonts 2.37-1 OK desktop-file-utils 0.23-1 OK dialog 1.3-2.20160828 OK diffutils 3.5-1 OK docbook-xml45 4.5-1 OK docbook-xsl 1.77.1-1 OK dri-drivers 12.0.2-1 OK ed 1.13-1 OK editrights 1.03-1 OK file 5.25-1 OK findutils 4.6.0-1 OK flex 2.6.1-1 OK gamin 0.1.10-15 OK gawk 4.1.4-1 OK getent 2.18.90-4 OK ghostscript 9.19-1 OK ghostscript-fonts-other 6.0-1 OK ghostscript-fonts-std 8.11-1 OK git 2.8.3-1 OK gnupg 1.4.21-1 OK grep 2.25-1 OK groff 1.22.3-1 OK gsettings-desktop-schemas 3.18.1-1 OK gzip 1.8-1 OK hostname 3.13-1 OK ImageMagick 6.9.5.7-1 OK info 6.3-1 OK ipc-utils 1.0-2 OK less 481-1 OK libargp 20110921-3 OK libattr1 2.4.46-1 OK libautotrace3 0.31.1-17 OK libblkid1 2.25.2-2 OK libbz2_1 1.0.6-2 OK libcairo2 1.14.4-1 OK libcom_err2 1.42.12-2 OK libcroco0.6_3 0.6.11-1 OK libcrypt0 1.4-1 OK libcurl4 7.50.3-1 OK libdatrie1 0.2.8-1 OK libdb5.3 5.3.28-1 OK libdialog13 1.3-2.20160828 OK libedit0 20130712-1 OK libEGL1 12.0.2-1 OK libEMF1 1.0.8-1 OK libexpat1 2.2.0-0 OK libfam0 0.1.10-15 OK libffi6 3.2.1-2 OK libfftw3_3 3.3.5-1 OK libfontconfig-common 2.12.1-1 OK libfontconfig1 2.12.1-1 OK libfpx1 1.3.1.4-1 OK libfreetype6 2.6.5-1 OK libgc1 7.2d-2 OK libgcc1 5.4.0-1 OK libgcrypt20 1.6.6-1 OK libgd3 2.2.3-1 OK libgdbm4 1.11-1 OK libgdk_pixbuf2.0_0 2.32.3-1 OK libgfortran3 5.4.0-1 OK libgif4 4.1.6-12 OK libGL1 12.0.2-1 OK libglapi0 12.0.2-1 OK libglib2.0_0 2.46.2-4 OK libgmp10 6.1.1-1 OK libgnutls28 3.3.17-1 OK libgomp1 5.4.0-1 OK libgpg-error0 1.24-1 OK libgraphite2_3 1.3.6-1 OK libgs9 9.19-1 OK libgssapi_krb5_2 1.14.4-1 OK libharfbuzz-icu0 1.2.7-1 OK libharfbuzz0 1.2.7-1 OK libhogweed2 2.7.1-1 OK libICE6 1.0.9-1 OK libiconv 1.14-3 OK libiconv2 1.14-3 OK libicu57 57.1-1 OK libidn11 1.29-1 OK libintl8 0.19.7-1 OK libjasper1 1.900.1-15 OK libjbig2 2.0-14 OK libjpeg8 1.5.0-1 OK libk5crypto3 1.14.4-1 OK libkpathsea6 20160520-3 OK libkrb5_3 1.14.4-1 OK libkrb5support0 1.14.4-1 OK liblapack0 3.6.1-1 OK liblcms2_2 2.6-1 OK libllvm3.8 3.8.1-1 OK liblzma5 5.2.2-1 OK liblzo2_2 2.08-1 OK libMagickC++6_6 6.9.5.7-1 OK libMagickCore6_2 6.9.5.7-1 OK libMagickWand6_2 6.9.5.7-1 OK libming1 0.4.7-2 OK libmpfr4 3.1.4-1 OK libncursesw10 6.0-8.20160917 OK libnetpbm10 10.74.05-1 OK libnettle4 2.7.1-1 OK libnghttp2_14 1.14.0-1 OK libnspr4 4.10.10-1 OK libnss3 3.20.1-1 OK libopenjp2_7 2.1.1-1 OK libopenjpeg1 1.5.2-3 OK libopenldap2_4_2 2.4.42-1 OK libopenssl100 1.0.2j-1 OK libp11-kit0 0.22.1-1 OK libpango1.0_0 1.38.1-1 OK libpaper-common 1.1.24-2 OK libpaper1 1.1.24-2 OK libpcre1 8.39-1 OK libpipeline1 1.4.0-1 OK libpixman1_0 0.34.0-1 OK libplotter2 2.6-5 OK libpng16 1.6.24-1 OK libpoppler62 0.45.0-1 OK libpopt-common 1.16-2 OK libpopt0 1.16-2 OK libpsl5 0.14.0-1 OK libpstoedit0 3.70-2 OK libptexenc1 20160520-3 OK libquadmath0 5.4.0-1 OK libreadline7 6.3.8-1 OK librsvg2_2 2.40.11-1 OK libsasl2_3 2.1.26-9 OK libsigsegv2 2.10-2 OK libSM6 1.2.2-1 OK libsmartcols1 2.25.2-2 OK libsqlite3_0 3.14.1-1 OK libssh2_1 1.7.0-1 OK libssp0 5.4.0-1 OK libstdc++6 5.4.0-1 OK libsynctex1 20160520-3 OK libtasn1_6 4.9-1 OK libtexlua52_5 20160520-3 OK libtexluajit2 20160520-3 OK libthai0 0.1.21-1 OK libtiff6 4.0.6-1 OK libtxc_dxtn 1.0-1.20151227gitf6ec862 OK libunistring2 0.9.6-1 OK libusb0 1.2.6.0-2 OK libuuid-devel 2.25.2-2 OK libuuid1 2.25.2-2 OK libwebp5 0.4.4-1 OK libwebpmux1 0.4.4-1 OK libX11-xcb1 1.6.3-1 OK libX11_6 1.6.3-1 OK libXau6 1.0.8-1 OK libXaw7 1.0.13-1 OK libxcb-glx0 1.12-1 OK libxcb-render0 1.12-1 OK libxcb-shm0 1.12-1 OK libxcb1 1.12-1 OK libXdmcp6 1.1.2-1 OK libXext6 1.3.3-1 OK libXft2 2.3.2-1 OK libXi6 1.7.6-1 OK libxml2 2.9.4-1 OK libXmu6 1.1.2-1 OK libXpm4 3.5.11-1 OK libXrender1 0.9.9-1 OK libxslt 1.1.29-1 OK libXss1 1.2.2-1 OK libXt6 1.1.5-1 OK libyaml0_2 0.1.6-2 OK libzip2 0.11.2-2 OK libzzip0.13 0.13.62-1 OK login 1.11-1 OK m4 1.4.17-2 OK man-db 2.7.5-1 OK mintty 2.6.1-0 OK ncurses 6.0-8.20160917 OK netpbm 10.74.05-1 OK openssh 7.3p1-2 OK openssl 1.0.2j-1 OK p11-kit 0.22.1-1 OK p11-kit-trust 0.22.1-1 OK patch 2.7.4-1 OK patcher 0.0.20040521-1 OK patchutils 0.3.4-1 OK perl 5.22.2-1 OK perl-autovivification 0.16-1 OK perl-Business-ISBN 3.002-1 OK perl-Business-ISBN-Data 20140910.003-1 OK perl-Business-ISMN 1.13-2 OK perl-Business-ISSN 0.91-2 OK perl-Carp 1.38-1 OK perl-Class-Accessor 0.34-1 OK perl-Data-Compare 1.25-2 OK perl-Data-Dump 1.23-1 OK perl-Data-Uniqid 0.12-1 OK perl-Date-Simple 3.03-2 OK perl-Digest-SHA 5.96-2 OK perl-Encode-Locale 1.05-1 OK perl-Error 0.17024-1 OK perl-File-Find-Rule 0.34-1 OK perl-File-HomeDir 1.00-3 OK perl-File-Listing 6.04-5 OK perl-File-Slurp 9999.19-5 OK perl-File-Slurp-Tiny 0.004-1 OK perl-File-Which 1.21-1 OK perl-HTML-Parser 3.72-1 OK perl-HTML-Tagset 3.20-5 OK perl-HTTP-Cookies 6.01-5 OK perl-HTTP-Daemon 6.01-5 OK perl-HTTP-Date 6.02-5 OK perl-HTTP-Message 6.11-1 OK perl-HTTP-Negotiate 6.01-5 OK perl-IO-HTML 1.001-2 OK perl-IO-Socket-SSL 2.038-1 OK perl-IO-String 1.08-5 OK perl-IPC-Cmd 0.96-1 OK perl-IPC-Run3 0.048-2 OK perl-libwww-perl 6.15-1 OK perl-Lingua-Translit 0.26-1 OK perl-List-AllUtils 0.11-1 OK perl-List-SomeUtils 0.53-1 OK perl-List-UtilsBy 0.10-1 OK perl-Log-Log4perl 1.47-1 OK perl-LWP-MediaTypes 6.02-5 OK perl-LWP-Protocol-https 6.06-2 OK perl-MIME-Charset 1.012-2 OK perl-Module-Implementation 0.09-1 OK perl-Module-Load-Conditional 0.68-1 OK perl-Module-Runtime 0.014-1 OK perl-Mojolicious 7.05-1 OK perl-Mozilla-CA 20160104-1 OK perl-Net-HTTP 6.09-1 OK perl-Net-SSLeay 1.78-2 OK perl-Number-Compare 0.03-5 OK perl-Pod-Simple 3.32-1 OK perl-Regexp-Common 2016060801-2 OK perl-Scalar-List-Utils 1.45-1 OK perl-Socket 2.024-2 OK perl-TermReadKey 2.33-1 OK perl-Text-BibTeX 0.76-1 OK perl-Text-Glob 0.10-1 OK perl-Text-Roman 3.5-1 OK perl-TimeDate 2.30-2 OK perl-Tk 804.033-1 OK perl-Tk-Pod 0.9942-1 OK perl-Try-Tiny 0.27-1 OK perl-Unicode-Collate 1.14-1 OK perl-Unicode-LineBreak 2016.003-1 OK perl-Unicode-Normalize 1.25-1 OK perl-URI 1.71-1 OK perl-WWW-RobotRules 6.02-5 OK perl-XML-LibXML 2.0128-1 OK perl-XML-LibXML-Simple 0.97-1 OK perl-XML-LibXSLT 1.95-2 OK perl-XML-NamespaceSupport 1.11-5 OK perl-XML-Parser 2.44-2 OK perl-XML-SAX 0.99-5 OK perl-XML-SAX-Base 1.08-5 OK perl-XML-Writer 0.625-1 OK perl_autorebase 5.22.2-1 OK perl_base 5.22.2-1 OK poppler-data 0.4.7-1 OK preview-latex 11.89-1 OK python 2.7.10-1 OK python-beautifulsoup 3.2.1-1 OK python-cffi 0.9.2-1 OK python-chardet 2.2.1-1 OK python-docutils 0.12-1 OK python-imaging 2.8.2-2 OK python-jinja2 2.7.3-1 OK python-lxml 3.4.4-1 OK python-markupsafe 0.23-1 OK python-numpy 1.9.2-1 OK python-ply 3.6-1 OK python-pycparser 2.12-1 OK python-pygments 2.0.2-1 OK python-setuptools 15.2-1 OK python-simplejson 3.6.5-1 OK python-sphinx 1.2.3-1 OK rebase 4.4.2-1 OK rsync 3.1.2-1 OK ruby 2.2.5-1 OK ruby-json 1.8.2-1 OK ruby-minitest4 4.7.5-1 OK ruby-rake 10.4.2-1 OK ruby-rdoc 4.2.0-1 OK rubygems 2.4.8-1 OK run 1.3.4-2 OK sed 4.2.2-3 OK sgml-common 0.6.3-3 OK shared-mime-info 1.6-3 OK tar 1.28-1 OK tcl 8.5.18-1 OK tcl-tk 8.5.18-1 OK terminfo 6.0-8.20160917 OK texlive 20160520-3 OK texlive-collection-basic 20160520-1 OK texlive-collection-bibtexextra 20160520-1 OK texlive-collection-binextra 20160520-1 OK texlive-collection-fontsrecommended 20160520-1 OK texlive-collection-latex 20160520-1 OK texlive-collection-latexextra 20160520-1 OK texlive-collection-latexrecommended 20160520-1 OK texlive-collection-mathextra 20160520-1 OK texlive-collection-pictures 20160520-1 OK transfig 3.2.5e-2 OK tzdata 2016f-1 OK unzip 6.0-15 OK util-linux 2.25.2-2 OK vim-minimal 7.4.2367-1 OK w3m 0.5.3-3 OK wget 1.18-1 OK which 2.20-2 OK xmlto 0.0.26-1 OK xz 5.2.2-1 OK zlib0 1.2.8-3 OK
That looks OK, do you have a2x and a2x.py in
C:\Cygwin64\bin
?both a2x files are present
And we can rule out the source tarball being the problem. I deleted all traces of it and the directories. Installed Git via chocalety. Cloned source. Prepped source and then msbuild. Same 4 errors.
I’m using python35. In all my previous Wireshark builds the last few years, I used Python27. Should I try Python27 since a2x is python associated?
I’ve recently moved over to Python 35 with no issues, apart from that a2x uses the Cygwin python, not the Windows version and this leads to all the faffing about with the tools\runa2x.sh wrapper on Windows to hide the native python.
You do have a difference in your build environment to mine, in that you have Cygwin on the path. I never do this.
I think we need to dig into the build output to see what’s actually being called. Make sure there are no .xml files in your build docbook directory, re-run the build omitting the
/m
flag, redirecting the output to a file and search in there forGenerating developer-guide.xml
and post the context around there.I removed cygwin from my path just to rule it out.
Deleted *.xml from \docbook directory.
Ran msbuild without /m and redirected output to log file. Logfile shows that unsuccessfulbuild because AlwaysCreate was specified:
That looks quite normal and I can’t see any errors. Do you still get errors in the build?
Re-reading the original question, it seemed to be failing due to missing files in the source directory,
docbook\user-guide-docinfo.xml
anddocbook\developer-guide-docinfo.xml
, and now I don’t see those errors.Has the switch to a git clone fixed that issue?
Did you delete and recreate your build dir and then re-run CMake when you switched to a git clone?
Did a clean then deleted everything in my buildx64 directory. Then did a cmake prep of files. Then msbuild from the buildx64 directory.
Guide error went away but I'm still failing with 4 of the same errors in my original post (ui, dfilter, wiretap, and text2pcap). Again, I have made no modifications to any source files. I got these 4 errors when I used the source tarball and now when I am using Git source clone.
Very confusing, there’s no info there on what actually went wrong.
Please run the build again, omitting the /m flag and redirecting the output to a file and post that back here.
Did a clean, prep, and msbuild w/o m switch:
Still not seeing anything indicating what the error is apart from an unspecified exit of cmd.exe.
Can you try this command line that will rebuild the dfilter project (chosen as it is the smallest), redirecting the output and posting it here again?
Here is the result of the dfilter build you requested: