Dear All, I'm trying to compile uwsgi as core and then add on top the plugins for Python 2.7 and Python 3.4 in order to make them work together under the same emperor.
I'm using Ubuntu 14.04 LTS (Linux XXXX 3.14.32-xxxx-grs-ipv6-64 #1 SMP Sat Feb 7 11:35:27 CET 2015 x86_64 x86_64 x86_64 GNU/Linux) with the two Python versions compiled manually with the following configure command: For Python 2.7.10 ./configure --prefix=/opt/python2.7 For Python 3.4.0 ./configure --prefix=/opt/python3.4 Using uWSGI version 2.0.11.1 I first build the uWSGI core with the following command: /opt/python2.7/bin/python uwsgiconfig.py --build core then I build the Python plugins: PYTHON=/opt/python2.7/bin/python ./uwsgi --build-plugin "plugins/python python27" and I get the following error: *** uWSGI building and linking plugin from plugins/python *** [gcc -pthread] python27_plugin.so /usr/bin/ld: /opt/python2.7/lib/python2.7/config/libpython2.7.a(abstract.o): *relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC* /opt/python2.7/lib/python2.7/config/libpython2.7.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status *** unable to build python27 plugin *** The same happpens with the other command: /opt/python2.7/bin/python uwsgiconfig.py --plugin plugins/python using profile: buildconf/default.ini detected include path: ['/usr/lib/gcc/x86_64-linux-gnu/4.8/include', '/usr/local/include', '/usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed', '/usr/include/x86_64-linux-gnu', '/usr/include'] *** uWSGI building and linking plugin plugins/python *** [gcc -pthread] ./python_plugin.so /usr/bin/ld: /opt/python2.7/lib/python2.7/config/libpython2.7.a(abstract.o): *relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC* /opt/python2.7/lib/python2.7/config/libpython2.7.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status *** unable to build python plugin *** While it's working with Python 3.4 PYTHON=/opt/python3.4/bin/python3 ./uwsgi --build-plugin "plugins/python python34" *** uWSGI building and linking plugin from plugins/python *** [gcc -pthread] python34_plugin.so build time: 3 seconds *** python34 plugin built and available in python34_plugin.so *** Do you have any idea why I get this error? Am I missing some configuration parameter before the Python compilation? Kind regards Francesco
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
