From: Tomek Mrugalski Date: Sat, 10 May 2014 10:03:40 +0000 (+0200) Subject: [3449] Compilation workaround for Python 3.4 X-Git-Tag: trac3434_base~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f21d4f3b70fd3f0625b3dfed2dddff174dee788e;p=thirdparty%2Fkea.git [3449] Compilation workaround for Python 3.4 --- diff --git a/src/lib/dns/python/Makefile.am b/src/lib/dns/python/Makefile.am index c3af3684c8..383191076f 100644 --- a/src/lib/dns/python/Makefile.am +++ b/src/lib/dns/python/Makefile.am @@ -4,6 +4,13 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib AM_CPPFLAGS += $(BOOST_INCLUDES) AM_CXXFLAGS = $(B10_CXXFLAGS) +# There is a build problem with python3.4 (a new field tp_finalize) has been +# added and now compiler complains about it not being properly initialized in +# construtor. Since the whole python thing goes away, it's counter-productive +# to spend any time on making this work on both python3.3 and 3.4, so +# ingoring the warning seems the way to go. +AM_CXXFLAGS += -Wno-error + lib_LTLIBRARIES = libkea-pydnspp.la libkea_pydnspp_la_SOURCES = pydnspp_common.cc pydnspp_common.h libkea_pydnspp_la_SOURCES += pydnspp_config.h pydnspp_towire.h diff --git a/src/lib/python/isc/log/Makefile.am b/src/lib/python/isc/log/Makefile.am index be1c265caa..5cbd42a2cd 100644 --- a/src/lib/python/isc/log/Makefile.am +++ b/src/lib/python/isc/log/Makefile.am @@ -4,6 +4,13 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib AM_CPPFLAGS += $(BOOST_INCLUDES) AM_CXXFLAGS = $(B10_CXXFLAGS) +# There is a build problem with python3.4 (a new field tp_finalize) has been +# added and now compiler complains about it not being properly initialized in +# construtor. Since the whole python thing goes away, it's counter-productive +# to spend any time on making this work on both python3.3 and 3.4, so +# ingoring the warning seems the way to go. +AM_CXXFLAGS += -Wno-error + pythondir = $(pyexecdir)/isc python_LTLIBRARIES = log.la log_la_SOURCES = log.cc diff --git a/src/lib/python/isc/util/cio/Makefile.am b/src/lib/python/isc/util/cio/Makefile.am index c2b2d18f5f..713f0380f6 100644 --- a/src/lib/python/isc/util/cio/Makefile.am +++ b/src/lib/python/isc/util/cio/Makefile.am @@ -4,6 +4,13 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib AM_CPPFLAGS += $(BOOST_INCLUDES) AM_CXXFLAGS = $(B10_CXXFLAGS) +# There is a build problem with python3.4 (a new field tp_finalize) has been +# added and now compiler complains about it not being properly initialized in +# construtor. Since the whole python thing goes away, it's counter-productive +# to spend any time on making this work on both python3.3 and 3.4, so +# ingoring the warning seems the way to go. +AM_CXXFLAGS += -Wno-error + python_PYTHON = __init__.py pythondir = $(PYTHON_SITEPKG_DIR)/isc/util/cio