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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 29 16:50:00 +0000 2009
>Last-Modified:  Sat Jul 04 18:01:52 +0000 2009
>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.


>Unformatted:

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