GrahamDumpleton / mod_wsgi

Source code for Apache/mod_wsgi.
Apache License 2.0
1.02k stars 269 forks source link

Trying to install mod_wsgi for python 3.12 using: pip install mod_wsgi --no-binary :all: #909

Closed siddhantdixit01 closed 1 month ago

siddhantdixit01 commented 1 month ago

I have mentioned whole log

Collecting mod_wsgi Using cached mod_wsgi-5.0.1.tar.gz (498 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: mod_wsgi Building wheel for mod_wsgi (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for mod_wsgi (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [321 lines of output]

  WARNING: The Python installation you are using does not appear to have
  been installed with a shared library, or in the case of MacOS X, as a
  framework. Where these are not present, the compilation of mod_wsgi may
  fail, or if it does succeed, will result in extra memory being used by
  all processes at run time as a result of the static library needing to
  be loaded in its entirety to every process. It is highly recommended
  that you reinstall the Python installation being used from source code,
  supplying the '--enable-shared' option to the 'configure' script when
  configuring the source code prior to building and installing it.

  running bdist_wheel
  running build
  running build_py
  creating build/lib.linux-x86_64-cpython-312/mod_wsgi
  copying src/__init__.py -> build/lib.linux-x86_64-cpython-312/mod_wsgi
  creating build/lib.linux-x86_64-cpython-312/mod_wsgi/server
  copying src/server/environ.py -> build/lib.linux-x86_64-cpython-312/mod_wsgi/server
  copying src/server/apxs_config.py -> build/lib.linux-x86_64-cpython-312/mod_wsgi/server
  copying src/server/__init__.py -> build/lib.linux-x86_64-cpython-312/mod_wsgi/server
  creating build/lib.linux-x86_64-cpython-312/mod_wsgi/server/management
  copying src/server/management/__init__.py -> build/lib.linux-x86_64-cpython-312/mod_wsgi/server/management
  creating build/lib.linux-x86_64-cpython-312/mod_wsgi/server/management/commands
  copying src/server/management/commands/runmodwsgi.py -> build/lib.linux-x86_64-cpython-312/mod_wsgi/server/management/commands
  copying src/server/management/commands/__init__.py -> build/lib.linux-x86_64-cpython-312/mod_wsgi/server/management/commands
  creating build/lib.linux-x86_64-cpython-312/mod_wsgi/docs
  copying docs/_build/html/__init__.py -> build/lib.linux-x86_64-cpython-312/mod_wsgi/docs
  creating build/lib.linux-x86_64-cpython-312/mod_wsgi/images
  copying images/__init__.py -> build/lib.linux-x86_64-cpython-312/mod_wsgi/images
  copying images/snake-whiskey.jpg -> build/lib.linux-x86_64-cpython-312/mod_wsgi/images
  running build_ext
  building 'mod_wsgi.server.mod_wsgi-py312' extension
  creating build/temp.linux-x86_64-cpython-312/src/server
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/mod_wsgi.c -o build/temp.linux-x86_64-cpython-312/src/server/mod_wsgi.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  src/server/mod_wsgi.c: In function ‘Adapter_environ’:
  src/server/mod_wsgi.c:2633:46: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
   2633 |                                              Py_FileSystemDefaultEncoding,
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/local/include/python3.12/Python.h:72,
                         from src/server/wsgi_python.h:26,
                   from src/server/mod_wsgi.c:22:
  /usr/local/include/python3.12/fileobject.h:22:46: note: declared here
     22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/server/mod_wsgi.c:2638:46: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
   2638 |                                              Py_FileSystemDefaultEncoding,
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/local/include/python3.12/Python.h:72,
                   from src/server/wsgi_python.h:26,
                   from src/server/mod_wsgi.c:22:
  /usr/local/include/python3.12/fileobject.h:22:46: note: declared here
     22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/server/mod_wsgi.c: In function ‘wsgi_reload_required’:
  src/server/mod_wsgi.c:3862:38: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
   3862 |                                      Py_FileSystemDefaultEncoding,
        |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/local/include/python3.12/Python.h:72,
                   from src/server/wsgi_python.h:26,
                   from src/server/mod_wsgi.c:22:
  /usr/local/include/python3.12/fileobject.h:22:46: note: declared here
     22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/server/mod_wsgi.c: In function ‘wsgi_socket_sendv’:
  src/server/mod_wsgi.c:11063:46: warning: operand of ‘?:’ changes signedness from ‘int’ to ‘size_t’ {aka ‘longunsigned int’} due to unsignedness of other operand [-Wsign-compare]
  11063 |                     (nvec < iov_max ? nvec : (int)iov_max));
        |                                              ^~~~~~~~~~~~
  src/server/mod_wsgi.c: In function ‘wsgi_scan_headers’:
  src/server/mod_wsgi.c:11222:23: warning: operand of ‘?:’ changes signedness from ‘int’ to ‘long unsigned int’due to unsignedness of other operand [-Wsign-compare]
  11222 |     buflen = buffer ? buflen : sizeof(x);
        |                       ^~~~~~
  src/server/mod_wsgi.c: In function ‘Auth_environ’:
  src/server/mod_wsgi.c:14394:30: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
  14394 |                              Py_FileSystemDefaultEncoding,
        |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/local/include/python3.12/Python.h:72,
                   from src/server/wsgi_python.h:26,
                   from src/server/mod_wsgi.c:22:
  /usr/local/include/python3.12/fileobject.h:22:46: note: declared here
     22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/wsgi_apache.c -o build/temp.linux-x86_64-cpython-312/src/server/wsgi_apache.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/wsgi_buckets.c -o build/temp.linux-x86_64-cpython-312/src/server/wsgi_buckets.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/wsgi_convert.c -o build/temp.linux-x86_64-cpython-312/src/server/wsgi_convert.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/wsgi_daemon.c -o build/temp.linux-x86_64-cpython-312/src/server/wsgi_daemon.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/wsgi_interp.c -o build/temp.linux-x86_64-cpython-312/src/server/wsgi_interp.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  src/server/wsgi_interp.c: In function ‘newInterpreterObject’:
  src/server/wsgi_interp.c:733:46: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
    733 |                                              Py_FileSystemDefaultEncoding,
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/local/include/python3.12/Python.h:72,
                   from src/server/wsgi_python.h:26,
                   from src/server/wsgi_interp.h:24,
                   from src/server/wsgi_interp.c:21:
  /usr/local/include/python3.12/fileobject.h:22:46: note: declared here
     22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/server/wsgi_interp.c:751:46: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
    751 |                                              Py_FileSystemDefaultEncoding,
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/local/include/python3.12/Python.h:72,
                   from src/server/wsgi_python.h:26,
                   from src/server/wsgi_interp.h:24,
                   from src/server/wsgi_interp.c:21:
  /usr/local/include/python3.12/fileobject.h:22:46: note: declared here
     22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/server/wsgi_interp.c:769:46: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
    769 |                                              Py_FileSystemDefaultEncoding,
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/local/include/python3.12/Python.h:72,
                   from src/server/wsgi_python.h:26,
                   from src/server/wsgi_interp.h:24,
                   from src/server/wsgi_interp.c:21:
  /usr/local/include/python3.12/fileobject.h:22:46: note: declared here
     22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/server/wsgi_interp.c:821:46: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
    821 |                                              Py_FileSystemDefaultEncoding,
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/local/include/python3.12/Python.h:72,
                   from src/server/wsgi_python.h:26,
                   from src/server/wsgi_interp.h:24,
                   from src/server/wsgi_interp.c:21:
  /usr/local/include/python3.12/fileobject.h:22:46: note: declared here
     22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/server/wsgi_interp.c:867:42: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
    867 |                                          Py_FileSystemDefaultEncoding,
        |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/local/include/python3.12/Python.h:72,
                   from src/server/wsgi_python.h:26,
                   from src/server/wsgi_interp.h:24,
                   from src/server/wsgi_interp.c:21:
  /usr/local/include/python3.12/fileobject.h:22:46: note: declared here
     22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/server/wsgi_interp.c:1139:37: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
   1139 |                                     Py_FileSystemDefaultEncoding,
        |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/local/include/python3.12/Python.h:72,
                   from src/server/wsgi_python.h:26,
                   from src/server/wsgi_interp.h:24,
                   from src/server/wsgi_interp.c:21:
  /usr/local/include/python3.12/fileobject.h:22:46: note: declared here
     22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/server/wsgi_interp.c:1468:26: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
   1468 |                          Py_FileSystemDefaultEncoding,
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/local/include/python3.12/Python.h:72,
                   from src/server/wsgi_python.h:26,
                   from src/server/wsgi_interp.h:24,
                   from src/server/wsgi_interp.c:21:
  /usr/local/include/python3.12/fileobject.h:22:46: note: declared here
     22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/server/wsgi_interp.c:1478:29: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
   1478 |                             Py_FileSystemDefaultEncoding,
        |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/local/include/python3.12/Python.h:72,
                   from src/server/wsgi_python.h:26,
                   from src/server/wsgi_interp.h:24,
                   from src/server/wsgi_interp.c:21:
  /usr/local/include/python3.12/fileobject.h:22:46: note: declared here
     22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
        |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/wsgi_logger.c -o build/temp.linux-x86_64-cpython-312/src/server/wsgi_logger.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/wsgi_memory.c -o build/temp.linux-x86_64-cpython-312/src/server/wsgi_memory.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/wsgi_metrics.c -o build/temp.linux-x86_64-cpython-312/src/server/wsgi_metrics.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/wsgi_restrict.c -o build/temp.linux-x86_64-cpython-312/src/server/wsgi_restrict.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/wsgi_server.c -o build/temp.linux-x86_64-cpython-312/src/server/wsgi_server.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/wsgi_stream.c -o build/temp.linux-x86_64-cpython-312/src/server/wsgi_stream.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/wsgi_thread.c -o build/temp.linux-x86_64-cpython-312/src/server/wsgi_thread.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/apache2 -I/home/kdsgroupco/public_html/parivarregister/venv/include -I/usr/local/include/python3.12 -c src/server/wsgi_validate.c -o build/temp.linux-x86_64-cpython-312/src/server/wsgi_validate.o -I/usr/include/apache2 -I. -I/opt/cpanel/ea-apr16/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/opt/cpanel/ea-apr16/include/apr-1 -I/opt/cpanel/ea-apr16/include/apr-1
  gcc -shared build/temp.linux-x86_64-cpython-312/src/server/mod_wsgi.o build/temp.linux-x86_64-cpython-312/src/server/wsgi_apache.o build/temp.linux-x86_64-cpython-312/src/server/wsgi_buckets.o build/temp.linux-x86_64-cpython-312/src/server/wsgi_convert.o build/temp.linux-x86_64-cpython-312/src/server/wsgi_daemon.o build/temp.linux-x86_64-cpython-312/src/server/wsgi_interp.o build/temp.linux-x86_64-cpython-312/src/server/wsgi_logger.o build/temp.linux-x86_64-cpython-312/src/server/wsgi_memory.o build/temp.linux-x86_64-cpython-312/src/server/wsgi_metrics.o build/temp.linux-x86_64-cpython-312/src/server/wsgi_restrict.o build/temp.linux-x86_64-cpython-312/src/server/wsgi_server.o build/temp.linux-x86_64-cpython-312/src/server/wsgi_stream.o build/temp.linux-x86_64-cpython-312/src/server/wsgi_thread.o build/temp.linux-x86_64-cpython-312/src/server/wsgi_validate.o -Wl,--enable-new-dtags,-rpath,/usr/local/lib -Wl,--enable-new-dtags,-rpath,/home/kdsgroupco/public_html/parivarregister/venv/lib/python3.12/config -o build/lib.linux-x86_64-cpython-312/mod_wsgi/server/mod_wsgi-py312.cpython-312-x86_64-linux-gnu.so -L/usr/local/lib -L/home/kdsgroupco/public_html/parivarregister/venv/lib/python3.12/config -lpython3.12
  lto-wrapper: warning: using serial compilation of 3 LTRANS jobs
  /bin/ld: /usr/local/lib/libpython3.12.a(abstract.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.12.a(boolobject.o): relocation R_X86_64_32S against symbol `_Py_TrueStruct' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.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
  /bin/ld: /usr/local/lib/libpython3.12.a(bytesobject.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.12.a(call.o): relocation R_X86_64_32S against symbol `PyModule_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(capsule.o): relocation R_X86_64_32 against symbol `PyCapsule_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(complexobject.o): relocation R_X86_64_32S against symbol `PyComplex_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(exceptions.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.12.a(genericaliasobject.o): relocation R_X86_64_32 against symbol `Py_GenericAliasType' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.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.12.a(fileobject.o): relocation R_X86_64_32 against symbol `PyStdPrinter_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(floatobject.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.12.a(frameobject.o): relocation R_X86_64_32S against symbol `PyCell_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(funcobject.o): relocation R_X86_64_32 against symbol `PyStaticMethod_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(iterobject.o): relocation R_X86_64_32 against symbol `PySeqIter_Type'can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(listobject.o): relocation R_X86_64_32S against `.text.hot' can not beused when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(longobject.o): relocation R_X86_64_32 against `.data' can not be usedwhen making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(dictobject.o): relocation R_X86_64_32 against `.data' can not be usedwhen making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(memoryobject.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.12.a(methodobject.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.12.a(moduleobject.o): relocation R_X86_64_32S against symbol `PyModuleDef_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(object.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.12.a(obmalloc.o): relocation R_X86_64_32 against hidden symbol `_PyMem_RawMalloc' can not be used when making a shared object
  /bin/ld: /usr/local/lib/libpython3.12.a(picklebufobject.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.12.a(rangeobject.o): relocation R_X86_64_32 against symbol `PyRangeIter_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(setobject.o): relocation R_X86_64_32 against symbol `PySetIter_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(sliceobject.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(structseq.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(tupleobject.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(typeobject.o): relocation R_X86_64_32S against symbol `PyBaseObject_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(typevarobject.o): relocation R_X86_64_32 against hidden symbol `generic_spec' can not be used when making a shared object
  /bin/ld: /usr/local/lib/libpython3.12.a(unicodeobject.o): relocation R_X86_64_32 against symbol `PyMem_RawMalloc' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(unicodectype.o): relocation R_X86_64_32S against `.rodata' can not beused when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(unionobject.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(weakrefobject.o): relocation R_X86_64_32S against symbol `_PyWeakref_RefType' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(_warnings.o): relocation R_X86_64_32 against `.rodata.str1.1' can notbe used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(bltinmodule.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.12.a(ceval.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.12.a(codecs.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(compile.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(context.o): relocation R_X86_64_32 against symbol `PyContextToken_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(errors.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.12.a(flowgraph.o): relocation R_X86_64_32S against hidden symbol `_PyOpcode_Jump' can not be used when making a shared object
  /bin/ld: /usr/local/lib/libpython3.12.a(future.o): relocation R_X86_64_32 against `.rodata.str1.1' can not beused when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(getargs.o): relocation R_X86_64_32S against symbol `PyTuple_Type' cannot be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(getversion.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.12.a(ceval_gil.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(hamt.o): relocation R_X86_64_32S against hidden symbol `_PyHamt_BitmapNode_Type' can not be used when making a shared object
  /bin/ld: /usr/local/lib/libpython3.12.a(hashtable.o): relocation R_X86_64_32 against symbol `PyMem_Free' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(import.o): relocation R_X86_64_TPOFF32 against hidden symbol `pkgcontext' can not be used when making a shared object
  /bin/ld: /usr/local/lib/libpython3.12.a(importdl.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.12.a(initconfig.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.12.a(instrumentation.o): relocation R_X86_64_32 against `.data' can not beused when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(intrinsics.o): relocation R_X86_64_32 against symbol `_PyRuntime' cannot be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(legacy_tracing.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.12.a(marshal.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.12.a(modsupport.o): relocation R_X86_64_32S against symbol `PyModule_Type'can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.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
  /bin/ld: /usr/local/lib/libpython3.12.a(preconfig.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.12.a(pyhash.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.12.a(pylifecycle.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(pystate.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.12.a(pythonrun.o): relocation R_X86_64_32 against `.rodata.str1.1' can notbe used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(pytime.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(bootstrap_hash.o): relocation R_X86_64_32 against symbol `_Py_HashSecret' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(specialize.o): relocation R_X86_64_32S against symbol `PyListIter_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(symtable.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(sysmodule.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(thread.o): relocation R_X86_64_32 against symbol `_PyRuntime' can notbe used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(traceback.o): relocation R_X86_64_32 against `.rodata.str1.1' can notbe used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(tracemalloc.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.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.12.a(pystrtod.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.12.a(pystrhex.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.12.a(dtoa.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.12.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
  /bin/ld: /usr/local/lib/libpython3.12.a(fileutils.o): relocation R_X86_64_32 against `.rodata.str1.1' can notbe used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(suggestions.o): relocation R_X86_64_32S against symbol `PyUnicode_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(perf_trampoline.o): relocation R_X86_64_32S against `.text.unlikely' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(dynload_shlib.o): relocation R_X86_64_32 against `.rodata.str1.1' cannot be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(gcmodule.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.12.a(atexitmodule.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.12.a(faulthandler.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.12.a(posixmodule.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.12.a(signalmodule.o): relocation R_X86_64_32S against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(_tracemalloc.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.12.a(_codecsmodule.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.12.a(_collectionsmodule.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.12.a(errnomodule.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.12.a(_iomodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can notbe used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(iobase.o): relocation R_X86_64_32 against symbol `_Py_FalseStruct' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(fileio.o): relocation R_X86_64_32 against `.rodata.str1.1' can not beused when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(bytesio.o): relocation R_X86_64_32 against symbol `_Py_FalseStruct' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(bufferedio.o): relocation R_X86_64_32 against symbol `_PyRuntime' cannot be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(textio.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' cannot be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(stringio.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.12.a(itertoolsmodule.o): relocation R_X86_64_32 against `.data' can not beused when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(sre.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.12.a(_threadmodule.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.12.a(timemodule.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.12.a(_typingmodule.o): relocation R_X86_64_32 against `.rodata.str1.1' cannot be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(_weakref.o): relocation R_X86_64_32 against symbol `_PyWeakref_RefType' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(_abc.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.12.a(_functoolsmodule.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(_localemodule.o): relocation R_X86_64_32 against `.rodata.str1.1' cannot be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(_operator.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.12.a(_stat.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.12.a(symtablemodule.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.12.a(pwdmodule.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.12.a(deepfreeze.o): relocation R_X86_64_32 against `.data' can not be usedwhen making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(getpath.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.12.a(getbuildinfo.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(pegen.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.12.a(pegen_errors.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.12.a(parser.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.12.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
  /bin/ld: /usr/local/lib/libpython3.12.a(myreadline.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.12.a(tokenizer.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(bytes_methods.o): relocation R_X86_64_32S against symbol `_Py_ctype_toupper' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(cellobject.o): relocation R_X86_64_32S against symbol `PyCell_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(classobject.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(codeobject.o): relocation R_X86_64_32S against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(descrobject.o): relocation R_X86_64_32 against symbol `PyClassMethodDescr_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(enumobject.o): relocation R_X86_64_32 against symbol `_PyRuntime' cannot be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(interpreteridobject.o): relocation R_X86_64_32S against symbol `_PyInterpreterID_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(odictobject.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.12.a(namespaceobject.o): relocation R_X86_64_32 against symbol `_PyNamespace_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(Python-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.12.a(Python-tokenize.o): relocation R_X86_64_32 against `.data' can not beused when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(assemble.o): relocation R_X86_64_32S against hidden symbol `_PyOpcode_Caches' can not be used when making a shared object
  /bin/ld: /usr/local/lib/libpython3.12.a(ast.o): relocation R_X86_64_32S against symbol `PyUnicode_Type' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(ast_opt.o): relocation R_X86_64_32S against `.rodata' can not be usedwhen making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.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.12.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.12.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.12.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.12.a(pathconfig.o): relocation R_X86_64_32 against `.rodata.str4.4' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(structmember.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.12.a(token.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.12.a(action_helpers.o): relocation R_X86_64_32 against symbol `_PyRuntime'can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(string_parser.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
  /bin/ld: /usr/local/lib/libpython3.12.a(frozen.o): warning: relocation in read-only section `.rodata'
  collect2: error: ld returned 1 exit status
  error: command '/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: Failed building wheel for mod_wsgi Failed to build mod_wsgi ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (mod_wsgi)

GrahamDumpleton commented 1 month ago

Your Python installation was not built to include shared libraries. It needs to when used in embedded systems where dynamic loading is occurring, such as in Apache. See:

and also read:

which also talks about building shared library with Python.

siddhantdixit01 commented 1 month ago

It's resolved, thanks a lot! I thought it was just a warning.