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

Bug 617264

Summary: net-libs/gsoap-2.8.45 with dev-libs/libressl - ./gsoap/plugin/smdevp.c:487:37: error: 'HMAC_CTX_new' was not declared in this scope
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED FIXED    
Severity: normal CC: polynomial-c
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 561854    
Attachments: emerge-info.txt
config.log.tbz2
emerge-history.txt
environment
etc.portage.tbz2
net-libs:gsoap-2.8.45:20170502-074930.log
temp.tbz2

Description Toralf Förster gentoo-dev 2017-05-02 17:09:55 UTC
libtool: link: x86_64-pc-linux-gnu-g++ -DWITH_OPENSSL -DWITH_GZIP -DWSDL2H_IMPORT_PATH=\"/usr/share/gsoap/WS\" -Werror=terminate -O2 -pipe -march=native -I../../gsoap -I../../gsoap/plugin -Wl,-O1 -o .libs/wsdl2h wsdl2h-wsdl2h.o wsdl2h-wsdl.o wsdl2h-wadl.o wsdl2h-schema.o wsdl2h-types.o wsdl2h-service.o wsdl2h-soap.o wsdl2h-mime.o wsdl2h-wsp.o wsdl2h-bpel.o wsdl2h-wsdlC.o ../plugin/httpda.c ../plugin/smdevp.c ../plugin/threads.c  -L. -Wl,--as-needed ../../gsoap/.libs/libgsoapssl++.so -lssl -lz -lcrypto
../plugin/smdevp.c: In function 'int soap_smd_init(soap*, soap_smd_data*, int, const void*, int)':
../plugin/smdevp.c:487:37: error: 'HMAC_CTX_new' was not declared in this scope
     data->ctx = (void*)HMAC_CTX_new();
                                     ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-libressl_20170422-091839

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0
 [2] x86_64-pc-linux-gnu-6.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
Comment 1 Toralf Förster gentoo-dev 2017-05-02 17:09:58 UTC
Created attachment 471514 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-05-02 17:10:01 UTC
Created attachment 471516 [details]
config.log.tbz2
Comment 3 Toralf Förster gentoo-dev 2017-05-02 17:10:05 UTC
Created attachment 471518 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-05-02 17:10:08 UTC
Created attachment 471520 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-05-02 17:10:11 UTC
Created attachment 471522 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-05-02 17:10:15 UTC
Created attachment 471524 [details]
net-libs:gsoap-2.8.45:20170502-074930.log
Comment 7 Toralf Förster gentoo-dev 2017-05-02 17:10:18 UTC
Created attachment 471526 [details]
temp.tbz2
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2018-04-07 13:09:47 UTC
gsoap/plugin/smdevp.c lines 482-6:

#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
    data->ctx = (void*)SOAP_MALLOC(soap, sizeof(HMAC_CTX));
    if (data->ctx)
      HMAC_CTX_init((HMAC_CTX*)data->ctx);
#else
    data->ctx = (void*)HMAC_CTX_new();
#endif
Comment 9 Aaron Bauman (RETIRED) gentoo-dev 2018-04-20 15:39:48 UTC
net-libs/gsoap-2.8.51 is the latest stable.  Older versions have been removed. 

Compiles and builds fine against dev-libre/libressl-2.7.2
Comment 10 Aaron Bauman (RETIRED) gentoo-dev 2018-04-20 15:44:38 UTC
(In reply to Aaron Bauman from comment #9)
> net-libs/gsoap-2.8.51 is the latest stable.  Older versions have been
> removed. 
> 
> Compiles and builds fine against dev-libre/libressl-2.7.2

I should add that this does not build against 2.6.4, but can be patched.
Comment 11 Larry the Git Cow gentoo-dev 2018-04-20 16:24:37 UTC
The bug has been closed via the following commit(s):

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

commit c3de07e5236962952d47815e6ab96c46cd38dfd0
Author:     Aaron Bauman <bman@gentoo.org>
AuthorDate: 2018-04-20 16:24:17 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2018-04-20 16:24:28 +0000

    net-libs/gsoap: compatibility patch for LibreSSL
    
    This patch fixes building with dev-libs/libressl-2.6.4.  This patch will
    not be needed once dev-libs/libressl-2.7.x goes stable.  Additionally,
    fix slot/subslot modifier to ensure rebuilds are trigged for API
    changes.
    
    Closes: https://bugs.gentoo.org/617264
    Package-Manager: Portage-2.3.31, Repoman-2.3.9

 .../gsoap-2.8.51-libressl-2.6-compatibility.patch  | 38 ++++++++++++++++++++++
 net-libs/gsoap/gsoap-2.8.51.ebuild                 |  7 ++--
 2 files changed, 43 insertions(+), 2 deletions(-)