Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Apr 2018 06:08:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 227542] devel/grpc: Fix build with LibreSSL < 2.7
Message-ID:  <bug-227542-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227542

            Bug ID: 227542
           Summary: devel/grpc: Fix build with LibreSSL < 2.7
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-qa, patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: vanilla@FreeBSD.org
          Reporter: tobik@freebsd.org
                CC: vanilla@FreeBSD.org
          Assignee: vanilla@FreeBSD.org
             Flags: maintainer-feedback?(vanilla@FreeBSD.org)
 Attachment #192546 maintainer-approval?(vanilla@FreeBSD.org)
             Flags:
                CC: vanilla@FreeBSD.org

Created attachment 192546
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D192546&action=
=3Dedit
grpc.diff

Hi,

building grpc fails for me with DEFAULT_VERSIONS=3Dssl=3Dlibressl in
make.conf.  The attached patch fixes the build for me.

/usr/bin/c++  -DPB_FIELD_16BIT -Dgrpc_cronet_EXPORTS -Iinclude -I. -isystem
/usr/local/include -Ithird_party/benchmark/include
-Ithird_party/address_sorting/include -O2 -pipe -fstack-protector -isystem
/usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -std=
=3Dc++11
-O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasin=
g=20
-isystem /usr/local/include -fPIC -MD -MT
CMakeFiles/grpc_cronet.dir/src/core/tsi/alts/crypt/aes_gcm.cc.o -MF
CMakeFiles/grpc_cronet.dir/src/core/tsi/alts/crypt/aes_gcm.cc.o.d -o
CMakeFiles/grpc_cronet.dir/src/core/tsi/alts/crypt/aes_gcm.cc.o -c
src/core/tsi/alts/crypt/aes_gcm.cc
src/core/tsi/alts/crypt/aes_gcm.cc:199:20: error: use of undeclared identif=
ier
'HMAC_CTX_new'; did you mean 'BN_CTX_new'?
  HMAC_CTX* hmac =3D HMAC_CTX_new();
                   ^~~~~~~~~~~~
                   BN_CTX_new
/usr/local/include/openssl/bn.h:350:9: note: 'BN_CTX_new' declared here
BN_CTX *BN_CTX_new(void);
        ^
src/core/tsi/alts/crypt/aes_gcm.cc:199:13: error: cannot initialize a varia=
ble
of type 'HMAC_CTX *' (aka 'hmac_ctx_st *') with an rvalue of type 'BN_CTX *'
(aka 'bignum_ctx *')
  HMAC_CTX* hmac =3D HMAC_CTX_new();
            ^      ~~~~~~~~~~~~~~
2 errors generated.
ninja: build stopped: subcommand failed.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227542-7788>