NetBSD Problem Report #28809
From www@netbsd.org Wed Dec 29 22:10:19 2004
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id E42F463B400; Wed, 29 Dec 2004 22:10:19 +0000 (UTC)
Message-Id: <20041229221019.E42F463B400@narn.netbsd.org>
Date: Wed, 29 Dec 2004 22:10:19 +0000 (UTC)
From: georg.schwarz@freenet.de
Reply-To: georg.schwarz@freenet.de
To: gnats-bugs@netbsd.org
Subject: security/openssl installation problem on IRIX 5
X-Send-Pr-Version: www-1.0
>Number: 28809
>Category: pkg
>Synopsis: security/openssl installation problem on IRIX 5
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: jlam
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 29 22:12:00 +0000 2004
>Closed-Date: Sat Jun 18 16:44:44 +0000 2005
>Last-Modified: Sat Jun 18 16:44:44 +0000 2005
>Originator: Georg Schwarz
>Release: current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
When installing openssl-0.9.7e on IRIX 5.3 there are some shell issues with the installation. At certain points it fails:
making install in fips/sha1...
gmake[2]: Entering directory `/usr/people/schwarz/pkgsrc/security/openssl/work/o
penssl-0.9.7e/fips/sha1'
/bin/sh: Syntax error at line 1: `;' unexpected
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory `/usr/people/schwarz/pkgsrc/security/openssl/work/op
enssl-0.9.7e/fips/sha1'
making install in fips/rand...
gmake[2]: Entering directory `/usr/people/schwarz/pkgsrc/security/openssl/work/o
penssl-0.9.7e/fips/rand'
gmake[2]: Leaving directory `/usr/people/schwarz/pkgsrc/security/openssl/work/op
enssl-0.9.7e/fips/rand'
making install in fips/des...
gmake[2]: Entering directory `/usr/people/schwarz/pkgsrc/security/openssl/work/o
penssl-0.9.7e/fips/des'
/bin/sh: Syntax error at line 1: `;' unexpected
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory `/usr/people/schwarz/pkgsrc/security/openssl/work/op
enssl-0.9.7e/fips/des'
making install in fips/aes...
gmake[2]: Entering directory `/usr/people/schwarz/pkgsrc/security/openssl/work/o
penssl-0.9.7e/fips/aes'
/bin/sh: Syntax error at line 1: `;' unexpected
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory `/usr/people/schwarz/pkgsrc/security/openssl/work/op
enssl-0.9.7e/fips/aes'
making install in fips/dsa...
gmake[2]: Entering directory `/usr/people/schwarz/pkgsrc/security/openssl/work/o
penssl-0.9.7e/fips/dsa'
/bin/sh: Syntax error at line 1: `;' unexpected
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory `/usr/people/schwarz/pkgsrc/security/openssl/work/op
enssl-0.9.7e/fips/dsa'
making install in fips/rsa...
gmake[2]: Entering directory `/usr/people/schwarz/pkgsrc/security/openssl/work/o
penssl-0.9.7e/fips/rsa'
/bin/sh: Syntax error at line 1: `;' unexpected
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory `/usr/people/schwarz/pkgsrc/security/openssl/work/op
enssl-0.9.7e/fips/rsa'
making install in fips/dh...
gmake[2]: Entering directory `/usr/people/schwarz/pkgsrc/security/openssl/work/o
penssl-0.9.7e/fips/dh'
/bin/sh: Syntax error at line 1: `;' unexpected
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory `/usr/people/schwarz/pkgsrc/security/openssl/work/op
enssl-0.9.7e/fips/dh'
gmake[1]: *** [install] Error 2
gmake[1]: Leaving directory `/usr/people/schwarz/pkgsrc/security/openssl/work/op
enssl-0.9.7e/fips'
This seems to result in openssl_fips_fingerprint not being installed:
Cannot access /usr/local/pkg/bin/openssl_fips_fingerprint: No such file or directory
Unfortunately I am not familiar enough with Makefiles, so I was unable to figure out the precise reason. It seems to be that the shell does not like some of the syntax used in some of the Makefiles.
When I use SHELL= to have GNU bash as the shell the problem does not appear. With SHELL=/bin/ksh it still does.
As a probably unrelated problem, certain libs do not seem to be built:
Cannot access /usr/local/pkg/lib/libcrypto.so.300: No such file or directory
Cannot access /usr/local/pkg/lib/libcrypto.so.300.1: No such file or directory
Cannot access /usr/local/pkg/lib/libssl.so.300: No such file or directory
Cannot access /usr/local/pkg/lib/libssl.so.300.1: No such file or directory
maybe this is normal on IRIX 5, in which case one would have to differentiate in PLIST between IRIX 5 and IRIX 6.
>How-To-Repeat:
>Fix:
For the first issue I was able to work around using bash:
--- Makefile.orig 2004-12-26 02:27:25.000000000 +0100
+++ Makefile 2004-12-26 02:25:31.000000000 +0100
@@ -51,6 +51,10 @@
CONFIGURE_SCRIPT= ./Configure
CONFIGURE_ARGS+= irix64-mips4-cc
. endif
+. if !empty(OS_VERSION:M5*)
+BUILD_DEPENDS+= bash-[2-]*:../../shells/bash
+MAKEFLAGS+= SHELL=${LOCALBASE}/bin/bash
+. endif
.endif
CONFIGURE_ARGS+= ${CFLAGS} ${LDFLAGS}
I'm not sure if that is the correct way of doing it. Moreover, I do not like very much the dependency it induces. (BTW, would .if ${OS_VERSION} < 6.0 be better syntax?)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->jlam
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Tue, 04 Jan 2005 14:49:39 +0000
Responsible-Changed-Why:
Over to maintainer.
From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28809 CVS commit: pkgsrc/security/openssl
Date: Sat, 11 Jun 2005 22:16:15 +0000 (UTC)
Module Name: pkgsrc
Committed By: jlam
Date: Sat Jun 11 22:16:15 UTC 2005
Modified Files:
pkgsrc/security/openssl: Makefile
Log Message:
Some shells don't accept empty word lists in for loops. For those
Makefiles where this occurs, edit the file so that we avoid running
the loop. This should fix PR pkg/28809.
To generate a diff of this commit:
cvs rdiff -r1.104 -r1.105 pkgsrc/security/openssl/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: schwarz@netbsd.org
State-Changed-When: Sat, 18 Jun 2005 16:44:44 +0000
State-Changed-Why:
The current version of security/openssl compiles flawlessly on IRIX 5.
Problem confirmed to be fixed.
>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.