ports/138877: [PATCH] security/nss: Fix build on sparc64
Beat Gätzi
beat at FreeBSD.org
Wed Sep 16 12:00:19 UTC 2009
>Number: 138877
>Category: ports
>Synopsis: [PATCH] security/nss: Fix build on sparc64
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 16 12:00:18 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Beat Gätzi
>Release: FreeBSD 8.0-BETA2 i386
>Organization:
>Environment:
System: FreeBSD daedalus.network.local 8.0-BETA2 FreeBSD 8.0-BETA2 #13 r196420: Fri Aug 21 14:49:22 CEST 2009 root at daedalus.network.local:/usr/obj/usr/src/sys/BEASTIE i386
>Description:
- Current nss version try to invoke X86 asm on sparc64:
cc -o FreeBSD8.0_OPT.OBJ/FreeBSD_SINGLE_SHLIB/sha_fast.o -c -O2 -pipe
-I/usr/local/include/nspr -L/usr/local/lib -fno-strict-aliasing -O -fPIC
-ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
-DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC
-DUSE_UTIL_DIRECTLY -I../../dist/FreeBSD8.0_OPT.OBJ/include
-I../../dist/public/ -I../../dist/private/ -O -fPIC -ansi -Wall
-Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG
-DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY
-I../../../dist/FreeBSD8.0_OPT.OBJ/include -I../../../dist/public/
-I../../../dist/private/ -O -fPIC -ansi -Wall -Wno-switch -DFREEBSD
-DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -DSHLIB_SUFFIX=\"so.1\"i
-DSHLIB_PREFIX=\"lib\" -DSHLIB_VERSION=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\"
-DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT
-DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -DNSS_X86_OR_X64 -DNSS_X86
-DMP_API_COMPATIBLE -I../../../../dist/FreeBSD8.0_OPT.OBJ/include
-I../../../../dist/public/nss -I../../../../dist/private/nss -Impi -Iecl
-O -fPIC -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
-DXP_UNIX -DSHLIB_SUFFIX=\"so.1\" -DSHLIB_PREFIX=\"lib\"
-DSHLIB_VERSION=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\"
-DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT
-DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -DNSS_X86_OR_X64 -DNSS_X86
-DMP_API_COMPATIBLE -I../../../../dist/FreeBSD8.0_OPT.OBJ/include
-I../../../../dist/public/nss -I../../../../dist/private/nss -Impi -Iecl
sha_fast.c
{standard input}: Assembler messages:
{standard input}:53: Error: Unknown opcode: `bswap'
{standard input}:74: Error: Unknown opcode: `bswap'
{standard input}:93: Error: Unknown opcode: `bswap'
>How-To-Repeat:
- Build security/nss on sparc64
>Fix:
- Attached patch fix build on sparc64.
- sparc64 Tinderbox log:
http://zaphod.chruetertee.ch/tb/logs/8-FreeBSD/nss-3.12.4.log
--- nss-sparc64.patch begins here ---
Index: files/patch-mozilla-security-coreconf-FreeBSD.mk
===================================================================
RCS file: files/patch-mozilla-security-coreconf-FreeBSD.mk
diff -N files/patch-mozilla-security-coreconf-FreeBSD.mk
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-mozilla-security-coreconf-FreeBSD.mk 16 Sep 2009 11:15:26 -0000
@@ -0,0 +1,20 @@
+--- ../../security/coreconf/FreeBSD.mk.orig 2009-09-16 13:02:04.000000000 +0200
++++ ../../security/coreconf/FreeBSD.mk 2009-09-16 13:15:11.000000000 +0200
+@@ -48,12 +48,17 @@
+ ifeq ($(OS_TEST),powerpc)
+ CPU_ARCH = powerpc
+ else
++ifeq ($(OS_TEST),sparc64)
++CPU_ARCH = sparc64
++USE_64 = 1
++else
+ ifeq ($(OS_TEST),amd64)
+ USE_64 = 1
+ endif
+ CPU_ARCH = x86
+ endif
+ endif
++endif
+
+ OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
+
--- nss-sparc64.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list