setools project fails to compile with swig 2.0.5 and later. The patch which causes this issue was commited as r12784 - "Fix constructors in named typedef class declarations".
Compile attached test.i this way:
swig -python -o test.c test.i
gcc -I /usr/include/python2.7/ -o test.so test.c -Wall -Wextra
Make sure you have "setools-devel" package (in case of Fedora distro) installed.
Attached patch fixes setools build.