NetBSD Problem Report #38864
From martin@duskware.de Thu Jun 5 07:35:26 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 2684563BBCF
for <gnats-bugs@gnats.netbsd.org>; Thu, 5 Jun 2008 07:35:26 +0000 (UTC)
Message-Id: <20080605073019.30DAA63BA89@narn.NetBSD.org>
Date: Thu, 5 Jun 2008 07:30:19 +0000 (UTC)
From: hasso@estpak.ee
Reply-To: hasso@estpak.ee
To: netbsd-bugs-owner@NetBSD.org
Subject: textproc/xmlrpc-c doesn't compile in DragonFly (and probably others)
X-Send-Pr-Version: www-1.0
>Number: 38864
>Category: pkg
>Synopsis: textproc/xmlrpc-c doesn't compile in DragonFly (and probably others)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: dfly-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 05 07:40:00 +0000 2008
>Closed-Date: Wed Jun 18 11:10:40 +0000 2008
>Last-Modified: Wed Jun 18 11:10:40 +0000 2008
>Originator: Hasso Tepper
>Release: DragonFly
>Organization:
>Environment:
DragonFly
>Description:
c++ -c -o value.o -Iblddir/include -Isrcdir/include -Iblddir -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Woverloaded-virtual -Wsynth -g value.cpp
value.cpp: In constructor 'xmlrpc_c::value_datetime::value_datetime(const xmlrpc_c::timeval&)':
value.cpp:384: error: invalid use of undefined type 'const struct xmlrpc_c::timeval'
blddir/include/xmlrpc-c/base.hpp:124: error: forward declaration of 'const struct xmlrpc_c::timeval'
gmake[2]: *** [value.o] Error 1
The code includes <time.h>, but it's not enough to use timeval structure in systems conforming to SUSv3 - sys/time.h is needed for that. In NetBSD sys/time.h is included from time.h, that's why it works there - probably just by accident.
>How-To-Repeat:
>Fix:
The patch to fix the problem is available at
http://leaf.dragonflybsd.org/~hasso/pkgsrc-textproc-xmlrpc-c.patch
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->dfly-pkg-people
Responsible-Changed-By: snj@NetBSD.org
Responsible-Changed-When: Tue, 10 Jun 2008 02:34:52 +0000
Responsible-Changed-Why:
DragonFly(ish) problem.
From: Hasso Tepper <hasso@estpak.ee>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/38864 (textproc/xmlrpc-c doesn't compile in DragonFly (and probably others))
Date: Wed, 18 Jun 2008 13:08:27 +0300
I restored the (historic) behavior to make timeval structure usable via
including just sys/types.h in DragonFly, therefore this report isn't
relevant any more. Please close.
--
Hasso Tepper
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Wed, 18 Jun 2008 11:10:40 +0000
State-Changed-Why:
On submitter's request.
>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.