This error appears after unset USE_PYTHON64 with export PYTHONLIBTYPE=a
/usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.a(posixmodule.o): In function `posix_tmpnam':
(.text.unlikely+0x950): warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
when you set "export PYTHONLIBTYPE=so" everything compiles just fine.