I uninstalled first. пятница, 4 марта 2022 г. в 12:46:57 UTC+3, Graham Dumpleton:
> Did you force update or uninstall the installed mod_wsgi version first as > clarified in followup email? > > On 4 Mar 2022, at 8:42 pm, vladko 312 <[email protected]> wrote: > > I reinstalled mod_wsgi with your command, but the error remains. Seems > like termux has no apache2-dev and uses apache-2 instead. > > пятница, 4 марта 2022 г. в 12:18:35 UTC+3, Graham Dumpleton: > >> Ensure you use: >> >> pip install --no-cache-dir mod_wsgi >> >> so it doesn't use any prior build outputs. >> >> If still have issue, ensure that the apache-dev package is the same >> version as main apache binary package. The error can indicate they are for >> different versions and headers files don't match apache libraries. >> >> Graham >> >> On 4 Mar 2022, at 8:15 pm, vladko 312 <[email protected]> wrote: >> >> My bad, it was an old apr package. After update to 1.7.0-6 (apr-util >> 1.6.1-5 was already newest) the problem is gone. Now it is a mod_wsgi >> problem: >> *httpd: Syntax error on line 206 of >> /data/data/com.termux/files/usr/etc/apache2/httpd.conf: Cannot load >> /data/data/com.termux/files/usr/lib/python3.10/site-packages/mod_wsgi-4.9.1.dev1-py3.10-linux-aarch64.egg/mod_wsgi/server/mod_wsgi-py310.cpython-310.so >> >> <http://mod_wsgi-py310.cpython-310.so/> into server: dlopen failed: cannot >> locate symbol "apr_pool_cleanup_null" referenced by >> "/data/data/com.termux/files/usr/lib/python3.10/site-packages/mod_wsgi-4.9.1.dev1-py3.10-linux-aarch64.egg/mod_wsgi/server/mod_wsgi-py310.cpython-310.so >> >> <http://mod_wsgi-py310.cpython-310.so/>"...* >> Without mod_wsgi it loads base config successfully and fails on my flask >> config. Without flask config everything works. >> >> пятница, 4 марта 2022 г. в 12:04:04 UTC+3, Graham Dumpleton: >> >>> Another indication that it seems the Apache installation seems to be >>> broken. Does Apache even start by itself without mod_wsgi being configured? >>> >>> On 4 Mar 2022, at 8:01 pm, vladko 312 <[email protected]> wrote: >>> >>> I use apache from termux repos. Previously, everything worked (before i >>> upgraded all packets). I tried using python-provided mod_wsgi but it never >>> worked. Now it gives me this error: >>> >>> *CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/bin/httpd": >>> cannot locate symbol "apr_procattr_limit_set" referenced by >>> "/data/data/com.termux/files/usr/bin/httpd"...Aborted* >>> Seems like it is unrelated to mod_wsgi, but i can't fix it either >>> пятница, 4 марта 2022 г. в 11:51:08 UTC+3, Graham Dumpleton: >>> >>>> Looks more like there is something wrong with your Apache installation. >>>> >>>> Instead of using configure/make/make install method of building >>>> mod_wsgi, try using the pip install method. >>>> >>>> See: >>>> >>>> https://pypi.org/project/mod-wsgi/ >>>> >>>> This may not help if is apxs from Apache which is generating bogus >>>> output. >>>> >>>> What Apache bistro are you using? A system provided package, or some >>>> third party one? >>>> >>>> Graham >>>> >>>> On 4 Mar 2022, at 7:46 pm, vladko 312 <[email protected]> wrote: >>>> >>>> I used mod_wsgi 4.8 with python 3.9 in termux, but i switched to python >>>> 3.10 and it is no longer possible to compile it, as python removed some >>>> header files that are required. I tried to compile mod_wsgi 4.9 and a >>>> development version, but both failed with the same error: >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> */data/data/com.termux/files/usr/share/apr-1/build/libtool --silent >>>> --mode=link aarch64-linux-android-clang >>>> -L/data/data/com.termux/files/usr/lib >>>> -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp >>>> -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now >>>> -Wl,--no-as-needed,-landroid-support,--as-needed -lapr-1 -laprutil-1 >>>> -L/home/builder/.termux-build/apache2/src/libdummy >>>> -Wl,--as-needed,-ldummy-mod_cache,-ldummy-mod_dav,-ldummy-mod_proxy,-ldummy-mod_session,-ldummy-mod_watchdog >>>> >>>> -Wl,-rpath=/data/data/com.termux/files/usr/libexec/apache2 -o >>>> src/server/mod_wsgi.la <http://mod_wsgi.la/> -rpath >>>> /data/data/com.termux/files/usr/libexec/apache2 -module -avoid-version >>>> src/server/wsgi_validate.lo src/server/wsgi_thread.lo >>>> src/server/wsgi_stream.lo src/server/wsgi_server.lo >>>> src/server/wsgi_restrict.lo src/server/wsgi_metrics.lo >>>> src/server/wsgi_memory.lo src/server/wsgi_logger.lo >>>> src/server/wsgi_interp.lo src/server/wsgi_daemon.lo >>>> src/server/wsgi_convert.lo src/server/wsgi_buckets.lo >>>> src/server/wsgi_apache.lo src/server/mod_wsgi.lo >>>> -L/data/data/com.termux/files/usr/lib >>>> -L/data/data/com.termux/files/usr/lib/python3.10/config -lpython3.10 >>>> -lcrypt -ldl -lm -lmld.lld: error: unable to find library >>>> -ldummy-mod_cacheld.lld: error: unable to find library >>>> -ldummy-mod_davld.lld: error: unable to find library >>>> -ldummy-mod_proxyld.lld: error: unable to find library >>>> -ldummy-mod_sessionld.lld: error: unable to find library >>>> -ldummy-mod_watchdogclang-13: error: linker command failed with exit code >>>> 1 >>>> (use -v to see invocation)apxs:Error: Command failed with rc=65536* >>>> How to fix it? I use apache 1:2.4.52-2 and termux 0.101 >>>> >>>> -- >>>> 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/6cb36c8d-4cd3-43d5-a392-b39bef80f367n%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/modwsgi/6cb36c8d-4cd3-43d5-a392-b39bef80f367n%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/c97d751f-061d-42a0-be82-9c5c47a3a92cn%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/modwsgi/c97d751f-061d-42a0-be82-9c5c47a3a92cn%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/7e506346-3c08-42fc-b97c-a418200317fan%40googlegroups.com >> >> <https://groups.google.com/d/msgid/modwsgi/7e506346-3c08-42fc-b97c-a418200317fan%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/857cc2d6-93a7-4165-9ee0-d852b9bccba4n%40googlegroups.com > > <https://groups.google.com/d/msgid/modwsgi/857cc2d6-93a7-4165-9ee0-d852b9bccba4n%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/42751e7f-57ec-48e9-bbb8-785161598829n%40googlegroups.com.
