NetBSD Problem Report #24448
Received: (qmail 24821 invoked by uid 605); 16 Feb 2004 23:22:35 -0000
Message-Id: <200402162322.i1GNMU010492@calvin.snowgoons.com>
Date: Mon, 16 Feb 2004 23:22:31 GMT
From: tim.walls@snowgoons.com
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: tim.walls@snowgoons.com
To: gnats-bugs@gnats.netbsd.org
Subject: package openssl 0.9.6l build fails
X-Send-Pr-Version: 3.95
>Number: 24448
>Category: pkg
>Synopsis: package openssl 0.9.6l build fails
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 16 23:23:00 +0000 2004
>Closed-Date: Tue Feb 17 14:27:45 +0000 2004
>Last-Modified: Tue Feb 17 14:27:45 +0000 2004
>Originator: Tim Walls
>Release: NetBSD 1.5.3
>Organization:
>Environment:
System: NetBSD calvin 1.5.3 NetBSD 1.5.3 (HOBBES) #10: Sat Sep 20 12:47:01 BST 2003 root@calvin:/usr/src/sys/arch/sparc/compile/HOBBES sparc
Architecture: sparc
Machine: sparc
>Description:
Building package security/openssl on NetBSD-Sparc 1.5.3 fails with a config
error. A suspicious line is "sysctl: not found" immediately before
calling configure; complete output is here...
------------ snip ------------------------------------------
===> Required package openssl>=0.9.6l: NOT found
===> Verifying reinstall for ../../security/openssl
===> Checking for vulnerabilities in openssl-0.9.6l
===> Configuring for openssl-0.9.6l
cd /usr/pkgsrc/security/openssl/work/openssl-0.9.6l && /usr/pkg/bin/perl util/perlpath.pl /usr/pkg/bin/perl
Operating system: sparc-whatever-netbsd
sysctl: not found
Configuring for NetBSD-
Configuring for NetBSD-
Usage: Configure [no-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [rsaref] [no-threads] [no-asm] [no-dso] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--test-sanity] os/compiler[:flags]
pick os/compiler from:
BC-16 BC-32 BS2000-OSD Cygwin Cygwin-pre1.3 FreeBSD FreeBSD-alpha FreeBSD-elf
MPE/iX-gcc Mingw32 NetBSD-alpha NetBSD-arm NetBSD-arm32 NetBSD-m68000
NetBSD-m68k NetBSD-mipseb NetBSD-mipsel NetBSD-ns32k NetBSD-powerpc
NetBSD-sparc NetBSD-sparc64 NetBSD-vax NetBSD-x86 OS390-Unix OpenBSD
OpenBSD-alpha OpenBSD-mips OpenBSD-x86 OpenUNIX-8 OpenUNIX-8-gcc
------------- [continues with rest of list] ----------------
System is currently running openssl 0.9.6k built from source, so this
problem was obviously introduced recently. Recent move to buildlink3
anyone?
>How-To-Repeat:
Find a friendly NetBSD-Sparc 1.5.3 box;
cd /usr/pkgsrc/security/openssl
make clean
make
>Fix:
None known.
>Release-Note:
>Audit-Trail:
From: "Johnny C. Lam" <jlam@NetBSD.org>
To: tim.walls@snowgoons.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/24448: package openssl 0.9.6l build fails
Date: Tue, 17 Feb 2004 11:03:43 +0000
--EVF5PPMfhYS0aIcm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Mon, Feb 16, 2004 at 11:22:31PM +0000, tim.walls@snowgoons.com wrote:
>
> >Description:
> Building package security/openssl on NetBSD-Sparc 1.5.3 fails with a config
> error. A suspicious line is "sysctl: not found" immediately before
> calling configure; complete output is here...
Could you please try the attached patch and let me know if that fixes
the build for you?
Thanks!
-- Johnny Lam <jlam@NetBSD.org>
--EVF5PPMfhYS0aIcm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="openssl.diff"
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/openssl/Makefile,v
retrieving revision 1.85
diff -u -r1.85 Makefile
--- Makefile 5 Jan 2004 22:39:11 -0000 1.85
+++ Makefile 17 Feb 2004 11:00:54 -0000
@@ -52,6 +52,7 @@
CONFIGURE_ARGS+= ${CFLAGS} ${LDFLAGS}
CONFIGURE_ENV+= PERL="${PERL5}"
+CONFIGURE_ENV+= MACHINE_ARCH=${MACHINE_ARCH}
PLIST_SRC= ${PKGDIR}/PLIST.${LOWER_OPSYS:C/([.0-9]*)$//}
PLIST_SRC+= ${PLIST_RSAREF}
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/security/openssl/distinfo,v
retrieving revision 1.24
diff -u -r1.24 distinfo
--- distinfo 12 Nov 2003 03:35:46 -0000 1.24
+++ distinfo 17 Feb 2004 11:00:54 -0000
@@ -2,7 +2,7 @@
SHA1 (openssl-0.9.6l.tar.gz) = 4fdd3c5f09b1276bf3c64140a38130c6dd49871c
Size (openssl-0.9.6l.tar.gz) = 2183726 bytes
-SHA1 (patch-aa) = c4766edba4704374ae67d75c2f9454bc70782eea
+SHA1 (patch-aa) = 4f172db9ed515d9972883470bf33b694f9df835a
SHA1 (patch-ab) = cfbcaa52bec88987b8a63725b84adfd58b324032
SHA1 (patch-ac) = 3a5248b8b9fe6791b6c114f3b98f1b4fae93a183
SHA1 (patch-ad) = 950d57633fcb494564641f9b7e6385b96912c05d
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/security/openssl/patches/patch-aa,v
retrieving revision 1.11
diff -u -r1.11 patch-aa
--- patches/patch-aa 25 Aug 2002 19:23:18 -0000 1.11
+++ patches/patch-aa 17 Feb 2004 11:00:54 -0000
@@ -9,7 +9,7 @@
- sun3*-*-netbsd) OUT="NetBSD-m68" ;;
- *-*-netbsd) OUT="NetBSD-sparc" ;;
+ sun3*-*-netbsd) OUT="NetBSD-m68k" ;;
-+ *-*-netbsd) OUT="NetBSD-`sysctl -n hw.machine_arch`" ;;
++ *-*-netbsd) OUT="NetBSD-${MACHINE_ARCH}" ;;
*86*-*-openbsd) OUT="OpenBSD-x86" ;;
alpha*-*-openbsd) OUT="OpenBSD-alpha" ;;
pmax*-*-openbsd) OUT="OpenBSD-mips" ;;
--EVF5PPMfhYS0aIcm--
State-Changed-From-To: open->feedback
State-Changed-By: jlam
State-Changed-When: Tue Feb 17 11:05:24 UTC 2004
State-Changed-Why:
Awaiting feedback on patch sent to PR submitter.
From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/24448 CVS commit: pkgsrc/security/openssl
Date: Tue, 17 Feb 2004 14:26:47 +0000 (UTC)
Module Name: pkgsrc
Committed By: jlam
Date: Tue Feb 17 14:26:47 UTC 2004
Modified Files:
pkgsrc/security/openssl: Makefile distinfo
pkgsrc/security/openssl/patches: patch-aa
Log Message:
Don't use sysctl to determine the machine arch when ${MACHINE_ARCH} already
has the correct value. Fixes build on NetBSD-1.5.3/sparc, which doesn't
understand "sysctl hw.machine_arch", reported in PR 24448.
To generate a diff of this commit:
cvs rdiff -r1.85 -r1.86 pkgsrc/security/openssl/Makefile
cvs rdiff -r1.24 -r1.25 pkgsrc/security/openssl/distinfo
cvs rdiff -r1.11 -r1.12 pkgsrc/security/openssl/patches/patch-aa
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: jlam
State-Changed-When: Tue Feb 17 14:27:21 UTC 2004
State-Changed-Why:
PR submitter confirms that the patch fixed the problem. Thanks for the PR!
>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.