Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 806803

Summary: app-crypt/xca-2.3.0-r1 - pki_key.cpp: error: invalid conversion from const dsa_st* to DSA* {aka dsa_st*} [-fpermissive]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Hans de Graaff <graaff>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo, phantom4, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/chris2511/xca/issues/320
Whiteboard: Fixed in master; < dep added to ebuilds in Gentoo
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 797325    
Attachments: emerge-info.txt
app-crypt:xca-2.3.0-r1:20210806-090944.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-08-06 12:42:58 UTC
 1355 | const struct dsa_st *EVP_PKEY_get0_DSA(const EVP_PKEY *pkey);
      |                      ^~~~~~~~~~~~~~~~~
pki_key.cpp:150:45: error: invalid conversion from ‘const dsa_st*’ to ‘DSA*’ {aka ‘dsa_st*’} [-fpermissive]
  150 |                 DSA *dsa = EVP_PKEY_get0_DSA(key);
      |                            ~~~~~~~~~~~~~~~~~^~~~~
      |                                             |
      |                                             const dsa_st*

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-j3_abi32+64_debug-20210729-185806

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 12.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.1
Python 3.9.6
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.54.0 *
The following VMs are available for generation-2:
1)	JamVM JDK 2.0.0 [jamvm]
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   jamvm 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  HEAD of ::gentoo
commit 6afb66040a84afcde1b7012930c6617e89e2cc87
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Aug 6 07:51:56 2021 +0000

    2021-08-06 07:51:52 UTC

emerge -qpvO app-crypt/xca
[ebuild  N    ] app-crypt/xca-2.3.0-r1  USE="-bindist -doc"
Comment 1 Toralf Förster gentoo-dev 2021-08-06 12:43:00 UTC
Created attachment 730846 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-08-06 12:43:01 UTC
Created attachment 730849 [details]
app-crypt:xca-2.3.0-r1:20210806-090944.log
Comment 3 Toralf Förster gentoo-dev 2021-08-06 12:43:03 UTC
Created attachment 730852 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-08-06 12:43:04 UTC
Created attachment 730855 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-08-06 12:43:05 UTC
Created attachment 730858 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-08-06 12:43:06 UTC
Created attachment 730861 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-08-06 12:43:07 UTC
Created attachment 730864 [details]
temp.tar.bz2
Comment 8 Agostino Sarubbo gentoo-dev 2021-08-11 14:07:49 UTC
*** Bug 807682 has been marked as a duplicate of this bug. ***
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-18 03:46:30 UTC
Aim is to unmask OpenSSL 3 by end of year.
Comment 11 Hans de Graaff gentoo-dev Security 2022-12-03 11:30:19 UTC
There are various openssl 3 fixes in the upstream repository. I would rather see a new release that we can use, but alternatively we can consider creating an ebuild for the current master once openssl gets unmasked or close to unmasking.
Comment 12 Larry the Git Cow gentoo-dev 2022-12-13 05:27:43 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f46b6a0731839b85edbc2c3783d7acc3d4371781

commit f46b6a0731839b85edbc2c3783d7acc3d4371781
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-13 05:27:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-13 05:27:07 +0000

    app-crypt/xca: depend on < openssl 3
    
    Fails to compile w/ openssl 3. Fixed in master.
    
    Bug: https://bugs.gentoo.org/806803
    Signed-off-by: Sam James <sam@gentoo.org>

 app-crypt/xca/xca-2.4.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-14 14:33:37 UTC
*** Bug 882729 has been marked as a duplicate of this bug. ***
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-08 17:23:04 UTC
commit 020c1d32e52f5abe09c168f60e7ab943bdd24ea1
Author: Hans de Graaff <graaff@gentoo.org>
Date:   Tue Sep 5 14:07:48 2023 +0200

    app-crypt/xca: add 2.4.0_p20230526

    This is an upstream snapshot that does compile against openssl-3 but
    also has known defects. Currently masked for testing.

    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

commit 870961e6a8fd95ef89d6256a79d1fc2fcb57f736
Author: Hans de Graaff <graaff@gentoo.org>
Date:   Mon Sep 25 07:32:25 2023 +0200

    app-crypt/xca: add 2.5.0

    Signed-off-by: Hans de Graaff <graaff@gentoo.org>