Subject: pkg/18889: trafshow will not build under NetBSD 1.4.3
To: None <gnats-bugs@gnats.netbsd.org>
From: None <root@hektor.ifoer.tuwien.ac.at>
List: netbsd-bugs
Date: 11/02/2002 14:38:48
>Number: 18889
>Category: pkg
>Synopsis: trafshow will not build under NetBSD 1.4.3
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Nov 02 05:48:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Robert Vargason (robert@archon.ifoer.tuwien.ac.at)
>Release: 1.4.3
>Organization:
>Environment:
System: NetBSD hektor 1.4.3 NetBSD 1.4.3 (HEKTOR) #0: Tue Jan 9 02:03:40 CET 2001 root@hektor:/usr/src/sys/arch/i386/compile/HEKTOR i386
>Description:
pkgsrc/net/trafshow does not build under NetBSd 1.4.3
===> Building for trafshow-3.1nb1
cc -O2 -DHAVE_CONFIG_H -I. -c trafshow.c
In file included from trafshow.c:37:
trafshow.h:74: field `src' has incomplete type
trafshow.h:75: field `dst' has incomplete type
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
>How-To-Repeat:
make install (in /usr/pkgsrc/net/trafshow on a NetBSD 1.4.3 system)
>Fix:
these lines (taken from /usr/include/sys/socket.h from a NetBSD 1.5.2
system) inserted into /usr/pkgsrc/net/trafshow/work/trafshow-3.1/trafshow.h
solved the problem. but I do not know if this is the correct sollution.
#define _SS_MAXSIZE 128
#define _SS_ALIGNSIZE (sizeof(int64_t))
#define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(u_char) * 2)
#define _SS_PAD2SIZE (_SS_MAXSIZE - sizeof(u_char) * 2 - \
struct sockaddr_storage {
u_char ss_len; /* address length */
u_char ss_family; /* address family */
char __ss_pad1[_SS_PAD1SIZE];
int64_t __ss_align; /* force desired structure storage alignment */
char __ss_pad2[_SS_PAD2SIZE];
};
>Release-Note:
>Audit-Trail:
>Unformatted: