Subject: pkg/15168: gnupg alignment errors on sparc64
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ww@styx.org>
List: netbsd-bugs
Date: 01/07/2002 15:30:42
>Number: 15168
>Category: pkg
>Synopsis: gpg attempts to use sparc32 assembler files on sparc64
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 07 12:34:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.5ZA
>Organization:
>Environment:
System: NetBSD anaphora 1.5ZA NetBSD 1.5ZA (ANAPHORA) #0: Mon Jan 7 13:50:05 EST 2002 ww@anaphora:/src/NetBSD/src/sys/arch/sparc64/compile/ANAPHORA sparc64
Architecture: sparc64
Machine: sparc64
>Description:
The configure script with gnupg incorrectly judges that it
should use sparc32 assembler routines in libmpi.a. These
functions cause alignment faults.
>How-To-Repeat:
cd /usr/pkgsrc/security/gnupg; make
>Fix:
Use the C equivalents from mpi/generic
The following patch (relative to the gnupg source directory)
fixes the problem:
--- mpi/config.links.orig Sun Apr 29 07:36:18 2001
+++ mpi/config.links Mon Jan 7 14:20:31 2002
@@ -119,6 +119,12 @@
path="sparc32v8 sparc32"
mpi_extra_modules="udiv"
;;
+ sparc64-*-netbsd)
+ # There are no sparc64 assembler modules that work, so
+ # just use generic C functions
+ echo '/* configured for sparc64-*-netbsd */' >>./mpi/asm-syntax.h
+ path=""
+ ;;
sparc9*-*-* | \
sparc64*-*-* | \
ultrasparc*-*-* )
>Release-Note:
>Audit-Trail:
>Unformatted: