Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Unable to build wireshark-1.6.5

From: Martin Kaiser <lists@xxxxxxxxx>
Date: Thu, 1 Mar 2012 16:02:00 +0100
Thus wrote Munish Dayal (munish.dayal@xxxxxxxxxxx):

> I am unable to compile wireshark-1.6.5 source code due to the following error.
> Build environment is Linux RHEL5. The compilation machine is not connected to the internet.

> Is there a way to bypass this step ?

> /usr/bin/perl ./tools/make-services.pl
> starting to fetch http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt ...
> request for http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt failed with result code:500 at ./tools/make-services.pl line 98.
> gmake[2]: *** [services] Error 9

I can't test this now, but could we just ignore the error from the make
target and continue anyway? IIRC this can be done (at least for gnu
make) by prefixing the rule with -

diff --git a/Makefile.am b/Makefile.am
index f79f5c4..ea3fa97 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -571,7 +571,7 @@ ps.c: print.ps $(srcdir)/tools/rdps.py
        $(PYTHON) $(srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
 
 services: tools/make-services.pl
-       $(PERL) $(srcdir)/tools/make-services.pl
+       -$(PERL) $(srcdir)/tools/make-services.pl
 
 CLEANFILES =           \
        *~              \

We'd need something similar for CMake and nmake, I don't know how that
works.