NetBSD Problem Report #41723
From kre@munnari.OZ.AU Tue Jul 14 10:58:38 2009
Return-Path: <kre@munnari.OZ.AU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 1FE9363BADF
for <gnats-bugs@gnats.NetBSD.org>; Tue, 14 Jul 2009 10:58:38 +0000 (UTC)
Message-Id: <200907141058.n6EAwX7L022085@jade.coe.psu.ac.th>
Date: Tue, 14 Jul 2009 17:58:33 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.NetBSD.org
Subject: net/openwbem compilation errors (NetBSD 4.0)
X-Send-Pr-Version: 3.95
>Number: 41723
>Category: pkg
>Synopsis: net/openwbem compilation errors (NetBSD 4.0)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 14 11:00:00 +0000 2009
>Closed-Date: Thu Jun 18 07:10:52 +0000 2015
>Last-Modified: Thu Jun 18 07:10:52 +0000 2015
>Originator: Robert Elz
>Release: NetBSD 4.0_STABLE
>Organization:
Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE (JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 kre@jade.coe.psu.ac.th:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
net/openwbem fails to compile in a NetBSD 4.0 environment.
>How-To-Repeat:
I use pkg_comp with libkver and NetBSD 4.0 release sets installed
(except x* sets, I use pkgsrc modular xorg) to simulate a fairly
pure netBSD 4.0 environment.
There, building net/openwbem results (after a lot of files have
successfully compiled) in ...
if c++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/common -I../../../src/cim -I../../../src/ifcs -I/usr/include -I/usr/pkg/include -fno-enforce-eh-specs -O2 -I/usr/include -fPIC -D_REENTRANT -pipe -pthread -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -O3 -MT OW_PlatformSignal.o -MD -MP -MF ".deps/OW_PlatformSignal.Tpo" -c -o OW_PlatformSignal.o OW_PlatformSignal.cpp; \
then mv -f ".deps/OW_PlatformSignal.Tpo" ".deps/OW_PlatformSignal.Po"; else rm -f ".deps/OW_PlatformSignal.Tpo"; exit 1; fi
OW_PlatformSignal.cpp: In function 'void OpenWBEM4::Platform::Signal::extractSignalInformation(const siginfo_t&, OpenWBEM4::Platform::Signal::SignalInformation&)':
OW_PlatformSignal.cpp:86: error: 'const union siginfo' has no member named 'si_value'
gmake[4]: *** [OW_PlatformSignal.o] Error 1
gmake[4]: Leaving directory `/pkg_comp/obj/pkgsrc/net/openwbem/4x/openwbem-3.2.2/src/cimom/server'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/pkg_comp/obj/pkgsrc/net/openwbem/4x/openwbem-3.2.2/src/cimom'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/pkg_comp/obj/pkgsrc/net/openwbem/4x/openwbem-3.2.2/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/pkg_comp/obj/pkgsrc/net/openwbem/4x/openwbem-3.2.2'
gmake: *** [all] Error 2
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/net/openwbem
*** Error code 1
>Fix:
>Release-Note:
>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/41723: net/openwbem compilation errors (NetBSD 4.0)
Date: Sun, 23 Aug 2009 18:16:13 +0900
Following patch is workaround of this issue:
--- src/cimom/server/OW_PlatformSignal.cpp.orig 2005-03-22 02:20:00.000000000 +0000
+++ src/cimom/server/OW_PlatformSignal.cpp
@@ -37,6 +37,10 @@
#include "OW_UserUtils.hpp"
#include <ostream>
+#if defined(__NetBSD__) && !defined(si_value)
+#define si_value si_sigval
+#endif
+
namespace OW_NAMESPACE
{
namespace Platform
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 18 Jun 2015 07:10:52 +0000
State-Changed-Why:
problem only affects -4, which is long EOL
>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.