NetBSD Problem Report #47978
From www@NetBSD.org Sun Jun 30 17:23:39 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 2C93C70E0A
for <gnats-bugs@gnats.NetBSD.org>; Sun, 30 Jun 2013 17:23:39 +0000 (UTC)
Message-Id: <20130630172337.6EE95717B9@mollari.NetBSD.org>
Date: Sun, 30 Jun 2013 17:23:37 +0000 (UTC)
From: davshao@gmail.com
Reply-To: davshao@gmail.com
To: gnats-bugs@NetBSD.org
Subject: 6.99.23 expected 'struct pfil_head_t *' but argument is of type 'struct pfil_head_t **'
X-Send-Pr-Version: www-1.0
>Number: 47978
>Category: kern
>Synopsis: 6.99.23 expected 'struct pfil_head_t *' but argument is of type 'struct pfil_head_t **'
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 30 17:25:00 +0000 2013
>Closed-Date: Sun Jun 30 18:46:11 +0000 2013
>Last-Modified: Mon Jul 01 01:00:01 +0000 2013
>Originator: David Shao
>Release: NetBSD 6.99.22 (GENERIC) amd64
>Organization:
>Environment:
NetBSD 6.99.22 (GENERIC) amd64
>Description:
# create pf/pf_if.d
CC=/usr/src/../tools/bin/x86_64--netbsd-gcc /usr/src/../tools/bin/nbmkdep -f pf_if.d -- -I/usr/src/common/include --sysroot=/usr/src/../obj/destdir.amd64 -I/usr/src/sys/dist/pf -I/usr/src/sys -DINET6 -DINET -I/usr/src/common/include -nostdinc -I. -I/usr/src/sys/modules/pf -isystem /usr/src/sys -isystem /usr/src/sys/arch -isystem /usr/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESCR /usr/src/sys/dist/pf/net/pf_if.c
# create pf/pf_ioctl.d
CC=/usr/src/../tools/bin/x86_64--netbsd-gcc /usr/src/../tools/bin/nbmkdep -f pf_ioctl.d -- -I/usr/src/common/include --sysroot=/usr/src/../obj/destdir.amd64 -I/usr/src/sys/dist/pf -I/usr/src/sys -DINET6 -DINET -I/usr/src/common/include -nostdinc -I. -I/usr/src/sys/modules/pf -isystem /usr/src/sys -isystem /usr/src/sys/arch -isystem /usr/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESCR /usr/src/sys/dist/pf/net/pf_ioctl.c
# create pf/.depend
rm -f .depend
CC=/usr/src/../tools/bin/x86_64--netbsd-gcc /usr/src/../tools/bin/nbmkdep -s .o -d -f .depend if_compat.d if_pflog.d pf.d pf_if.d pf_ioctl.d pf_mtag.d pf_norm.d pf_osfp.d pf_ruleset.d pf_table.d tcp_rndiss.d
# compile pf/pf_if.o
/usr/src/../tools/bin/x86_64--netbsd-gcc -O2 -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Werror -ffreestanding -fno-strict-aliasing -Wno-pointer-sign -mno-red-zone -mcmodel=kernel -fno-omit-frame-pointer -I/usr/src/common/include --sysroot=/usr/src/../obj/destdir.amd64 -I/usr/src/sys/dist/pf -I/usr/src/sys -DINET6 -DINET -I/usr/src/common/include -nostdinc -I. -I/usr/src/sys/modules/pf -isystem /usr/src/sys -isystem /usr/src/sys/arch -isystem /usr/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESCR -c /usr/src/sys/dist/pf/net/pf_if.c
cc1: warnings being treated as errors
/usr/src/sys/dist/pf/net/pf_if.c: In function 'pfi_destroy':
/usr/src/sys/dist/pf/net/pf_if.c:148:2: error: passing argument 4 of 'pfil_remove_hook' from incompatible pointer type
/usr/src/sys/net/pfil.h:62:5: note: expected 'struct pfil_head_t *' but argument is of type 'struct pfil_head_t **'
/usr/src/sys/dist/pf/net/pf_if.c:149:2: error: passing argument 4 of 'pfil_remove_hook' from incompatible pointer type
/usr/src/sys/net/pfil.h:62:5: note: expected 'struct pfil_head_t *' but argument is of type 'struct pfil_head_t **'
*** Failed target: pf_if.o
*** Failed command: /usr/src/../tools/bin/x86_64--netbsd-gcc -O2 -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Werror -ffreestanding -fno-strict-aliasing -Wno-pointer-sign -mno-red-zone -mcmodel=kernel -fno-omit-frame-pointer -I/usr/src/common/include --sysroot=/usr/src/../obj/destdir.amd64 -I/usr/src/sys/dist/pf -I/usr/src/sys -DINET6 -DINET -I/usr/src/common/include -nostdinc -I. -I/usr/src/sys/modules/pf -isystem /usr/src/sys -isystem /usr/src/sys/arch -isystem /usr/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESCR -c /usr/src/sys/dist/pf/net/pf_if.c
*** Error code 1
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: kern/47978: 6.99.23 expected 'struct pfil_head_t *' but argument is of type 'struct pfil_head_t **'
Date: Sun, 30 Jun 2013 20:33:11 +0200
This has been fixed, please update and try again.
Martin
State-Changed-From-To: open->closed
State-Changed-By: rmind@NetBSD.org
State-Changed-When: Sun, 30 Jun 2013 18:46:11 +0000
State-Changed-Why:
Already fixed, please update.
From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/47978: 6.99.23 expected 'struct pfil_head_t *' but argument
is of type 'struct pfil_head_t **'
Date: Sun, 30 Jun 2013 17:57:19 -0700
The commit
Subject: CVS commit: src/sys/dist/pf/net
Date: Sun, 30 Jun 2013 17:23:52 +0000
Module Name: src
Committed By: njoly
Date: Sun Jun 30 17:23:52 UTC 2013
allowed me to build 6.99.23 successfully. Thanks!
The reason I filed a bug report instead of waiting is I needed to have
an up-to-date version of NetBSD to rule out certain causes for pkgsrc
build failures involving devel/cmake.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.