Ethereal-users: Re: [Ethereal-users] 'make' error on AIX

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Fri, 10 Aug 2001 00:44:16 -0700
On Thu, Aug 09, 2001 at 05:27:28PM -0400, Ketan P Pancholi wrote:
> I am trying to install the latest ethereal version 0.8.19 on AIX.While
> doing the make its giving me the following error:
> 
> 
>    (cd doc ;  make ../mergecap.1 )
> make: 1254-002 Cannot find a rule to create target ../mergecap.1 from dependencies.
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> Does anyone have any idea what's causing this?

An error building the release tarball, I suspect; the "doc/Makefile.in"
file wasn't rebuilt, for some reason, after the support for Mergecap was
checked in, so the rules for making the Mergecap documentation weren't
in it.  (Note that the "$Id" line in "doc/Makefile.in" says

	# $Id: Makefile.am,v 1.10 2001/05/16 21:32:05 ashokn Exp $

rather than

	# $Id: Makefile.am,v 1.11 2001/07/12 19:59:40 guy Exp $

even though "doc/Makefile.am" has the latter line; "doc/Makefile.in" was
generated from the previous version of "doc/Makefile.am", which didn't
yet have the Mergecap stuff added to it.)

Apply to "doc/Makefile.in" the attached patch (you will need the "patch"
command; if you don't have it and can't get it, you'll have to apply the
patch by hand).

(This is not in any way AIX-specific; it's a universal bug that applies
on all UNIX-flavored OSes.)
*** Makefile.in	Fri Jul 13 06:52:21 2001
--- /usr/local/src/ethereal-0.8.19/doc/Makefile.in	Thu Jul 26 00:11:54 2001
***************
*** 13,19 ****
  # Makefile.am
  # Automake file for Ethereal documentation
  #
! # $Id: Makefile.am,v 1.10 2001/05/16 21:32:05 ashokn Exp $
  #
  # Ethereal - Network traffic analyzer
  # By Gerald Combs <gerald@xxxxxxxx>
--- 13,19 ----
  # Makefile.am
  # Automake file for Ethereal documentation
  #
! # $Id: Makefile.am,v 1.11 2001/07/12 19:59:40 guy Exp $
  #
  # Ethereal - Network traffic analyzer
  # By Gerald Combs <gerald@xxxxxxxx>
***************
*** 139,144 ****
--- 139,146 ----
  ethereal_SUBDIRS = @ethereal_SUBDIRS@
  ethereal_bin = @ethereal_bin@
  ethereal_man = @ethereal_man@
+ mergecap_bin = @mergecap_bin@
+ mergecap_man = @mergecap_man@
  randpkt_bin = @randpkt_bin@
  tethereal_bin = @tethereal_bin@
  tethereal_man = @tethereal_man@
***************
*** 272,277 ****
--- 269,280 ----
  	--center="The Ethereal Network Analyzer" \
  	--release=$(VERSION)			 \
  	> ../editcap.1
+ 
+ ../mergecap.1: mergecap.pod ../config.h
+ 	pod2man $(srcdir)/mergecap.pod                     \
+ 	--center="The Ethereal Network Analyzer" \
+ 	--release=$(VERSION)			 \
+ 	> ../mergecap.1
  
  ../text2pcap.1: text2pcap.pod ../config.h
  	pod2man $(srcdir)/text2pcap.pod                     \