Subject: pkg/36120: security/john sparc32 solaris10 gcc
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 04/03/2007 08:30:00
>Number: 36120
>Category: pkg
>Synopsis: security/john sparc32 solaris10 gcc
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 03 08:30:00 +0000 2007
>Originator: Gilles Dauphin
>Release: SunOS 5.10 sparc
>Organization:
ENST
>Environment:
SunOS queen.enst.fr 5.10 Generic_118833-17 sun4u sparc SUNW,Sun-Blade-100
>Description:
sparc assembler part is very old (see comment in source)
it crash.
>How-To-Repeat:
bmake
>Fix:
compile like 'sparc64'
--- src/Makefile.pkgsrc Mon Apr 2 18:05:41 2007
+++ src/Makefile Tue Apr 3 09:59:19 2007
@@ -382,7 +382,10 @@
$(MAKE) solaris-sparc-any HAMMER=use-solaris-sparcv8-cc
solaris-sparc-gcc:
- $(MAKE) solaris-sparc-any HAMMER=use-solaris-sparc-gcc
+ $(LN) sparc32.h arch.h
+ $(MAKE) $(PROJ) \
+ CFLAGS="$(CFLAGS) -m32" \
+ LDFLAGS="$(LDFLAGS) -m32 -lrt"
use-solaris-sparcv9-cc:
$(MAKE) $(NAIL) \