NetBSD Problem Report #8789
Received: (qmail 27315 invoked from network); 13 Nov 1999 13:08:38 -0000
Message-Id: <199911131308.OAA06867@elefant.local.net>
Date: Sat, 13 Nov 1999 14:08:34 +0100 (MET)
From: Ingolf Koch <ingolf@knuut.de>
Reply-To: Ingolf Koch <ingolf@knuut.de>
To: gnats-bugs@gnats.netbsd.org
Subject: postgresql does not link on -current sparc
X-Send-Pr-Version: 3.95
>Number: 8789
>Category: pkg
>Synopsis: postgresql does not link due to missing TAS symbol
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Nov 13 05:09:00 +0000 1999
>Closed-Date: Sat Mar 18 17:51:59 +0000 2000
>Last-Modified: Sat Mar 18 17:53:01 +0000 2000
>Originator: Ingolf Koch
>Release: NetBSD-current 1.4M
>Organization:
Beste Kneipe in Jena-Ost
>Environment:
System: NetBSD elefant 1.4M NetBSD 1.4M (ELEFANT.v6) #0: Fri Nov 12 07:48:21 MET 1999 ingolf@elefant:/usr/obj/sys/arch/sparc/compile/ELEFANT.v6 sparc
>Description:
The postgresql-6.5.2 package (in databases/postgresql) cannot
be compiled at least with current userland on a sparc. The linker
complains about a missing TAS symbol. TAS is usually a preprocessor
macro which would have been defined if there were a HAS_TEST_AND_SET
preprocessor macro (see include/storage/s_lock.h).
The HAS_TEST_AND_SET is set in include/os.h (which is a link to
include/port/bsd.h) if the compiler has a predefined "sparc"
macro. But cc only predefines "__sparc__". (This may apply to
other architectures, too.)
>How-To-Repeat:
On a -current sparc:
cd /usr/pkgsrc/databases/postgresql
make install
>Fix:
Add the following patch (also needed if the package is
changed to version 6.5.3 as requested in pkg/8757):
--- ./include/port/bsd.h.orig Tue May 25 18:14:29 1999
+++ ./include/port/bsd.h Sat Nov 13 13:39:31 1999
@@ -5,7 +5,7 @@
#define HAS_TEST_AND_SET
#endif
-#if defined(sparc)
+#if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
#define HAS_TEST_AND_SET
#endif
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jlam
State-Changed-When: Sat Mar 18 09:51:59 PST 2000
State-Changed-Why:
This was fixed a while back, but is definitely fixed in pkgsrc-20000319.
>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.