Bug 1376858

Summary: crypt xlator should use linker and compile options from pkg-config instaed of "-lssl -lcrypo"
Product: [Community] GlusterFS Reporter: Niels de Vos <ndevos>
Component: buildAssignee: bugs <bugs>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: mainlineCC: atumball, bugs, jbyers, kkeithle
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-09 20:11:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Niels de Vos 2016-09-16 15:36:03 UTC
Description of problem:
The crypt xlator does not use the same compiler and linker flags as set by the distribution.

./configure.ac should define the options based on pkg-config or similar.

xlators/encryption/crypt/src/Makefile.am is the affected file:

crypt_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
	-lssl -lcrypto

Comment 1 Niels de Vos 2016-09-16 15:43:26 UTC
-lcrypto is also used in xlators/mgmt/glusterd/src/Makefile.am:

glusterd_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
	$(top_builddir)/rpc/xdr/src/libgfxdr.la \
	$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la \
	$(XML_LIBS) -lcrypto $(URCU_LIBS) $(URCU_CDS_LIBS)

Comment 2 Amar Tumballi 2019-05-09 20:11:07 UTC
Removed Crypt xlator from the codebase as it was not actively maintained. (>=glusterf-6.0)