Error with a python module installation - python

I have been trying to install banyan python modules to run python scripts.
I thought that it can be easily installed by using python command "pip install banyan"
However, I got error messages against my expectation. My gcc version is 4.4.7 and python 2.6.
and below large sentences are my error log files.
Can you give me suggestions how to fix my problems? I have already read the related previously posts
but I cannot solve it and every required modules is already installed with latest versions.
and never mind "gcc: unrecognized option '-Qunused-arguments'. It doesn't matter to my problem.
/usr/bin/pip run on Wed Oct 15 22:54:27 2014
Downloading/unpacking banyan
Running setup.py egg_info for package banyan
running egg_info
writing pip-egg-info/Banyan.egg-info/PKG-INFO
writing top-level names to pip-egg-info/Banyan.egg-info/top_level.txt
writing dependency_links to pip-egg-info/Banyan.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info/Banyan.egg-info/SOURCES.txt'
writing manifest file 'pip-egg-info/Banyan.egg-info/SOURCES.txt'
Source in /tmp/pip-build-sclee1/banyan has version 0.1.5, which satisfies requirement banyan
Installing collected packages: banyan
Running setup.py install for banyan
Running command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-sclee1/banyan/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CZTp63-record/install-record.txt --single-version-externally-managed
running install
running build
running build_py
running build_ext
building 'banyan_c' extension
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/module.cpp -o build/temp.linux-x86_64-2.6/banyan/module.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/set_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/set_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/min_gap_metadata.cpp -o build/temp.linux-x86_64-2.6/banyan/min_gap_metadata.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/frozen_set_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/frozen_set_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/tree.cpp -o build/temp.linux-x86_64-2.6/banyan/tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/rank_metadata.cpp -o build/temp.linux-x86_64-2.6/banyan/rank_metadata.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/node.cpp -o build/temp.linux-x86_64-2.6/banyan/node.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/frozen_dict_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/frozen_dict_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/dict_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/dict_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/tree_view.cpp -o build/temp.linux-x86_64-2.6/banyan/tree_view.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
banyan/tree_view.cpp: In function ‘void tree_view_dealloc(TreeView*)’:
banyan/tree_view.cpp:37: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/tree_view.cpp:39: warning: suggest explicit braces to avoid ambiguous ‘else’
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/overlapping_intervals_metadata.cpp -o build/temp.linux-x86_64-2.6/banyan/overlapping_intervals_metadata.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/_int_imp/_pyobject_utils.cpp -o build/temp.linux-x86_64-2.6/banyan/_int_imp/_pyobject_utils.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
banyan/_int_imp/_pyobject_utils.cpp: In destructor ‘_CachedKeyPyObject::~_CachedKeyPyObject()’:
banyan/_int_imp/_pyobject_utils.cpp:416: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_pyobject_utils.cpp:418: warning: suggest explicit braces to avoid ambiguous ‘else’
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/_int_imp/_build_tree_imp.cpp -o build/temp.linux-x86_64-2.6/banyan/_int_imp/_build_tree_imp.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
In file included from banyan/_int_imp/_tree_imp_metadata_base.hpp:14,
from banyan/_int_imp/_tree_imp_lt_base.hpp:6,
from banyan/_int_imp/_tree_imp.hpp:7,
from banyan/_int_imp/_set_tree_imp.hpp:7,
from banyan/_int_imp/_build_tree_imp.cpp:9:
banyan/_int_imp/_tree_imp_pyobject_cached_key_value_type_set_base.hpp: In constructor ‘_PyObjectCachedKeyUniqueSorterIncer<true>::_PyObjectCachedKeyUniqueSorterIncer(PyObject*, const _CachedKeyPyObjectCacheGeneratorLT&)’:
banyan/_int_imp/_tree_imp_pyobject_cached_key_value_type_set_base.hpp:33: error: using ‘typename’ outside of template
banyan/_int_imp/_tree_imp_pyobject_cached_key_value_type_set_base.hpp:35: error: using ‘typename’ outside of template
In file included from banyan/_int_imp/_tree_imp_lt_base.hpp:10,
from banyan/_int_imp/_tree_imp.hpp:7,
from banyan/_int_imp/_set_tree_imp.hpp:7,
from banyan/_int_imp/_build_tree_imp.cpp:9:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp: In member function ‘__MinGapMetadata<PyObject*>& __MinGapMetadata<PyObject*>::operator=(const __MinGapMetadata<PyObject*>::ThisT&)’:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:195: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp: In member function ‘void __MinGapMetadata<PyObject*>::update(PyObject*, const __MinGapMetadata<PyObject*>::ThisT*, const __MinGapMetadata<PyObject*>::ThisT*)’:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:206: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:208: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:210: warning: suggest explicit braces to avoid ambiguous ‘else’
In file included from banyan/_int_imp/_tree_imp_lt_base.hpp:11,
from banyan/_int_imp/_tree_imp.hpp:7,
from banyan/_int_imp/_set_tree_imp.hpp:7,
from banyan/_int_imp/_build_tree_imp.cpp:9:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp: In member function ‘_PyObjectIntervalMaxMetadata& _PyObjectIntervalMaxMetadata::operator=(const _PyObjectIntervalMaxMetadata&)’:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp:59: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp: In destructor ‘virtual _PyObjectIntervalMaxMetadata::~_PyObjectIntervalMaxMetadata()’:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp:73: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp: In member function ‘void _PyObjectIntervalMaxMetadata::update(PyObject*, const _PyObjectIntervalMaxMetadata*, const _PyObjectIntervalMaxMetadata*)’:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp:80: warning: suggest explicit braces to avoid ambiguous ‘else’
error: command 'gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-sclee1/banyan/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CZTp63-record/install-record.txt --single-version-externally-managed:
running install
running build
running build_py
running build_ext
building 'banyan_c' extension
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/module.cpp -o build/temp.linux-x86_64-2.6/banyan/module.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/set_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/set_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/min_gap_metadata.cpp -o build/temp.linux-x86_64-2.6/banyan/min_gap_metadata.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/frozen_set_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/frozen_set_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/tree.cpp -o build/temp.linux-x86_64-2.6/banyan/tree.o
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/rank_metadata.cpp -o build/temp.linux-x86_64-2.6/banyan/rank_metadata.o
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/node.cpp -o build/temp.linux-x86_64-2.6/banyan/node.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/frozen_dict_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/frozen_dict_tree.o
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/dict_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/dict_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/tree_view.cpp -o build/temp.linux-x86_64-2.6/banyan/tree_view.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
banyan/tree_view.cpp: In function ‘void tree_view_dealloc(TreeView*)’:
banyan/tree_view.cpp:37: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/tree_view.cpp:39: warning: suggest explicit braces to avoid ambiguous ‘else’
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/overlapping_intervals_metadata.cpp -o build/temp.linux-x86_64-2.6/banyan/overlapping_intervals_metadata.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/_int_imp/_pyobject_utils.cpp -o build/temp.linux-x86_64-2.6/banyan/_int_imp/_pyobject_utils.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
banyan/_int_imp/_pyobject_utils.cpp: In destructor ‘_CachedKeyPyObject::~_CachedKeyPyObject()’:
banyan/_int_imp/_pyobject_utils.cpp:416: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_pyobject_utils.cpp:418: warning: suggest explicit braces to avoid ambiguous ‘else’
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 -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/_int_imp/_build_tree_imp.cpp -o build/temp.linux-x86_64-2.6/banyan/_int_imp/_build_tree_imp.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
In file included from banyan/_int_imp/_tree_imp_metadata_base.hpp:14,
from banyan/_int_imp/_tree_imp_lt_base.hpp:6,
from banyan/_int_imp/_tree_imp.hpp:7,
from banyan/_int_imp/_set_tree_imp.hpp:7,
from banyan/_int_imp/_build_tree_imp.cpp:9:
banyan/_int_imp/_tree_imp_pyobject_cached_key_value_type_set_base.hpp: In constructor ‘_PyObjectCachedKeyUniqueSorterIncer<true>::_PyObjectCachedKeyUniqueSorterIncer(PyObject*, const _CachedKeyPyObjectCacheGeneratorLT&)’:
banyan/_int_imp/_tree_imp_pyobject_cached_key_value_type_set_base.hpp:33: error: using ‘typename’ outside of template
banyan/_int_imp/_tree_imp_pyobject_cached_key_value_type_set_base.hpp:35: error: using ‘typename’ outside of template
In file included from banyan/_int_imp/_tree_imp_lt_base.hpp:10,
from banyan/_int_imp/_tree_imp.hpp:7,
from banyan/_int_imp/_set_tree_imp.hpp:7,
from banyan/_int_imp/_build_tree_imp.cpp:9:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp: In member function ‘__MinGapMetadata<PyObject*>& __MinGapMetadata<PyObject*>::operator=(const __MinGapMetadata<PyObject*>::ThisT&)’:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:175: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp: In destructor ‘virtual __MinGapMetadata<PyObject*>::~__MinGapMetadata()’:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:195: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:197: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:199: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp: In member function ‘void __MinGapMetadata<PyObject*>::update(PyObject*, const __MinGapMetadata<PyObject*>::ThisT*, const __MinGapMetadata<PyObject*>::ThisT*)’:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:206: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:208: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:210: warning: suggest explicit braces to avoid ambiguous ‘else’
In file included from banyan/_int_imp/_tree_imp_lt_base.hpp:11,
from banyan/_int_imp/_tree_imp.hpp:7,
from banyan/_int_imp/_set_tree_imp.hpp:7,
from banyan/_int_imp/_build_tree_imp.cpp:9:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp: In member function ‘_PyObjectIntervalMaxMetadata& _PyObjectIntervalMaxMetadata::operator=(const _PyObjectIntervalMaxMetadata&)’:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp:59: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp: In destructor ‘virtual _PyObjectIntervalMaxMetadata::~_PyObjectIntervalMaxMetadata()’:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp:73: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp: In member function ‘void _PyObjectIntervalMaxMetadata::update(PyObject*, const _PyObjectIntervalMaxMetadata*, const _PyObjectIntervalMaxMetadata*)’:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp:80: warning: suggest explicit braces to avoid ambiguous ‘else’
error: command 'gcc' failed with exit status 1
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-sclee1/banyan/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CZTp63-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-sclee1/banyan
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 139, in main
status = self.run(options, args)
File "/usr/lib/python2.6/site-packages/pip/commands/install.py", line 271, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python2.6/site-packages/pip/req.py", line 1185, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/pip/req.py", line 592, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/usr/lib/python2.6/site-packages/pip/util.py", line 662, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-sclee1/banyan/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CZTp63-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-sclee1/banyan

