authentication - Error while installing pam-python-1.0.5 -


when run make command receive following error

rm -f html/index.html && ln -s pam_python.html html/index.html make[1]: leaving directory `/home/vagrant/pam-python-1.0.5/doc' make --directory src make[1]: entering directory `/home/vagrant/pam-python-1.0.5/src' gcc -o0 -wall -wextra -wundef -wshadow -wpointer-arith -wbad-function-cast -wsign-compare -waggregate-return -wstrict-prototypes -wmissing-prototypes -wmissing-declarations -werror -g -o ctest ctest.c -lpam cflags="-wall -wextra -wundef -wshadow -wpointer-arith -wbad-function-cast -wsign-compare -waggregate-return -wstrict-prototypes -wmissing-prototypes -wmissing-declarations -werror" ./setup.py build running build running build_ext building 'pam_python' extension creating build creating build/temp.linux-x86_64-2.6 gcc -pthread -fno-strict-aliasing -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -d_gnu_source -fpic -fwrapv -dndebug -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -d_gnu_source -fpic -fwrapv -wall -wextra -wundef -wshadow -wpointer-arith -wbad-function-cast -wsign-compare -waggregate-return -wstrict-prototypes -wmissing-prototypes -wmissing-declarations -werror -fpic -dlibpython_so="libpython2.6.so.1.0" -i/usr/include/python2.6 -c pam_python.c -o build/temp.linux-x86_64-2.6/pam_python.o in file included /usr/include/python2.6/pyconfig.h:6,                  /usr/include/python2.6/python.h:8,                  pam_python.c:36: /usr/include/python2.6/pyconfig-64.h:1043:1: error: "_xopen_source" redefined in file included /usr/include/stdlib.h:25,                  /usr/include/security/_pam_macros.h:12,                  pam_python.c:32: /usr/include/features.h:164:1: error: location of previous definition error: command 'gcc' failed exit status 1 

system using centos 6.7.

is there other way directly install pam module python generated pam_python.so in lib64/security directory.

suggest : use stable version = python-pam-1.8.2 .

the el6 package : python-pam-1.8.2-2.el6.noarch.rpm ( 9.7kb ) https://drive.google.com/file/d/0b7s255p3kfxnq1frm1potxr5nmc/view?usp=sharing

download package, , ...

cd downloads/ # yum install  python-pam-1.8.2-2.el6.noarch.rpm 

edit : other "module" = pam-python 1.0.5 : seems found solution →

cd pam-python-1.0.5/src/ python setup.py build 

... , file build/lib.linux-x86_64-2.6/pam-python.so created.

install : # python setup.py install ... install text shows what's installed ... pam_python.py, pam_python.pyc,

/usr/lib64/python2.6/site-packages/pam_python-1.0.5-py2.6-linux-x86_64.egg/pam_python.so 


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -