Source: audit Version: 1:3.0.7-1 Severity: serious >From my build log:
... Making all in python3 make[6]: Entering directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7/debian/build/bindings/swig/python3' swig -o audit_wrap.c -python -py3 -modern -I. -I../../.. -I../../../../../lib -I/usr/include/python3.10 -I/usr/include/python3.10 ../../../../../bindings/swig/python3/../src/auditswig.i Deprecated command line option: -modern. This option is now always on. /bin/bash ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../../bindings/swig/python3 -I../../.. -I. -I../../.. -I../../../../../lib -I/usr/include/python3.10 -I/usr/include/python3.10 -Wdate-time -D_FORT IFY_SOURCE=2 -shared -g -O2 -ffile-prefix-map=/home/tmpbuilder/cross-i386/audit/audit-3.0.7=. -fstack-protector-strong -Wformat -Werror=format-security -c -o _audit_la-audit_wrap.lo `test -f 'audit_wrap.c' || echo '../../../../../bindin gs/swig/python3/'`audit_wrap.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../../bindings/swig/python3 -I../../.. -I. -I../../.. -I../../../../../lib -I/usr/include/python3.10 -I/usr/include/python3.10 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-ma p=/home/tmpbuilder/cross-i386/audit/audit-3.0.7=. -fstack-protector-strong -Wformat -Werror=format-security -c audit_wrap.c -fPIC -DPIC -o .libs/_audit_la-audit_wrap.o audit_wrap.c: In function '_wrap_audit_rule_data_buf_set': audit_wrap.c:4701:17: error: cast specifies array type 4701 | arg1->buf = (char [])(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); | ^ audit_wrap.c:4701:15: error: invalid use of flexible array member 4701 | arg1->buf = (char [])(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); | ^ audit_wrap.c:4703:15: error: invalid use of flexible array member 4703 | arg1->buf = 0; | ^ make[6]: *** [Makefile:518: _audit_la-audit_wrap.lo] Error 1 make[6]: Leaving directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7/debian/build/bindings/swig/python3' make[5]: *** [Makefile:417: all-recursive] Error 1 make[5]: Leaving directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7/debian/build/bindings/swig' make[4]: *** [Makefile:414: all-recursive] Error 1 make[4]: Leaving directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7/debian/build/bindings' make[3]: *** [Makefile:471: all-recursive] Error 1 make[3]: Leaving directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7/debian/build' make[2]: *** [Makefile:403: all] Error 2 make[2]: Leaving directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7/debian/build' dh_auto_build: error: cd debian/build && make -j8 returned exit code 2 make[1]: *** [debian/rules:64: debian/build-python-stamp] Error 2 make[1]: Leaving directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7' make: *** [debian/rules:34: build-arch] Error 2 dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2 Looking at the situation a bit, it seems that a recent update to /usr/include/linux/audit.h made a change such that struct audit_rule_data is no longer swig friendly. -- Daniel Schepler