Subject: pkg/23590: databases/db does not compile on sparc/sparc64 (fix included)
To: None <gnats-bugs@gnats.netbsd.org>
From: Julian Coleman <jdc@coris.org.uk>
List: netbsd-bugs
Date: 11/28/2003 14:35:36
>Number: 23590
>Category: pkg
>Synopsis: databases/db does not compile on sparc/sparc64 (fix included)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 28 14:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Julian Coleman
>Release: NetBSD 1.6ZF
>Organization:
@home
>Environment:
System: NetBSD sparky 1.6ZF NetBSD 1.6ZF (SUN4M_SCSI3_BRFW) #0: Sat Nov 15 08:36:29 GMT 2003 root@sparky:/usr/obj/sparc/usr/src/sys/arch/sparc/compile/SUN4M_SCSI3_BRFW sparc
Architecture: sparc
Machine: sparc
>Description:
databases/db does not compile on sparc (and probably sparc64)
because of a name conflict with machine/mcontext.h:
cc -c -O2 -I/tmp/obj/pkg/databases/db/work/.buildlink/include -I. -I../dist/../include -I/tmp/obj/pkg/databases/db/work/.buildlink/include ../dist/../db_archive/db_archive.c -fPIC -DPIC -o .libs/db_archive.o
In file included from ../db_archive/db_archive.c:30:
../include/log.h:148: error: redefinition of `struct __fq'
>How-To-Repeat:
mysparc$ cd /usr/pkgsrc/databases/db && make
>Fix:
Add new file patch-ab:
--- ../include/log.h.dist 1999-08-31 18:45:43.000000000 +0100
+++ ../include/log.h 2003-11-28 12:35:27.000000000 +0000
@@ -145,7 +145,7 @@
LOGP persist; /* Persistent information. */
- SH_TAILQ_HEAD(__fq) fq; /* List of file names. */
+ SH_TAILQ_HEAD(__fnq) fq; /* List of file names. */
/*
* The lsn LSN is the file offset that we're about to write and which
>Release-Note:
>Audit-Trail:
>Unformatted: