NetBSD Problem Report #51559

From www@NetBSD.org  Mon Oct 17 01:24:23 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 834247A2F4
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 17 Oct 2016 01:24:23 +0000 (UTC)
Message-Id: <20161017012422.290F57A2F6@mollari.NetBSD.org>
Date: Mon, 17 Oct 2016 01:24:22 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: net/wireshark build fails on NetBSD/macppc-7.99.39
X-Send-Pr-Version: www-1.0

>Number:         51559
>Category:       pkg
>Synopsis:       net/wireshark build fails on NetBSD/macppc-7.99.39
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 17 01:25:00 +0000 2016
>Last-Modified:  Mon Oct 17 09:15:00 +0000 2016
>Originator:     John D. Baker
>Release:        NetBSD/macppc-7.99.39, pkgsrc-2016Q3
>Organization:
>Environment:
NetBSD ed 7.99.39 NetBSD 7.99.39 (ED) #2: Fri Sep 30 18:46:03 CDT 2016  sysop@dpe2850b.technoskunk.fur:/d0/build/current/obj/macppc/sys/arch/macppc/compile/ED macppc

>Description:
Attempting to build "net/wireshark" on NetBSD/macppc-current fails
as follows:

[...]
  CC       packet-mux27010.lo
In file included from /usr/include/macppc/frame.h:3:0,
                 from /usr/include/powerpc/signal.h:42,
                 from /usr/include/macppc/signal.h:3,
                 from /usr/include/sys/siginfo.h:35,
                 from /usr/include/sys/signal.h:112,
                 from /usr/include/signal.h:45,
                 from /usr/pkg/include/glib/glib-2.0/glib/gbacktrace.h:36,
                 from /usr/pkg/include/glib/glib-2.0/glib.h:34,
                 from ../../epan/proto.h:40,
                 from ../../epan/packet.h:26,
                 from packet-mux27010.c:37:
packet-mux27010.c: In function 'dissect_mux27010':
packet-mux27010.c:764:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
     proto_item *ti, *tf, *tf_extended_header, *tf_addr, *tf_ctr;
                                                          ^
packet-mux27010.c:862:13: error: 'tf_ureg' undeclared (first use in this function)
             tf_ctr = proto_tree_add_item(field_tree, hf_mux27010_controlchannelframetype, tvb, offset, 1, ENC_BIG_ENDIAN);
             ^
packet-mux27010.c:862:13: note: each undeclared identifier is reported only once for each function it appears in
Makefile:4326: recipe for target 'packet-mux27010.lo' failed
gmake[6]: *** [packet-mux27010.lo] Error 1
gmake[6]: Leaving directory '/var/tmp/pkgsrc/net/wireshark/work/wireshark-2.2.0/epan/dissectors'
Makefile:4374: recipe for target 'all-recursive' failed
gmake[5]: *** [all-recursive] Error 1
gmake[5]: Leaving directory '/var/tmp/pkgsrc/net/wireshark/work/wireshark-2.2.0/epan/dissectors'
Makefile:2921: recipe for target 'all' failed
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory '/var/tmp/pkgsrc/net/wireshark/work/wireshark-2.2.0/epan/dissectors'
Makefile:2082: recipe for target 'all-recursive' failed
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory '/var/tmp/pkgsrc/net/wireshark/work/wireshark-2.2.0/epan'
Makefile:1188: recipe for target 'all' failed
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory '/var/tmp/pkgsrc/net/wireshark/work/wireshark-2.2.0/epan'
Makefile:3408: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/var/tmp/pkgsrc/net/wireshark/work/wireshark-2.2.0'
Makefile:1737: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /x/pkgsrc/net/wireshark
*** Error code 1

Stop.
make: stopped in /x/pkgsrc/net/wireshark

>How-To-Repeat:
See above.

The cited line in the first error is the first local variable
declaration after the function header.  The last argument in the
function's parameter list is:

  void* data _U_)

which looks to me like some macro "_U_" should have either expanded to
nothing at all, or perhaps something else appropriate (although I
have no idea what it could be given the context).

(As a quick test, deleting the "_U_" did not change the behavior.)

>Fix:

>Audit-Trail:
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51559: net/wireshark build fails on NetBSD/macppc-7.99.39
Date: Mon, 17 Oct 2016 11:11:25 +0200

 On Mon, Oct 17, 2016 at 01:25:00AM +0000, jdbaker@mylinuxisp.com wrote:
 > packet-mux27010.c: In function 'dissect_mux27010':
 > packet-mux27010.c:764:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
 >      proto_item *ti, *tf, *tf_extended_header, *tf_addr, *tf_ctr;

 The 95% percente quantile says without lookup that tf_ctr is a macro for
 accessing part of the trapframe on PPC and you want to #undef it in this
 file.

 Joerg

NetBSD Home
NetBSD PR Database Search

(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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.