On Fri, Aug 24, 2012 at 7:17 PM, Eric Paris <eparis@xxxxxxxxxxxxxx> wrote: > With your patch does it still build with the old swig version? I know > we put a nasty hack in Fedora which made it build with new swig, but > wouldn't build with old swig. It builds fine with swig-2.* (tested with 2.0.3, 2.0.4, 2.0.7 and now 2.0.8). swig-1.3.40 doesn't, but without my patch it fails with 1.3.40 as well. make[1]: Entering directory `/var/tmp/portage/app-admin/setools-3.3.7-r6/work/setools-3.3.7/libsefs/swig/python-3.2' x86_64-pc-linux-gnu-g++ -shared -o _sefs.so.4.0.3 sefs_wrap.cc -fno-strict-aliasing -I/usr/include -I/usr/include -I../../../libqpol/include -I../../../libapol/include -I../../.. -fpic -I../../../libsefs/include -march=native -ggdb -O2 -pipe -I/usr/include/python3.2 -lpython3.2 ../../../libapol/src/libapol.so ../../../libqpol/src/libqpol.so ../../../libsefs/src/libsefs.so -lsqlite3 -lxml2 -Wl,-O1 -Wl,--as-needed -Wl,-soname,_sefs.so.4 sefs_wrap.cc: In function 'swig_module_info* SWIG_Python_GetModule()': sefs_wrap.cc:2452:51: error: 'PyCObject_Import' was not declared in this scope sefs_wrap.cc: In function 'void SWIG_Python_SetModule(swig_module_info*)': sefs_wrap.cc:2521:92: error: 'PyCObject_FromVoidPtr' was not declared in this scope sefs_wrap.cc: In function 'swig_type_info* SWIG_Python_TypeQuery(const char*)': sefs_wrap.cc:2544:60: error: 'PyCObject_AsVoidPtr' was not declared in this scope sefs_wrap.cc:2549:51: error: 'PyCObject_FromVoidPtr' was not declared in this scope We switched building with swig-2 at the time that the latest stable SELinux policy utilities (libselinux, libsemanage, policycoreutils, ...) were released as that was the then stable swig version in Gentoo. > WTF was swig thinking making a non-backwards compat change like this?! It's probably considered to be a bug(fix) than a change - more strict checking or so. What is the swig version you build setools with? Wkr, Sven Vermeulen -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.