git master build fail with gcc 4.8
Aurélien Aptel
aurelien.aptel at gmail.com
Mon Apr 29 08:34:36 MDT 2013
Hi all,
GCC changed the semantics of some warning flags related to format
checking. Because of these changes, python headers now trigger
warnings which are treated as errors (-Werror). This prevents the
python bindings from compiling:
--
$ make
WAF_MAKE=1 python ./buildtools/bin/waf build
Waf: Entering directory `/home/knarf/prog/c/samba/bin'
Selected embedded Heimdal build
[ 127/3920] Generating VERSION
[ 160/3920] Generating smbd/build_options.c
[ 711/3920] Compiling lib/ntdb/pyntdb.c
In file included from /usr/include/python2.7/Python.h:126:0,
from ../lib/ntdb/pyntdb.c:28:
/usr/include/python2.7/modsupport.h:27:1: error: ‘PyArg_ParseTuple’ is
an unrecognized format function type [-Werror=format=]
PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...)
Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
^
cc1: some warnings being treated as errors
Waf: Leaving directory `/home/knarf/prog/c/samba/bin'
Build failed: -> task failed (err #1):
{task: cc pyntdb.c -> pyntdb_129.o}
make: *** [all] Error 1
--
I think the bug has been fixed upstream. (see discussion at [1])
In the meantime I would like to either :
- compile without -Werror
- or disable the python bindings
but I'm not familiar enough with the build system to do so.
1: https://bugzilla.redhat.com/show_bug.cgi?id=927358
More information about the samba-technical
mailing list