爬虫第一步:scrapy-安装教程

来源:互联网 发布:西安软件测试工资待遇 编辑:程序博客网 时间:2024/06/06 11:47

rpm包源码包

pip的安装

执行 (sudo) python get-pip.py

第一个错误:




解决办法:OpenSSL的安装

检查是否已经安装了ssl

没有安装ssl

下载openssl源码,解压后执行(注意:./Configure和./config的区别) 
第一步:./config --prefix=/usr/local/openssl。

#第二步:gedit /etc/bash.bashrc 配置
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/openssl/lib/pkgconfig
export PKG_CONFIG_PATH

#第三步:gedit /etc/ld.so.conf,在文件的末尾添加
/usr/local/openssl/lib

第四步:gedit /python的路径/Modules/Setup.dist
找到文档里这一块,取消注释,SSL为我们安装的openssl的安装路径
SSL=/usr/local/openssl
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto

第五步:重新编译安装python
./configure --prefix=/usr/local/python
make
make install
安装完成后,


安装成功
然后,执行 python get-pip.py,提示安装成功。

$pip
提示没有安装。原因,没有将添加环境变量。
$ gedit /etc/profile 
PATH=$PATH:/usr/local/python/bin
export PATH

pip安装scrapy

$pip install scrapy,提示:


下载Twisted,
解压后安装,
python setup.py build
python setup.py install
再次执行
$pip install scrapy
出现以下错误

安装libxml2
下载后,我下载的是libxml2-2.9.2,发现没有configure
apt-get install libtool
$ libtoolize --force
$ aclocal
$ autoheader
$ automake --force-missing --add-missing
$ autoconf
$ ./configure
需要上面的步骤,自动生成configure文件。

