[Bug 227542] devel/grpc: Fix build with LibreSSL < 2.7
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Apr 16 06:08:32 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227542
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 at FreeBSD.org
Reporter: tobik at freebsd.org
CC: vanilla at FreeBSD.org
Assignee: vanilla at FreeBSD.org
Flags: maintainer-feedback?(vanilla at FreeBSD.org)
Attachment #192546 maintainer-approval?(vanilla at FreeBSD.org)
Flags:
CC: vanilla at FreeBSD.org
Created attachment 192546
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=192546&action=edit
grpc.diff
Hi,
building grpc fails for me with DEFAULT_VERSIONS=ssl=libressl 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=c++11
-O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing
-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 identifier
'HMAC_CTX_new'; did you mean 'BN_CTX_new'?
HMAC_CTX* hmac = 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 variable
of type 'HMAC_CTX *' (aka 'hmac_ctx_st *') with an rvalue of type 'BN_CTX *'
(aka 'bignum_ctx *')
HMAC_CTX* hmac = HMAC_CTX_new();
^ ~~~~~~~~~~~~~~
2 errors generated.
ninja: build stopped: subcommand failed.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list