Browse Source

[3449] Compilation workaround for Python 3.4

Tomek Mrugalski 11 years ago
parent
commit
f21d4f3b70

+ 7 - 0
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

+ 7 - 0
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

+ 7 - 0
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