NetBSD Problem Report #50292

From  Wed Sep 30 07:56:13 2015
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id B2184A654B
	for <>; Wed, 30 Sep 2015 07:56:13 +0000 (UTC)
Message-Id: <>
Date: Wed, 30 Sep 2015 07:56:12 +0000 (UTC)
Subject: security/libgcrypt fails to build
X-Send-Pr-Version: www-1.0

>Number:         50292
>Category:       pkg
>Synopsis:       security/libgcrypt fails to build
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    solaris-pkg-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 30 08:00:01 +0000 2015
>Last-Modified:  Thu Oct 08 22:15:16 +0000 2015
>Originator:     Brad Forschinger
>Release:        2015Q3
SunOS x 5.10 Generic_150400-26 sun4v sparc sun4v


won't build with sunstudio, not sure if I've ever got a clean build.  A few of the functions are redefined with conflicting return types.



--- src/g10lib.h.orig
+++ src/g10lib.h
@@ -92,7 +92,7 @@

 /*-- src/global.c -*/
 int _gcry_global_is_operational (void);
-gcry_error_t _gcry_vcontrol (enum gcry_ctl_cmds cmd, va_list arg_ptr);
+gcry_err_code_t _gcry_vcontrol (enum gcry_ctl_cmds cmd, va_list arg_ptr);
 void  _gcry_check_heap (const void *a);
 int _gcry_get_debug_flag (unsigned int mask);

--- src/gcrypt-int.h.orig
+++ src/gcrypt-int.h
@@ -328,7 +328,7 @@ void *_gcry_sexp_nth_buffer (const gcry_sexp_t list, int number,
                              size_t *rlength);
 char *_gcry_sexp_nth_string (gcry_sexp_t list, int number);
 gcry_mpi_t _gcry_sexp_nth_mpi (gcry_sexp_t list, int number, int mpifmt);
-gpg_err_code_t _gcry_sexp_extract_param (gcry_sexp_t sexp,
+gpg_error_t _gcry_sexp_extract_param (gcry_sexp_t sexp,
                                          const char *path,
                                          const char *list,
                                          ...) _GCRY_GCC_ATTR_SENTINEL(0);
@@ -415,14 +415,14 @@ gcry_mpi_point_t _gcry_mpi_point_set (gcry_mpi_point_t point,
 gcry_mpi_point_t _gcry_mpi_point_snatch_set (gcry_mpi_point_t point,
                                             gcry_mpi_t x, gcry_mpi_t y,
                                             gcry_mpi_t z);
-gpg_error_t _gcry_mpi_ec_new (gcry_ctx_t *r_ctx,
+gpg_err_code_t _gcry_mpi_ec_new (gcry_ctx_t *r_ctx,
                              gcry_sexp_t keyparam, const char *curvename);
 gcry_mpi_t _gcry_mpi_ec_get_mpi (const char *name, gcry_ctx_t ctx, int copy);
 gcry_mpi_point_t _gcry_mpi_ec_get_point (const char *name,
                                         gcry_ctx_t ctx, int copy);
-gpg_error_t _gcry_mpi_ec_set_mpi (const char *name, gcry_mpi_t newvalue,
+gpg_err_code_t _gcry_mpi_ec_set_mpi (const char *name, gcry_mpi_t newvalue,
                                  gcry_ctx_t ctx);
-gpg_error_t _gcry_mpi_ec_set_point (const char *name, gcry_mpi_point_t newvalue,
+gpg_err_code_t _gcry_mpi_ec_set_point (const char *name, gcry_mpi_point_t newvalue,
                                    gcry_ctx_t ctx);
 int _gcry_mpi_ec_get_affine (gcry_mpi_t x, gcry_mpi_t y, gcry_mpi_point_t point,
                              mpi_ec_t ctx);
--- src/visibility.c.orig
+++ src/visibility.c
@@ -292,7 +292,7 @@ gcry_mpi_copy (const gcry_mpi_t a)
 gcry_mpi_snatch (gcry_mpi_t w, const gcry_mpi_t u)
-  return _gcry_mpi_snatch (w, u);
+  _gcry_mpi_snatch (w, u);



From: Thomas Klausner <>
To: NetBSD bugtracking <>
Subject: Re: pkg/50292: security/libgcrypt fails to build
Date: Wed, 30 Sep 2015 10:24:50 +0200

 Can you please report these upstream?

 Thank you,

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-When: Thu, 08 Oct 2015 22:15:16 +0000
Solaris problem.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.