NetBSD Problem Report #41648

From www@NetBSD.org  Mon Jun 29 16:45:11 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 03BB863B976
	for <gnats-bugs@gnats.netbsd.org>; Mon, 29 Jun 2009 16:45:11 +0000 (UTC)
Message-Id: <20090629164510.CBBCC63B946@www.NetBSD.org>
Date: Mon, 29 Jun 2009 16:45:10 +0000 (UTC)
From: andrew@ugh.net.au
Reply-To: andrew@ugh.net.au
To: gnats-bugs@NetBSD.org
Subject: texproc/bsdgrep-devel fails to build under Solaris
X-Send-Pr-Version: www-1.0

>Number:         41648
>Category:       pkg
>Synopsis:       texproc/bsdgrep-devel fails to build under Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 29 16:50:00 +0000 2009
>Closed-Date:    Sun May 15 01:22:48 +0000 2022
>Last-Modified:  Sun May 15 01:22:48 +0000 2022
>Originator:     Andrew
>Release:        Solaris 9
>Organization:
UgH!
>Environment:
SunOS 5.9
>Description:
textproc/bsdgrep-devel fails to build.

I haven't got access to the system atm but the problem is that binary.c tries to #include <sys/cdefs.h> which isn't found. This then causes RCSID to be a syntax error.

The solution appears to be to #include <nbcompat/cdefs.h>.

I'm not sure if there is a "proper" way to do that or if it should just be a patch in the patches directory. I haven't had a chance to try it yet.
>How-To-Repeat:
cd pkgsrc/textproc/bsdgrep-devel && bmake
>Fix:
Change #include <sys/cdefs.h> to #include <nbcompat/cdefs.h> (untested)

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->cjep
Responsible-Changed-By: reed@NetBSD.org
Responsible-Changed-When: Sat, 04 Jul 2009 13:27:22 +0000
Responsible-Changed-Why:
Assigned to maintainer.


Responsible-Changed-From-To: cjep->solaris-pkg-people
Responsible-Changed-By: reed@NetBSD.org
Responsible-Changed-When: Sat, 04 Jul 2009 18:01:52 +0000
Responsible-Changed-Why:
Assign to Solaris pkgsrc developers.


State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 15 May 2022 01:22:48 +0000
State-Changed-Why:
This has been fixed at some point since 2009. It now uses USE_FEATURES+=cdefs.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.