From 22fa86cbae039ef2c5d3e68f03b09b6de2f762ed Mon Sep 17 00:00:00 2001 From: Jim Schutt Date: Tue, 6 Sep 2011 21:05:38 -0700 Subject: [PATCH] osd: nss build of OSD.cc needs CRYPTO_CXXFLAGS since nss build fails like this: if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. \ -D__KERNEL_STRICT_NAMES -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT \ -D_THREAD_SAFE -D__STDC_FORMAT_MACROS -D_GNU_SOURCE -rdynamic -Winit-self \ -Wpointer-arith -fno-strict-aliasing -Wnon-virtual-dtor -Wno-invalid-offsetof \ -Wstrict-null-sentinel -g -MT OSD.lo -MD -MP -MF ".deps/OSD.Tpo" -c -o OSD.lo `test \ -f 'osd/OSD.cc' || echo './'`osd/OSD.cc; \ then mv -f ".deps/OSD.Tpo" ".deps/OSD.Plo"; else rm -f ".deps/OSD.Tpo"; exit \ 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I. -D__KERNEL_STRICT_NAMES -Wall -D__CEPH__ \ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -D__STDC_FORMAT_MACROS \ -D_GNU_SOURCE -rdynamic -Winit-self -Wpointer-arith -fno-strict-aliasing \ -Wnon-virtual-dtor -Wno-invalid-offsetof -Wstrict-null-sentinel -g -MT OSD.lo -MD -MP \ -MF .deps/OSD.Tpo -c osd/OSD.cc -fPIC -DPIC -o .libs/OSD.o In file included from \ ./os/LFNIndex.h:27, from ./os/HashIndex.h:20, from ./os/FileStore.h:26, from osd/OSD.cc:25: ./common/ceph_crypto.h:44:22: error: pk11pub.h: No such file or directory Commit d59f34ab made FileStore.h include HashIndex.h, which ultimately results in OSD.cc including ceph_crypto.h. Signed-off-by: Jim Schutt --- src/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Makefile.am b/src/Makefile.am index 5139235121e0e..82fa62ff5fdd0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -929,6 +929,7 @@ libosd_la_SOURCES = \ osd/OSDCaps.cc \ osd/Watch.cc \ osd/ClassHandler.cc +libosd_la_CXXFLAGS= ${CRYPTO_CXXFLAGS} ${AM_CXXFLAGS} libosd_la_LIBADD = libglobal.la noinst_LTLIBRARIES += libosd.la -- 2.39.5