Wireshark-dev: Re: [Wireshark-dev] Unable to build wireshark-1.6.5
From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Thu, 1 Mar 2012 16:16:49 +0100
On Thu, Mar 01, 2012 at 04:02:00PM +0100, Martin Kaiser wrote:
> 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.

The "easiest" way would be to put a services file in the output directory
that is newer than tools/make-services.pl (just guessing here).

ciao
     Jörg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.