This is documented in:

https://modwsgi.readthedocs.io/en/develop/user-guides/installation-issues.html#mixing-32-bit-and-64-bit-packages
 
<https://modwsgi.readthedocs.io/en/develop/user-guides/installation-issues.html#mixing-32-bit-and-64-bit-packages>

You are missing the Python shared library.

You need to reinstall Python from fresh source code and enable creation of 
shared libraries.

Also see:

http://blog.dscpl.com.au/2015/06/installing-custom-python-version-into.html 
<http://blog.dscpl.com.au/2015/06/installing-custom-python-version-into.html>

Just ignore that the latter talks about Docker as still relevant.

Graham

> On 27 Feb 2020, at 11:59 pm, dhananjay shingote 
> <[email protected]> wrote:
> 
> HI Folks , 
> 
> Facing below issue while installing mod_wsgi-4.7.0. I am using python 3.7.4 
> version and Apache/2.4.6 ON RHEL 7 . Any idea how can I resolve this issue?
> 
> 
> /bin/ld: /usr/local/lib/libpython3.7m.a(descrobject.o): relocation 
> R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared 
> object; recompile with -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(enumobject.o): relocation R_X86_64_32 
> against `.data' can not be used when making a shared object; recompile with 
> -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(genobject.o): relocation R_X86_64_32 
> against symbol `_Py_NoneStruct' can not be used when making a shared object; 
> recompile with -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(odictobject.o): relocation 
> R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared 
> object; recompile with -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(namespaceobject.o): relocation 
> R_X86_64_32S against symbol `_PyNamespace_Type' can not be used when making a 
> shared object; recompile with -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(Python-ast.o): relocation R_X86_64_32 
> against symbol `_Py_NoneStruct' can not be used when making a shared object; 
> recompile with -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(ast.o): relocation R_X86_64_32 
> against `.rodata.str1.1' can not be used when making a shared object; 
> recompile with -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(ast_opt.o): relocation R_X86_64_32S 
> against `.rodata' can not be used when making a shared object; recompile with 
> -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(ast_unparse.o): relocation 
> R_X86_64_32S against `.rodata' can not be used when making a shared object; 
> recompile with -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(getcompiler.o): relocation 
> R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared 
> object; recompile with -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(getcopyright.o): relocation 
> R_X86_64_32 against `.rodata' can not be used when making a shared object; 
> recompile with -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(getplatform.o): relocation 
> R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared 
> object; recompile with -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(structmember.o): relocation 
> R_X86_64_32S against `.rodata' can not be used when making a shared object; 
> recompile with -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(getopt.o): relocation R_X86_64_32S 
> against `.rodata.str4.4' can not be used when making a shared object; 
> recompile with -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(parser.o): relocation R_X86_64_32 
> against `.rodata.str1.8' can not be used when making a shared object; 
> recompile with -fPIC
> /bin/ld: /usr/local/lib/libpython3.7m.a(node.o): relocation R_X86_64_PC32 
> against symbol `PyObject_Free' can not be used when making a shared object; 
> recompile with -fPIC
> /bin/ld: final link failed: Bad value
> collect2: error: ld returned 1 exit status
> apxs:Error: Command failed with rc=65536
> .
> make: *** [src/server/mod_wsgi.la] Error 1
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/04311a81-a8df-4adf-88da-9e57e7032542%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/04311a81-a8df-4adf-88da-9e57e7032542%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/A4E51705-3D9C-4704-A85B-9ED1EB60D8CC%40gmail.com.

Reply via email to