NetBSD Problem Report #28819
From www@netbsd.org Thu Dec 30 22:38:24 2004
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id BD08863B844; Thu, 30 Dec 2004 22:38:24 +0000 (UTC)
Message-Id: <20041230223824.BD08863B844@narn.netbsd.org>
Date: Thu, 30 Dec 2004 22:38:24 +0000 (UTC)
From: georg.schwarz@freenet.de
Reply-To: georg.schwarz@freenet.de
To: gnats-bugs@netbsd.org
Subject: databases/p5-DB_File on IRIX does not compile with db4
X-Send-Pr-Version: www-1.0
>Number: 28819
>Category: pkg
>Synopsis: databases/p5-DB_File on IRIX does not compile with db4
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: irix-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 30 22:39:00 +0000 2004
>Closed-Date: Sun Feb 27 21:51:46 +0000 2005
>Last-Modified: Sun Feb 27 21:51:46 +0000 2005
>Originator: Georg Schwarz
>Release: current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
db4/db_185.h has:
/*
* XXX
* SGI/IRIX already has a pgno_t.
*/
#ifdef sgi
#define pgno_t db_pgno_t
#endif
However, when compiling databases/p5-DB_File (and maybe others, too) or change on IRIX sgi is not defined, and thus it fails:
cfe: Error: /usr/people/schwarz/pkgsrc/databases/p5-DB_File/work/.buildlink/include/db4/db_185.h, line 80: redeclaration of 'pgno_t'; previous declaration at line 41 in file '/usr/include/sys/types.h' (3.1.2.3)
>How-To-Repeat:
>Fix:
Either define sgi by adding something like this to databases/p5-DB_File/Makefile:
--- Makefile.orig 2004-12-30 23:15:30.000000000 +0100
+++ Makefile 2004-12-30 23:16:56.000000000 +0100
@@ -21,5 +21,9 @@
MAKE_ENV+= DB_FILE_LIB="${BDBBASE}/lib"
MAKE_ENV+= DB_FILE_COMPAT185=1
+.if ${OPSYS} == "IRIX"
+CFLAGS+= -Dsgi
+.endif
+
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
or change db4's header file to contain #ifdef __sgi instead.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->irix-pkg-people
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Tue, 04 Jan 2005 15:31:07 +0000
Responsible-Changed-Why:
Irix pkgsrc problem.
From: Jan Schaumann <jschauma@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28819 CVS commit: pkgsrc/databases/db4
Date: Mon, 17 Jan 2005 05:31:12 +0000 (UTC)
Module Name: pkgsrc
Committed By: jschauma
Date: Mon Jan 17 05:31:12 UTC 2005
Modified Files:
pkgsrc/databases/db4: distinfo
Added Files:
pkgsrc/databases/db4/patches: patch-ad
Log Message:
some older versions of SGI don't define "sgi", but both older and newer
versions define "__sgi", so use that.
This should fix PR pkg/28819.
To generate a diff of this commit:
cvs rdiff -r1.13 -r1.14 pkgsrc/databases/db4/distinfo
cvs rdiff -r0 -r1.1 pkgsrc/databases/db4/patches/patch-ad
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: jschauma@netbsd.org
State-Changed-When: Mon, 17 Jan 2005 05:36:32 +0000
State-Changed-Why:
I commited a patch to databases/db4 -- please update and check if that fixes
the problem.
Thanks for the PR.
From: georg.schwarz@freenet.de (Georg Schwarz)
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/28819
Date: Sun, 30 Jan 2005 01:17:25 +0100
I can confirm the problem is fixed. However, the same issue should also
be fixed for db2 (databases/db), where db_185.h also contains #ifdef
sgi, which should be patched to #ifdef __sgi.
--
Georg Schwarz http://home.pages.de/~schwarz/
georg.schwarz@freenet.de +49 177 8811442
From: Jan Schaumann <jschauma@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28819 CVS commit: pkgsrc/databases/db
Date: Sun, 27 Feb 2005 21:42:42 +0000 (UTC)
Module Name: pkgsrc
Committed By: jschauma
Date: Sun Feb 27 21:42:42 UTC 2005
Modified Files:
pkgsrc/databases/db: distinfo
Added Files:
pkgsrc/databases/db/patches: patch-ab
Log Message:
make this work on (even older) IRIX: check for __sgi rather than sgi
This was originally reported in PR 28819 by Georg Schwarz for db4 and
also noted by Georg to apply to this package.
To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 pkgsrc/databases/db/distinfo
cvs rdiff -r0 -r1.1 pkgsrc/databases/db/patches/patch-ab
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Jan Schaumann <jschauma@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28819 CVS commit: pkgsrc/databases/db3
Date: Sun, 27 Feb 2005 21:50:27 +0000 (UTC)
Module Name: pkgsrc
Committed By: jschauma
Date: Sun Feb 27 21:50:27 UTC 2005
Modified Files:
pkgsrc/databases/db3: distinfo
Added Files:
pkgsrc/databases/db3/patches: patch-ad
Log Message:
Start to make this work on (even older) IRIX: check for __sgi rather than sgi
This was originally reported in PR 28819 by Georg Schwarz for db4 and
also noted by Georg to apply to this package.
To generate a diff of this commit:
cvs rdiff -r1.13 -r1.14 pkgsrc/databases/db3/distinfo
cvs rdiff -r0 -r1.1 pkgsrc/databases/db3/patches/patch-ad
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: jschauma@netbsd.org
State-Changed-When: Sun, 27 Feb 2005 21:51:46 +0000
State-Changed-Why:
The same patch has been applied to db2 and db3.
Thanks for the PR.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.