louking / runningroutes

running routes maps and routes with elevation
3 stars 1 forks source link

mod_wsgi build error #152

Closed louking closed 2 years ago

louking commented 2 years ago

failed install when trying to build mod_wsgi

      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/mod_wsgi.c -o build/temp.linux-x86_64-3.10/src/server/mod_wsgi.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1      src/server/mod_wsgi.c: In function ‘wsgi_socket_sendv’:
      src/server/mod_wsgi.c:11052:44: warning: signed and unsigned type in conditional expression [-Wsign-compare]
                           (nvec < iov_max ? nvec : (int)iov_max));
                                                  ^
      src/server/mod_wsgi.c: In function ‘wsgi_scan_headers’:
      src/server/mod_wsgi.c:11211:30: warning: signed and unsigned type in conditional expression [-Wsign-compare]
           buflen = buffer ? buflen : sizeof(x);
                                    ^
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/wsgi_apache.c -o build/temp.linux-x86_64-3.10/src/server/wsgi_apache.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/wsgi_buckets.c -o build/temp.linux-x86_64-3.10/src/server/wsgi_buckets.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/wsgi_convert.c -o build/temp.linux-x86_64-3.10/src/server/wsgi_convert.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/wsgi_daemon.c -o build/temp.linux-x86_64-3.10/src/server/wsgi_daemon.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/wsgi_interp.c -o build/temp.linux-x86_64-3.10/src/server/wsgi_interp.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/wsgi_logger.c -o build/temp.linux-x86_64-3.10/src/server/wsgi_logger.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/wsgi_memory.c -o build/temp.linux-x86_64-3.10/src/server/wsgi_memory.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/wsgi_metrics.c -o build/temp.linux-x86_64-3.10/src/server/wsgi_metrics.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/wsgi_restrict.c -o build/temp.linux-x86_64-3.10/src/server/wsgi_restrict.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/wsgi_server.c -o build/temp.linux-x86_64-3.10/src/server/wsgi_server.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/wsgi_stream.c -o build/temp.linux-x86_64-3.10/src/server/wsgi_stream.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/wsgi_thread.c -o build/temp.linux-x86_64-3.10/src/server/wsgi_thread.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/httpd -I/var/www/sandbox.routes.loutilities.com/venv/include -I/usr/local/include/python3.10 -c src/server/wsgi_validate.c -o build/temp.linux-x86_64-3.10/src/server/wsgi_validate.o -I/usr/include/httpd -I. -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/apr-1 -I/usr/include/apr-1
      gcc -pthread -shared build/temp.linux-x86_64-3.10/src/server/mod_wsgi.o build/temp.linux-x86_64-3.10/src/server/wsgi_apache.o build/temp.linux-x86_64-3.10/src/server/wsgi_buckets.o build/temp.linux-x86_64-3.10/src/server/wsgi_convert.o build/temp.linux-x86_64-3.10/src/server/wsgi_daemon.o build/temp.linux-x86_64-3.10/src/server/wsgi_interp.o build/temp.linux-x86_64-3.10/src/server/wsgi_logger.o build/temp.linux-x86_64-3.10/src/server/wsgi_memory.o build/temp.linux-x86_64-3.10/src/server/wsgi_metrics.o build/temp.linux-x86_64-3.10/src/server/wsgi_restrict.o build/temp.linux-x86_64-3.10/src/server/wsgi_server.o build/temp.linux-x86_64-3.10/src/server/wsgi_stream.o build/temp.linux-x86_64-3.10/src/server/wsgi_thread.o build/temp.linux-x86_64-3.10/src/server/wsgi_validate.o -Wl,--enable-new-dtags,-R/usr/local/lib -Wl,--enable-new-dtags,-R/usr/local/lib/python3.10/config -o build/lib.linux-x86_64-3.10/mod_wsgi/server/mod_wsgi-py310.cpython-310-x86_64-linux-gnu.so -L/usr/local/lib -L/usr/local/lib/python3.10/config -lpython3.10
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making 
a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(boolobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(bytearrayobject.o): relocation R_X86_64_32 against symbol `_PyByteArray_empty_string' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(bytesobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(call.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(capsule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(complexobject.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(exceptions.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(genericaliasobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(genobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(fileobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(floatobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(frameobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(iterobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(listobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(longobject.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(dictobject.o): relocation R_X86_64_32S against `.text.hot' can not be used when making a 
shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(memoryobject.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(methodobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(moduleobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(object.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a 
shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(obmalloc.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making 
a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(picklebufobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(rangeobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(setobject.o): relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(sliceobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(structseq.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(tupleobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(typeobject.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(unicodeobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(unicodectype.o): relocation R_X86_64_32S against `.rodata' can not be used when making a 
shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(unionobject.o): relocation R_X86_64_32S against symbol `Py_GenericAliasType' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(weakrefobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_warnings.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(ceval.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(codecs.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a 
shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(compile.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(errors.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(future.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a 
shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(getargs.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when 
making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(getversion.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(import.o): relocation R_X86_64_32S against symbol `PyDict_Type' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(importdl.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making 
a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(initconfig.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(marshal.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(modsupport.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(mystrtoul.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(pathconfig.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(preconfig.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(pyhash.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(pylifecycle.o): relocation R_X86_64_32S against symbol `_Py_FalseStruct' can not be used 
when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(pystate.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(pythonrun.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(pytime.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a 
shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(bootstrap_hash.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(symtable.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making 
a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(sysmodule.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(thread.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(traceback.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(getopt.o): relocation R_X86_64_32S against `.rodata.str4.4' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(pystrtod.o): relocation R_X86_64_32S against symbol `_Py_ctype_tolower' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(pystrhex.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making 
a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(dtoa.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(formatter_unicode.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(fileutils.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(suggestions.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(dynload_shlib.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(getpath.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(gcmodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making 
a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(posixmodule.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(errnomodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(pwdmodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_sre.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_codecsmodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_weakref.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making 
a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_functoolsmodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_operator.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_collectionsmodule.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be 
used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_abc.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(itertoolsmodule.o): relocation R_X86_64_32 against `.rodata' can not be used when making 
a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(atexitmodule.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(signalmodule.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_stat.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(timemodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_threadmodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_localemodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_iomodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(iobase.o): relocation R_X86_64_32 against symbol `_Py_FalseStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(fileio.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a 
shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(bytesio.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(bufferedio.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(textio.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(stringio.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making 
a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(faulthandler.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_tracemalloc.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(symtablemodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(socketmodule.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_ssl.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(_hashopenssl.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(xxsubtype.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(getbuildinfo.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(peg_api.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(tokenizer.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(accu.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(bytes_methods.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(cellobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.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/bin/ld: /usr/local/lib/libpython3.10.a(codeobject.o): relocation R_X86_64_32S against symbol `PyTuple_Type' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(descrobject.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(enumobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(funcobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(interpreteridobject.o): relocation R_X86_64_32S against symbol `_PyInterpreterID_Type' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(odictobject.o): relocation R_X86_64_32 against symbol `PyODictItems_Type' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(namespaceobject.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when 
making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.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
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(ast.o): relocation R_X86_64_32S against symbol `PyFloat_Type' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(ast_opt.o): relocation R_X86_64_32S against symbol `PyFrozenSet_Type' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(ast_unparse.o): relocation R_X86_64_32S against symbol `PyTuple_Type' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(bltinmodule.o): relocation R_X86_64_32S against symbol `PyFilter_Type' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(context.o): relocation R_X86_64_32 against symbol `PyContext_Type' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(getcompiler.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(getcopyright.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(getplatform.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(hamt.o): relocation R_X86_64_32S against symbol `_PyHamt_BitmapNode_Type' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(hashtable.o): relocation R_X86_64_32S against symbol `_Py_hashtable_hash_ptr' can not be 
used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(structmember.o): relocation R_X86_64_32S against `.rodata' can not be used when making a 
shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(token.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared 
object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(pegen.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(parser.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(string_parser.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /usr/local/lib/libpython3.10.a(myreadline.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: final link failed: Nonrepresentable section on output
      collect2: error: ld returned 1 exit status
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> mod-wsgi
louking commented 2 years ago

rebuilt python 3.10.4 with EXTRA_CFLAGS=-fPIC