From: Robin H. Johnson Date: Fri, 5 Aug 2016 00:15:18 +0000 (-0700) Subject: rgw: Fix civetweb IPv6 X-Git-Tag: ses5-milestone5~202^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=921c556b65eafe2136f2afcc8234681711aa7348;p=ceph.git rgw: Fix civetweb IPv6 Commit c38e3cbb6f7c6221209f2b512cba18c564c895a4 introduced a second compiled version of src/civetweb/src/civetweb.c, but did not pass the configuration header (civetweb/include/civetweb_conf.h). As a result, USE_IPV6 was not defined when it was compiled, and that copy was included into the radosgw binary. This caused breakage for the civetweb frontend when used with IPv6: rgw frontends = civetweb port=[::]:7480 Reintroduce the header so that civetweb is compiled correctly again. Fixes: http://tracker.ceph.com/issues/16928 Backport: jewel Signed-off-by: Robin H. Johnson --- diff --git a/src/rgw/Makefile.am b/src/rgw/Makefile.am index b24fb6bc5912..22ec417f498d 100644 --- a/src/rgw/Makefile.am +++ b/src/rgw/Makefile.am @@ -160,7 +160,7 @@ radosgw_SOURCES = \ civetweb/src/civetweb.c \ rgw/rgw_main.cc -radosgw_CFLAGS = -I$(srcdir)/civetweb/include -fPIC -I$(srcdir)/xxHash +radosgw_CFLAGS = -I$(srcdir)/civetweb/include -fPIC -I$(srcdir)/xxHash ${CIVETWEB_INCLUDE} radosgw_CXXFLAGS = ${RGW_CXXFLAGS} ${AM_CXXFLAGS} radosgw_LDADD = $(LIBRGW) $(LIBCIVETWEB) $(LIBCIVETWEB_DEPS) $(LIBRGW_DEPS) $(RESOLV_LIBS) \ $(CEPH_GLOBAL)