Why don't you try installing an executable file from http://www.lfd.uci.edu/~gohlke/pythonlibs/. I always use when there is an issue with pip/easy_install

Related

Error while installing pam-python-1.0.5

When i run make command i 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 from /usr/include/python2.6/pyconfig.h:6,
from /usr/include/python2.6/Python.h:8,
from pam_python.c:36:
/usr/include/python2.6/pyconfig-64.h:1043:1: error: "_XOPEN_SOURCE" redefined
In file included from /usr/include/stdlib.h:25,
from /usr/include/security/_pam_macros.h:12,
from pam_python.c:32:
/usr/include/features.h:164:1: error: this is the location of the previous definition
error: command 'gcc' failed with exit status 1
System which i am using is CentOs 6.7.
Is there any other way to directly install pam module for python so that it generated pam_python.so in lib64/security directory.
Suggest : Use the 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 the package, and ...
cd Downloads/
# yum install python-pam-1.8.2-2.el6.noarch.rpm
EDIT : About the other "module" = pam-python 1.0.5 : Seems I found a solution →
cd pam-python-1.0.5/src/
python setup.py build
... and the file build/lib.linux-x86_64-2.6/pam-python.so was created.
Install : # python setup.py install ... the 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

Can't install Pillow in Fedora23

(.newenv)[max#cyber life_besto]$ sudo pip install git+https://github.com/python-pillow/Pillow.git
Collecting git+https://github.com/python-pillow/Pillow.git
Cloning https://github.com/python-pillow/Pillow.git to /tmp/pip-zSgmXr-build
Installing collected packages: Pillow
Found existing installation: Pillow 3.0.0
Uninstalling Pillow-3.0.0:
Successfully uninstalled Pillow-3.0.0
Running setup.py install for Pillow ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-zSgmXr-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-BMRc40-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/PIL
_____There are some codes_____
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c _imaging.c -o build/temp.linux-x86_64-2.7/_imaging.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/Bands.c -o build/temp.linux-x86_64-2.7/libImaging/Bands.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/ConvertYCbCr.c -o build/temp.linux-x86_64-2.7/libImaging/ConvertYCbCr.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/Draw.c -o build/temp.linux-x86_64-2.7/libImaging/Draw.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/GifEncode.c -o build/temp.linux-x86_64-2.7/libImaging/GifEncode.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/Filter.c -o build/temp.linux-x86_64-2.7/libImaging/Filter.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/LzwDecode.c -o build/temp.linux-x86_64-2.7/libImaging/LzwDecode.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/Offset.c -o build/temp.linux-x86_64-2.7/libImaging/Offset.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/Quant.c -o build/temp.linux-x86_64-2.7/libImaging/Quant.ogcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/RawEncode.c -o build/temp.linux-x86_64-2.7/libImaging/RawEncode.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/UnpackYCC.c -o build/temp.linux-x86_64-2.7/libImaging/UnpackYCC.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/ZipEncode.c -o build/temp.linux-x86_64-2.7/libImaging/ZipEncode.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/BoxBlur.c -o build/temp.linux-x86_64-2.7/libImaging/BoxBlur.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld build/temp.linux-x86_64-2.7/_imaging.o build/temp.linux-x86_64-2.7/decode.o build/temp.linux-x86_64-2.7/encode.o build/temp.linux-x86_64-2.7/map.o build/temp.linux-x86_64-2.7/display.o build/temp.linux-x86_64-2.7/outline.o build/temp.linux-x86_64-2.7/path.o build/temp.linux-x86_64-2.7/libImaging/Access.o build/temp.linux-x86_64-2.7/libImaging/AlphaComposite.o build/temp.linux-x86_64-2.7/libImaging/Resample.o build/temp.linux-x86_64-2.7/libImaging/Bands.o build/temp.linux-x86_64-2.7/libImaging/BitDecode.o build/temp.linux-x86_64-2.7/libImaging/Blend.o build/temp.linux-x86_64-2.7/libImaging/Chops.o build/temp.linux-x86_64-2.7/libImaging/Convert.o build/temp.linux-x86_64-2.7/libImaging/ConvertYCbCr.o build/temp.linux-x86_64-2.7/libImaging/Copy.o build/temp.linux-x86_64-2.7/libImaging/Crc32.o build/temp.linux-x86_64-2.7/libImaging/Crop.o build/temp.linux-x86_64-2.7/libImaging/Dib.o build/temp.linux-x86_64-2.7/libImaging/Draw.o build/temp.linux-x86_64-2.7/libImaging/Effects.o build/temp.linux-x86_64-2.7/libImaging/EpsEncode.o build/temp.linux-x86_64-2.7/libImaging/File.o build/temp.linux-x86_64-2.7/libImaging/Fill.o build/temp.linux-x86_64-2.7/libImaging/Filter.o build/temp.linux-x86_64-2.7/libImaging/FliDecode.o build/temp.linux-x86_64-2.7/libImaging/Geometry.o build/temp.linux-x86_64-2.7/libImaging/GetBBox.o build/temp.linux-x86_64-2.7/libImaging/GifDecode.o build/temp.linux-x86_64-2.7/libImaging/GifEncode.o build/temp.linux-x86_64-2.7/libImaging/HexDecode.o build/temp.linux-x86_64-2.7/libImaging/Histo.o build/temp.linux-x86_64-2.7/libImaging/JpegDecode.o build/temp.linux-x86_64-2.7/libImaging/JpegEncode.o build/temp.linux-x86_64-2.7/libImaging/LzwDecode.o build/temp.linux-x86_64-2.7/libImaging/Matrix.o build/temp.linux-x86_64-2.7/libImaging/ModeFilter.o build/temp.linux-x86_64-2.7/libImaging/MspDecode.o build/temp.linux-x86_64-2.7/libImaging/Negative.o build/temp.linux-x86_64-2.7/libImaging/Offset.o build/temp.linux-x86_64-2.7/libImaging/Pack.o build/temp.linux-x86_64-2.7/libImaging/PackDecode.o build/temp.linux-x86_64-2.7/libImaging/Palette.o build/temp.linux-x86_64-2.7/libImaging/Paste.o build/temp.linux-x86_64-2.7/libImaging/Quant.o build/temp.linux-x86_64-2.7/libImaging/QuantOctree.o build/temp.linux-x86_64-2.7/libImaging/QuantHash.o build/temp.linux-x86_64-2.7/libImaging/QuantHeap.o build/temp.linux-x86_64-2.7/libImaging/PcdDecode.o build/temp.linux-x86_64-2.7/libImaging/PcxDecode.o build/temp.linux-x86_64-2.7/libImaging/PcxEncode.o build/temp.linux-x86_64-2.7/libImaging/Point.o build/temp.linux-x86_64-2.7/libImaging/RankFilter.o build/temp.linux-x86_64-2.7/libImaging/RawDecode.o build/temp.linux-x86_64-2.7/libImaging/RawEncode.o build/temp.linux-x86_64-2.7/libImaging/Storage.o build/temp.linux-x86_64-2.7/libImaging/SunRleDecode.o build/temp.linux-x86_64-2.7/libImaging/TgaRleDecode.o build/temp.linux-x86_64-2.7/libImaging/Unpack.o build/temp.linux-x86_64-2.7/libImaging/UnpackYCC.o build/temp.linux-x86_64-2.7/libImaging/UnsharpMask.o build/temp.linux-x86_64-2.7/libImaging/XbmDecode.o build/temp.linux-x86_64-2.7/libImaging/XbmEncode.o build/temp.linux-x86_64-2.7/libImaging/ZipDecode.o build/temp.linux-x86_64-2.7/libImaging/ZipEncode.o build/temp.linux-x86_64-2.7/libImaging/TiffDecode.o build/temp.linux-x86_64-2.7/libImaging/Incremental.o build/temp.linux-x86_64-2.7/libImaging/Jpeg2KDecode.o build/temp.linux-x86_64-2.7/libImaging/Jpeg2KEncode.o build/temp.linux-x86_64-2.7/libImaging/BoxBlur.o build/temp.linux-x86_64-2.7/libImaging/QuantPngQuant.o -L/usr/lib -L/usr/lib64 -L/usr/local/lib -L/usr/lib64 -ljpeg -lz -ltiff -lpython2.7 -o build/lib.linux-x86_64-2.7/PIL/_imaging.so
gcc: error: build/temp.linux-x86_64-2.7/_imaging.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/decode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/encode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/map.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/display.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/outline.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/path.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Access.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/AlphaComposite.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Resample.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Bands.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/BitDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Blend.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Chops.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Convert.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/ConvertYCbCr.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Copy.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Crc32.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Crop.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Dib.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Draw.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Effects.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/EpsEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/File.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Fill.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Filter.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/FliDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Geometry.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/GetBBox.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/GifDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/GifEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/HexDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Histo.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/JpegDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/JpegEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/LzwDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Matrix.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/ModeFilter.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/MspDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Negative.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Offset.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Pack.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/PackDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Palette.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Paste.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Quant.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/QuantOctree.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/QuantHash.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/QuantHeap.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/PcdDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/PcxDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/PcxEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Point.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/RankFilter.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/RawDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/RawEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Storage.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/SunRleDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/TgaRleDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Unpack.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/UnpackYCC.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/UnsharpMask.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/XbmDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/XbmEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/ZipDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/ZipEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/TiffDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Incremental.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Jpeg2KDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Jpeg2KEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/BoxBlur.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/QuantPngQuant.o: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-ld: No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Rolling back uninstall of Pillow
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-zSgmXr-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-BMRc40-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-zSgmXr-build/
I also tried to install using pip install Pillow, but it didn't help too.
Try installing python-devel as well as redhat-rpm-config packages first (see how to do it here), then pip install Pillow.
More info on manual installation (as opposed to installing native OS packages like python-imaging) you'll find in official installation guide

In Python2.7, undefined symbol importing P4API

On RHEL5 (5.3) I've installed python27, python27-devel, setuptools, gcc44, gcc44-c++, and P4PythonInstaller. All seemingly installed just fine, with no reported errors.
However when I open Python2.7 and attempt to import P4 or P4API I receive the following error:
ImportError: /usr/lib64/python2.7/site-packages/P4API.so: undefined symbol: _ZNSo9_M_insertI1EERSoT_
That looks like a mangled name but it's not clear to me what the original name might be (other than just "insert"), or what library it might need.
I've tried running python with LD_DEBUG=libs and it seems to find all of the libraries it's looking for.
Any thoughts as to what might be going wrong? Google's not helping me much tonight.
Thanks in advance!
Update:
I attempted to build P4Python from source, using the Linux26x86_64 version of P4API, but I'm still receiving the same error.
Update 2:
When running ldd P4API.so on the generated library, I get the following:
librt.so.1 => /lib64/librt.so.1 (0x00002b09f166a000)
libpython2.7.so.1.0 => /usr/lib64/libpython2.7.so.1.0 (0x00002b09f1873000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b09f1c36000)
libm.so.6 => /lib64/libm.so.6 (0x00002b09f1f37000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b09f21ba000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b09f23c8000)
libc.so.6 => /lib64/libc.so.6 (0x00002b09f25e5000)
/lib64/ld-linux-x86-64.so.2 (0x00002b09f10c0000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002b09f293d000)
libutil.so.1 => /lib64/libutil.so.1 (0x00002b09f2b41000)
And this is the compiler output:
API Release 2012.1
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying P4.py -> build/lib.linux-x86_64-2.7
running build_ext
building 'P4API' extension
creating build/temp.linux-x86_64-2.7
gcc44 -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 -I/usr/kerberos/include -I/usr/include/expat2 -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 -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.1" -DID_PATCH="511074" -DID_API="2012.1/442152" -DID_Y="2012" -DID_M="08" -DID_D="15" -I/home/bbbrooks/p4python_test/p4api-2012.1.442152 -I/home/bbbrooks/p4python_test/p4api-2012.1.442152/include/p4 -I/usr/include/python2.7 -c P4API.cpp -o build/temp.linux-x86_64-2.7/P4API.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
gcc44 -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 -I/usr/kerberos/include -I/usr/include/expat2 -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 -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.1" -DID_PATCH="511074" -DID_API="2012.1/442152" -DID_Y="2012" -DID_M="08" -DID_D="15" -I/home/bbbrooks/p4python_test/p4api-2012.1.442152 -I/home/bbbrooks/p4python_test/p4api-2012.1.442152/include/p4 -I/usr/include/python2.7 -c PythonClientAPI.cpp -o build/temp.linux-x86_64-2.7/PythonClientAPI.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
gcc44 -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 -I/usr/kerberos/include -I/usr/include/expat2 -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 -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.1" -DID_PATCH="511074" -DID_API="2012.1/442152" -DID_Y="2012" -DID_M="08" -DID_D="15" -I/home/bbbrooks/p4python_test/p4api-2012.1.442152 -I/home/bbbrooks/p4python_test/p4api-2012.1.442152/include/p4 -I/usr/include/python2.7 -c PythonClientUser.cpp -o build/temp.linux-x86_64-2.7/PythonClientUser.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
gcc44 -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 -I/usr/kerberos/include -I/usr/include/expat2 -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 -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.1" -DID_PATCH="511074" -DID_API="2012.1/442152" -DID_Y="2012" -DID_M="08" -DID_D="15" -I/home/bbbrooks/p4python_test/p4api-2012.1.442152 -I/home/bbbrooks/p4python_test/p4api-2012.1.442152/include/p4 -I/usr/include/python2.7 -c SpecMgr.cpp -o build/temp.linux-x86_64-2.7/SpecMgr.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
gcc44 -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 -I/usr/kerberos/include -I/usr/include/expat2 -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 -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.1" -DID_PATCH="511074" -DID_API="2012.1/442152" -DID_Y="2012" -DID_M="08" -DID_D="15" -I/home/bbbrooks/p4python_test/p4api-2012.1.442152 -I/home/bbbrooks/p4python_test/p4api-2012.1.442152/include/p4 -I/usr/include/python2.7 -c P4Result.cpp -o build/temp.linux-x86_64-2.7/P4Result.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
gcc44 -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 -I/usr/kerberos/include -I/usr/include/expat2 -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 -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.1" -DID_PATCH="511074" -DID_API="2012.1/442152" -DID_Y="2012" -DID_M="08" -DID_D="15" -I/home/bbbrooks/p4python_test/p4api-2012.1.442152 -I/home/bbbrooks/p4python_test/p4api-2012.1.442152/include/p4 -I/usr/include/python2.7 -c PythonMergeData.cpp -o build/temp.linux-x86_64-2.7/PythonMergeData.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
gcc44 -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 -I/usr/kerberos/include -I/usr/include/expat2 -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 -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.1" -DID_PATCH="511074" -DID_API="2012.1/442152" -DID_Y="2012" -DID_M="08" -DID_D="15" -I/home/bbbrooks/p4python_test/p4api-2012.1.442152 -I/home/bbbrooks/p4python_test/p4api-2012.1.442152/include/p4 -I/usr/include/python2.7 -c P4MapMaker.cpp -o build/temp.linux-x86_64-2.7/P4MapMaker.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
gcc44 -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 -I/usr/kerberos/include -I/usr/include/expat2 -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 -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.1" -DID_PATCH="511074" -DID_API="2012.1/442152" -DID_Y="2012" -DID_M="08" -DID_D="15" -I/home/bbbrooks/p4python_test/p4api-2012.1.442152 -I/home/bbbrooks/p4python_test/p4api-2012.1.442152/include/p4 -I/usr/include/python2.7 -c PythonSpecData.cpp -o build/temp.linux-x86_64-2.7/PythonSpecData.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
gcc44 -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 -I/usr/kerberos/include -I/usr/include/expat2 -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 -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.1" -DID_PATCH="511074" -DID_API="2012.1/442152" -DID_Y="2012" -DID_M="08" -DID_D="15" -I/home/bbbrooks/p4python_test/p4api-2012.1.442152 -I/home/bbbrooks/p4python_test/p4api-2012.1.442152/include/p4 -I/usr/include/python2.7 -c PythonMessage.cpp -o build/temp.linux-x86_64-2.7/PythonMessage.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
gcc44 -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 -I/usr/kerberos/include -I/usr/include/expat2 -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 -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.1" -DID_PATCH="511074" -DID_API="2012.1/442152" -DID_Y="2012" -DID_M="08" -DID_D="15" -I/home/bbbrooks/p4python_test/p4api-2012.1.442152 -I/home/bbbrooks/p4python_test/p4api-2012.1.442152/include/p4 -I/usr/include/python2.7 -c PythonActionMergeData.cpp -o build/temp.linux-x86_64-2.7/PythonActionMergeData.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
c++ -pthread -shared -L/usr/kerberos/lib64 -L/usr/lib64/expat2 build/temp.linux-x86_64-2.7/P4API.o build/temp.linux-x86_64-2.7/PythonClientAPI.o build/temp.linux-x86_64-2.7/PythonClientUser.o build/temp.linux-x86_64-2.7/SpecMgr.o build/temp.linux-x86_64-2.7/P4Result.o build/temp.linux-x86_64-2.7/PythonMergeData.o build/temp.linux-x86_64-2.7/P4MapMaker.o build/temp.linux-x86_64-2.7/PythonSpecData.o build/temp.linux-x86_64-2.7/PythonMessage.o build/temp.linux-x86_64-2.7/PythonActionMergeData.o -L/home/bbbrooks/p4python_test/p4api-2012.1.442152 -L/home/bbbrooks/p4python_test/p4api-2012.1.442152/lib -L/usr/lib64 -lclient -lrpc -lsupp -lp4sslstub -lrt -lpython2.7 -o build/lib.linux-x86_64-2.7/P4API.so
Update 3:
I still haven't found a solution to this problem, but I have found a work-around that I believe narrows down the cause.
I installed python2.6 and python26-devel, and was able to compile and use P4Python (both P4 and P4API) just fine. I'm guessing the root of the problem lies somewhere in python27-devel, but I just don't know enough about linux development to identify and fix the root cause.
I'll leave this question open as I'd still like to find a Python2.7 solution, and I'm willing to help track one down.
From the error message, I got the impression that your configuration uses one library which was compiled either with the wrong compiler / compiler settingsor on the wrong system.
P4API uses this library, but it is possible, that this library is not part of P4API and therefore it was not built when you re-built P4API on your system.
You could check all libs it depends on and try to figure out suspicious ones.
I was just taking a look on ther perforce P4Python website and it says:
To build P4Python from source, your development machine must also have:
The 2012.2 Perforce C/C++ API for your target platform
The same C++ compiler used to build the Perforce C++ API on your target platform.
(If you get "unresolved symbol" errors when building or running
P4Python, you probably used the wrong compiler or the wrong Perforce
API build. )
So it seems you'll have to build PyPython AND the P4 API with the same compiler on your local machine.

SciPy installation fails: quadpack error

I tried to install scipy on my user account ~/local using both easy_install and the 'python setup.py install' method with source files. I get this error:
error: Setup script exited with error:
Command "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 -fPIC
-I/usr/lib64/python2.6/site-packages/numpy/core/include -I/usr/include/python2.6
-c scipy/integrate/_quadpackmodule.c
-o build/temp.linux-x86_64-2.6/scipy/integrate/_quadpackmodule.o"
failed with exit status 1
I'm using 'gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)'. Could this issue be related to the compiler or python2.6 version? Otherwise what could I check?
Thanks!
F.

Python: mysqldb install error

So i've been pulling my hair out trying to install the mysqldb package.
When i run the build i get a long transcript of errors, heres just part of it, i would posit it all but its huge list of errors
[rv#med240-183 MySQL-python-1.2.3c1]$ sudo python setup.py build
[sudo] password for rv:
running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-i686-2.6/MySQLdb
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -Dversion_info=(1,2,3,'gamma',1) -D__version__=1.2.3c1 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-i686-2.6/_mysql.o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -DUNIV_LINUX
_mysql.c:36:23: error: my_config.h: No such file or directory
_mysql.c:38:19: error: mysql.h: No such file or directory
Any ideas?
yum install mysql-devel

Categories

Resources