NetBSD Problem Report #18889

Received: (qmail 29728 invoked by uid 605); 2 Nov 2002 13:47:22 -0000
Message-Id: <200211021338.OAA16072@hektor.ifoer.tuwien.ac.at>
Date: Sat, 2 Nov 2002 14:38:48 +0100 (CET)
From: root@hektor.ifoer.tuwien.ac.at
Sender: gnats-bugs-owner@netbsd.org
Reply-To: robert@archon.ifoer.tuwien.ac.at
To: gnats-bugs@gnats.netbsd.org
Subject: trafshow will not build under NetBSD 1.4.3
X-Send-Pr-Version: 3.95

>Number:         18889
>Category:       pkg
>Synopsis:       trafshow will not build under NetBSD 1.4.3
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 02 13:48:00 +0000 2002
>Closed-Date:    Wed Jan 08 19:00:25 +0000 2003
>Last-Modified:  Wed Jan 08 19:00:25 +0000 2003
>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:
State-Changed-From-To: open->closed 
State-Changed-By: jmmv 
State-Changed-When: Wed Jan 8 10:56:47 PST 2003 
State-Changed-Why:  
NetBSD 1.4.x reached EOL some months ago. The missing structure that caused 
the problems is present in NetBSD 1.5.x and 1.6. Verified in 1.6 and current. 
Thanks for the PR. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.