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

Bug 655520

Summary: app-backup/bacula-9.0.6-r3 : openssl-compat.h:5:19: error: int EVP_PKEY_up_ref(EVP_PKEY*) was declared extern and later static [-fpermissive]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Thomas Beierlein <tomjbe>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 651228    
Attachments: emerge-info.txt
app-backup:bacula-9.0.6-r3:20180511-183545.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2018-05-11 18:52:14 UTC
In file included from crypto.c:134:0:
openssl-compat.h: In function 'int EVP_PKEY_up_ref(EVP_PKEY*)':
openssl-compat.h:5:19: error: 'int EVP_PKEY_up_ref(EVP_PKEY*)' was declared 'extern' and later 'static' [-fpermissive]
 static inline int EVP_PKEY_up_ref(EVP_PKEY *pkey)
                   ^~~~~~~~~~~~~~~
In file included from /usr/include/openssl/hmac.h:67:0,

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib-hardened_libressl_20180506-210133

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *



emerge -qpv app-backup/bacula
[ebuild  N    ] app-backup/bacula-9.0.6-r3  USE="acl ipv6 libressl readline sqlite ssl -X -bacula-clientonly -bacula-nodir -bacula-nosd -examples -logwatch -mysql -postgres -qt5 -static -tcpd -vim-syntax"
Comment 1 Toralf Förster gentoo-dev 2018-05-11 18:52:17 UTC
Created attachment 530900 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-05-11 18:52:20 UTC
Created attachment 530902 [details]
app-backup:bacula-9.0.6-r3:20180511-183545.log
Comment 3 Toralf Förster gentoo-dev 2018-05-11 18:52:23 UTC
Created attachment 530904 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-05-11 18:52:26 UTC
Created attachment 530906 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-05-11 18:52:29 UTC
Created attachment 530908 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-05-11 18:52:32 UTC
Created attachment 530910 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-05-11 18:52:35 UTC
Created attachment 530912 [details]
temp.tbz2
Comment 8 Thomas Beierlein gentoo-dev 2018-08-04 12:39:30 UTC
Compiles cleanly with <libressl-2.7.

So the problem will come up with the comint libressl-2.7 which now provides the OpenSSL-1.1 API.
Comment 9 Larry the Git Cow gentoo-dev 2018-08-05 07:47:08 UTC
The bug has been closed via the following commit(s):

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

commit 75ad47ec2124ff3e8d4ddd010e89b65958b3a4d9
Author:     Thomas Beierlein <tomjbe@gentoo.org>
AuthorDate: 2018-08-05 07:45:12 +0000
Commit:     Thomas Beierlein <tomjbe@gentoo.org>
CommitDate: 2018-08-05 07:46:29 +0000

    app-backup/bacula: Add patch to work with >=dev-libs/libressl-2.7
    
    Apply different patches according to dev-libs/libressl version (<2.7 and
    >=2.7) installed.
    
    Reported-by:  Toralf Förster <toralf@gentoo.org>
    Closes: https://bugs.gentoo.org/655520
    Package-Manager: Portage-2.3.44, Repoman-2.3.10

 app-backup/bacula/bacula-9.0.6-r3.ebuild                      |  8 +++++++-
 ...ula-9.0.6-libressl.patch => bacula-9.0.6-libressl26.patch} |  0
 app-backup/bacula/files/9.0.6/bacula-9.0.6-libressl27.patch   | 11 +++++++++++
 3 files changed, 18 insertions(+), 1 deletion(-)