执行以下命令:
./configure --prefix=/usr/local/libxml2
make
make install
/usr/bin/ld: /usr/local/python/lib/python2.7/config/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/python2.7/config/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusmake[4]: *** [libxml2mod.la] Error 1make[4]: Leaving directory `/home/zhangping/soft/libxml2-2.9.2/python'make[3]: *** [all-recursive] Error 1make[3]: Leaving directory `/home/zhangping/soft/libxml2-2.9.2/python'make[2]: *** [all] Error 2make[2]: Leaving directory `/home/zhangping/soft/libxml2-2.9.2/python'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/zhangping/soft/libxml2-2.9.2'make: *** [all] Error 2
错误
----------------------------------------------------------------解决办法------------------------------------------------------------------------------------------------
重新编译:openssl
./config --prefix=/usr/local/openssl shared
make 
make install
发现在/usr/local/openssl/lib出现了.so文件
重新编译python
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_testcapimodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_testcapimodule.o<strong>gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_testcapimodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_testcapi.so</strong><span style="color:#006600;"><strong>/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_hotshot' extension</strong></span>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_hotshot.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_hotshot.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_hotshot.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_hotshot.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(codeobject.o): relocation R_X86_64_32S against `PyString_Type' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_lsprof' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_lsprof.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_lsprof.ogcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/rotatingtree.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/rotatingtree.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_lsprof.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/rotatingtree.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_lsprof.so<span style="color:#ff0000;"><strong>/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'unicodedata' extension</strong></span>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/unicodedata.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/unicodedata.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/unicodedata.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/unicodedata.so<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_locale' extension</span></strong>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_localemodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_localemodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_localemodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_locale.so<span style="color:#ff0000;"><strong>/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'fcntl' extension</strong></span>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/fcntlmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/fcntlmodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/fcntlmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/fcntl.so<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'grp' extension</span></strong>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/grpmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/grpmodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/grpmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/grp.so<span style="color:#ff0000;"><strong>/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'spwd' extension</strong></span>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/spwdmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/spwdmodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/spwdmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/spwd.so<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'select' extension</span></strong>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/selectmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/selectmodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/selectmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/select.so<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'parser' extension</span></strong>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/parsermodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/parsermodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/parsermodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/parser.so<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(parsetok.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'cStringIO' extension</span></strong>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cStringIO.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cStringIO.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cStringIO.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/cStringIO.so<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'cPickle' extension</span></strong>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cPickle.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cPickle.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cPickle.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/cPickle.so<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'mmap' extension</span></strong>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/mmapmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/mmapmodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/mmapmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/mmap.so<span style="color:#ff0000;"><strong>/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'syslog' extension</strong></span>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/syslogmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/syslogmodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/syslogmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/syslog.so<span style="color:#ff0000;"><strong>/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(intobject.o): relocation R_X86_64_32S against `PyInt_Type' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'audioop' extension</strong></span>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/audioop.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/audioop.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/audioop.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/audioop.so<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'crypt' extension</span></strong>gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cryptmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cryptmodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cryptmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 -o build/lib.linux-x86_64-2.7/crypt.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(getargs.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_csv' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_csv.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_csv.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_csv.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_csv.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_socket' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/socketmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/socketmodule.o/home/zhangping/soft/Python-2.7.10/Modules/socketmodule.c: In function ‘socket_gethostbyname_ex’:/home/zhangping/soft/Python-2.7.10/Modules/socketmodule.c:3453:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]     int result;         ^/home/zhangping/soft/Python-2.7.10/Modules/socketmodule.c: In function ‘socket_gethostbyaddr’:/home/zhangping/soft/Python-2.7.10/Modules/socketmodule.c:3529:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]     int result;         ^gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/timemodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/timemodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/socketmodule.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/timemodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/_socket.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_sha' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/shamodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/shamodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/shamodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_sha.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_md5' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/md5module.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/md5module.ogcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/md5.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/md5.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/md5module.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/md5.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_md5.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_sha256' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/sha256module.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/sha256module.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/sha256module.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_sha256.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_sha512' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/sha512module.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/sha512module.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/sha512module.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_sha512.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'termios' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/termios.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/termios.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/termios.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/termios.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'resource' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/resource.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/resource.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/resource.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/resource.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'nis' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/nismodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/nismodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/nismodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lnsl -lpython2.7 -o build/lib.linux-x86_64-2.7/nis.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(listobject.o): relocation R_X86_64_32 against `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_curses' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_cursesmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_cursesmodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_cursesmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lncurses -lpython2.7 -o build/lib.linux-x86_64-2.7/_curses.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_curses_panel' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_curses_panel.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_curses_panel.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_curses_panel.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpanel -lncurses -lpython2.7 -o build/lib.linux-x86_64-2.7/_curses_panel.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'zlib' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/zlibmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/zlibmodule.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/zlibmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lz -lpython2.7 -o build/lib.linux-x86_64-2.7/zlib.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'binascii' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/binascii.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/binascii.o -DUSE_ZLIB_CRC32gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/binascii.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lz -lpython2.7 -o build/lib.linux-x86_64-2.7/binascii.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'pyexpat' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/zhangping/soft/Python-2.7.10/./Modules/expat -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/pyexpat.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/pyexpat.ogcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/zhangping/soft/Python-2.7.10/./Modules/expat -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/expat/xmlparse.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/expat/xmlparse.oIn file included from /home/zhangping/soft/Python-2.7.10/./Modules/expat/expat_config.h:8:0,                 from /home/zhangping/soft/Python-2.7.10/Modules/expat/xmlparse.c:22:./pyconfig.h:1188:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default] #define _POSIX_C_SOURCE 200112L ^In file included from /usr/include/string.h:25:0,                 from /home/zhangping/soft/Python-2.7.10/Modules/expat/xmlparse.c:6:/usr/include/features.h:230:0: note: this is the location of the previous definition # define _POSIX_C_SOURCE 200809L ^gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/zhangping/soft/Python-2.7.10/./Modules/expat -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/expat/xmlrole.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/expat/xmlrole.ogcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/zhangping/soft/Python-2.7.10/./Modules/expat -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/expat/xmltok.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/expat/xmltok.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/pyexpat.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/expat/xmlparse.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/expat/xmlrole.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/expat/xmltok.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/pyexpat.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_elementtree' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/zhangping/soft/Python-2.7.10/./Modules/expat -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_elementtree.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_elementtree.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_elementtree.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_elementtree.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_multibytecodec' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/multibytecodec.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/multibytecodec.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/multibytecodec.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_multibytecodec.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_codecs_kr' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_kr.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_kr.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_kr.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_codecs_kr.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_codecs_jp' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_jp.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_jp.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_jp.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_codecs_jp.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_codecs_cn' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_cn.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_cn.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_cn.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_codecs_cn.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_codecs_tw' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_tw.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_tw.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_tw.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_codecs_tw.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_codecs_hk' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_hk.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_hk.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_hk.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_codecs_hk.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_codecs_iso2022' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_iso2022.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_iso2022.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_iso2022.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_codecs_iso2022.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_multiprocessing' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -IModules/_multiprocessing -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/multiprocessing.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/multiprocessing.ogcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -IModules/_multiprocessing -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/socket_connection.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/socket_connection.ogcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -IModules/_multiprocessing -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/semaphore.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/semaphore.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/multiprocessing.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/socket_connection.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/semaphore.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_multiprocessing.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'linuxaudiodev' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/linuxaudiodev.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/linuxaudiodev.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/linuxaudiodev.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/linuxaudiodev.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding 'ossaudiodev' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/ossaudiodev.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/ossaudiodev.ogcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/ossaudiodev.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/ossaudiodev.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusbuilding '_ctypes' extensiongcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/_ctypes.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/_ctypes.o -Wall -fexceptionsgcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/callbacks.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/callbacks.o -Wall -fexceptionsgcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/callproc.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/callproc.o -Wall -fexceptionsgcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/stgdict.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/stgdict.o -Wall -fexceptionsgcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/cfield.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/cfield.o -Wall -fexceptions/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/cfield.c: In function ‘PyCField_FromDesc’:/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/cfield.c:50:29: warning: variable ‘length’ set but not used [-Wunused-but-set-variable]     Py_ssize_t size, align, length;                             ^gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/prep_cif.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/prep_cif.o -Wall -fexceptionsgcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/closures.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/closures.o -Wall -fexceptions/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/closures.c: In function ‘dlmmap_locked’:/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/closures.c:460:17: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result]       ftruncate (execfd, offset);                 ^/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/closures.c:472:17: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result]       ftruncate (execfd, offset);                 ^gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/ffi64.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/ffi64.o -Wall -fexceptionsgcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/unix64.S -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/unix64.o -Wall -fexceptionsgcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/ffi.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/ffi.o -Wall -fexceptionsgcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/sysv.S -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/sysv.o -Wall -fexceptionsgcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/_ctypes.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/callbacks.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/callproc.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/stgdict.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/cfield.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/prep_cif.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/closures.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/ffi64.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/unix64.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/ffi.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/sysv.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_ctypes.so/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad valuecollect2: error: ld returned 1 exit status




0 0