NetBSD Problem Report #50242
From www@NetBSD.org Mon Sep 14 07:43:32 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 605E6A57FD
for <gnats-bugs@gnats.NetBSD.org>; Mon, 14 Sep 2015 07:43:32 +0000 (UTC)
Message-Id: <20150914074331.204F6A6554@mollari.NetBSD.org>
Date: Mon, 14 Sep 2015 07:43:31 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: security/libgcrypt fails to build on Solaris 11
X-Send-Pr-Version: www-1.0
>Number: 50242
>Category: pkg
>Synopsis: security/libgcrypt fails to build on Solaris 11
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 14 07:45:00 +0000 2015
>Closed-Date: Mon Sep 14 13:26:37 +0000 2015
>Last-Modified: Mon Sep 14 14:55:00 +0000 2015
>Originator: Joern Clausen
>Release:
>Organization:
University of Bielefeld
>Environment:
Solaris 11.2/i86, GCC 4.8.5, 64bit ABI, Sun Assembler
>Description:
Compiling the latest version of security/libgcrypt on Solaris 11.2 fails with
/usr/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/opt/pkg-hrz/20150821/include -I/usr/include -D_REENTRANT -O2 -I/opt/pkg-hrz/20150821/include -I/usr/include -MT sha1-ssse3-amd64.lo -MD -MP -MF .deps/sha1-ssse3-amd64.Tpo -c -o sha1-ssse3-amd64.lo sha1-ssse3-amd64.S
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I/opt/pkgsrc/pkg-hrz/pkgsrc/security/libgcrypt/work.pkgsrc-sol11i86/.buildlink/include -D_REENTRANT -O2 -MT sha1-ssse3-amd64.lo -MD -MP -MF .deps/sha1-ssse3-amd64.Tpo -c sha1-ssse3-amd64.S -fPIC -DPIC -o .libs/sha1-ssse3-amd64.o
/var/tmp//ccaHaOtS.s: Assembler messages:
/var/tmp//ccaHaOtS.s:30: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:34: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:38: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:42: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:47: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:51: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:55: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:59: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:63: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:67: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:71: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:75: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:79: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:83: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:87: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:91: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:95: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:99: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:103: Error: unbalanced parenthesis in operand 1.
/var/tmp//ccaHaOtS.s:107: Error: unbalanced parenthesis in operand 1.
*** [sha1-ssse3-amd64.lo] Error code 1
Repeating the build outside of pkgsrc (using the same configure parameters) leads to the same result.
But: Compiling version 1.6.3 outside pkgsrc fails in the same way, while I was able to build this version within pkgsrc successfully (last time on 2015-09-04).
The pkgsrc package itself does not seem to have changed except the version number. Were there any other changes to the pkgsrc infrastructure that could explain this?
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/50242: security/libgcrypt fails to build on Solaris 11
Date: Mon, 14 Sep 2015 10:37:18 +0200
On Mon, Sep 14, 2015 at 07:45:00AM +0000, joern.clausen@uni-bielefeld.de wrote:
> Repeating the build outside of pkgsrc (using the same configure parameters) leads to the same result.
>
> But: Compiling version 1.6.3 outside pkgsrc fails in the same way, while I was able to build this version within pkgsrc successfully (last time on 2015-09-04).
In the latest update I've removed some patches.
One that is supposedly included in 1.6.4:
https://bugs.g10code.com/gnupg/issue1703
and one that had as comment:
reinstate patch as upstream patch not yet in [1.6.2] release.
http://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commitdiff;h=43376891c01f4aff1fbfb23beafebb5adfd0868c
Can you try applying patch-configure from pkgsrc-2015Q2 (especially
the last chunk) and see if it helps? And if yes, please file an
upstream bug report.
Thomas
From: =?ISO-8859-15?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: Thomas Klausner <wiz@NetBSD.org>, pkg-manager@NetBSD.org,
gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/50242: security/libgcrypt fails to build on Solaris 11
Date: Mon, 14 Sep 2015 15:17:50 +0200
> Can you try applying patch-configure from pkgsrc-2015Q2 (especially
> the last chunk) and see if it helps?
This part of patch-configure is indeed sufficient to make the package
compile for me again:
--- configure.orig 2015-09-08 06:32:13.000000000 +0000
+++ configure
@@ -16519,6 +16570,11 @@ __asm__(
"asmfunc:\n\t"
".size asmfunc,.-asmfunc;\n\t"
".type asmfunc,@function;\n\t"
+ /* Test if assembler allows use of '/' for constant
division
+ * (Solaris/x86 issue). If previous constant division check
+ * and "-Wa,--divide" workaround failed, this causes
assembly
+ * to be disable on this machine. */
+ "xorl \$(123456789/12345678), %ebp;\n\t"
);
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
> And if yes, please file an
> upstream bug report.
Will do...
--
Jörn Clausen
Plattformen & Serverdienste
Hochschulrechenzentrum
Universität Bielefeld
Universitätsstraße 25
33615 Bielefeld
Telefon: +49 521 106-12601
E-Mail: joern.clausen@uni-bielefeld.de
http://www.uni-bielefeld.de/hrz
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Mon, 14 Sep 2015 13:26:37 +0000
State-Changed-Why:
configure patch reinstated. Thanks!
Let me know if there's a bug report I can add to the patch.
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/50242 CVS commit: pkgsrc/security/libgcrypt
Date: Mon, 14 Sep 2015 13:25:39 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Mon Sep 14 13:25:39 UTC 2015
Modified Files:
pkgsrc/security/libgcrypt: distinfo
Added Files:
pkgsrc/security/libgcrypt/patches: patch-configure
Log Message:
Fix build on Solaris 11 per PR 50242 by Jörn Clausen.
To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 pkgsrc/security/libgcrypt/distinfo
cvs rdiff -u -r0 -r1.5 pkgsrc/security/libgcrypt/patches/patch-configure
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: =?ISO-8859-15?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: Thomas Klausner <wiz@NetBSD.org>, pkg-manager@NetBSD.org,
gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/50242: security/libgcrypt fails to build on Solaris 11
Date: Mon, 14 Sep 2015 15:53:42 +0200
> And if yes, please file an upstream bug report.
done: https://bugs.gnupg.org/gnupg/issue2102
--
Jörn Clausen
Plattformen & Serverdienste
Hochschulrechenzentrum
Universität Bielefeld
Universitätsstraße 25
33615 Bielefeld
Telefon: +49 521 106-12601
E-Mail: joern.clausen@uni-bielefeld.de
http://www.uni-bielefeld.de/hrz
>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.