Ethereal-users: Re: [Ethereal-users] RE: Problem in compiling ethereal9.7 on HP-UX

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Wed, 6 Nov 2002 15:18:35 -0800
On Wed, Nov 06, 2002 at 12:52:05PM +0530, Mudium, Ravi Kumar (Ravi) wrote:
> /usr/bin/ld: Unsatisfied symbols:
>    htonl (code)

Unfortunately, that's not the GNU loader, so it doesn't say where
"htonl()" was used, but try applying the attached patch to
"packet-netflow.c" (the change is in the current CVS tree, so it'll be
in the next release).
*** packet-netflow.c.orig	Sun Sep 22 09:13:21 2002
--- packet-netflow.c	Wed Nov  6 15:17:01 2002
***************
*** 796,802 ****
  {
  	guint32         gprefix;
  
! 	gprefix = *address & htonl((0xffffffff << (32 - prefix)));
  
  	return (ip_to_str(&gprefix));
  }
--- 796,802 ----
  {
  	guint32         gprefix;
  
! 	gprefix = *address & g_htonl((0xffffffff << (32 - prefix)));
  
  	return (ip_to_str(&gprefix));
  }