From owner-freebsd-bugs@FreeBSD.ORG Mon Jul 4 14:10:10 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB63C1065675 for ; Mon, 4 Jul 2011 14:10:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B1FF38FC1C for ; Mon, 4 Jul 2011 14:10:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p64EAAga009578 for ; Mon, 4 Jul 2011 14:10:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p64EAAfq009577; Mon, 4 Jul 2011 14:10:10 GMT (envelope-from gnats) Resent-Date: Mon, 4 Jul 2011 14:10:10 GMT Resent-Message-Id: <201107041410.p64EAAfq009577@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Robert Millan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACC711065696 for ; Mon, 4 Jul 2011 14:05:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id B57108FC1E for ; Mon, 4 Jul 2011 14:05:16 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p64E5G4x045683 for ; Mon, 4 Jul 2011 14:05:16 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p64E5GwN045682; Mon, 4 Jul 2011 14:05:16 GMT (envelope-from nobody) Message-Id: <201107041405.p64E5GwN045682@red.freebsd.org> Date: Mon, 4 Jul 2011 14:05:16 GMT From: Robert Millan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/158636: if_pfsync.c fails to build when NBPFILTER == 0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2011 14:10:10 -0000 >Number: 158636 >Category: misc >Synopsis: if_pfsync.c fails to build when NBPFILTER == 0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 04 14:10:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Robert Millan >Release: Debian GNU/kFreeBSD "sid" >Organization: >Environment: >Description: if_pfsync.c fails to build when NBPFILTER == 0. It seems that variable 'm' in pfsync_sendout() is only declared when NBPFILTER > 0, but later it is used unconditionally. gcc-4.6 -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=10000 --param large-function-growth=100000 --param max-inline-insns-single=10000 -fno-pic -mno-abicalls -G0 -march=mips32 -mabi=32 -D__mips_o32 -msoft-float -ffreestanding ../../../contrib/pf/net/if_pfsync.c -I../../../contrib/pf In file included from ../../../net/if_var.h:82:0, from ../../../net/if.h:472, from ../../../contrib/pf/net/if_pfsync.c:102: ./../../sys/buf_ring.h: In function 'buf_ring_dequeue_sc': ./../../sys/buf_ring.h:189:33: warning: variable 'cons_next_next' set but not used [-Wunused-but-set-variable] ./../../contrib/pf/net/if_pfsync.c: In function 'pfsync_sendout': ./../../contrib/pf/net/if_pfsync.c:2163:2: error: 'm' undeclared (first use in this function) ./../../contrib/pf/net/if_pfsync.c:2163:2: note: each undeclared identifier is reported only once for each function it appears in *** Error code 1 Full build log available in: https://buildd.debian.org/status/fetch.php?pkg=kfreebsd-9&arch=mipsel&ver=9.0~svn223728-1&stamp=1309717094 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: