Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#54844 - [mod_wsgi] 4.5.17 can't be loaded into apache, undefined symbol PyObject_SetItem

Attached to Project: Community Packages
Opened by Ng Oon-Ee (ngoonee) - Monday, 17 July 2017, 02:55 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 18 July 2017, 19:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
Apache chokes on loading mod_wsgi when it's updated:-
Jul 17 10:51:45 ngoonee-laptop httpd[732]: httpd: Syntax error on line 536 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_wsgi.so into server: /etc/httpd/modules/mod_wsgi.so: undefined symbol: PyObject_SetItem

Downgraded version works.

Additional info:
* package version(s)
mod_wsgi 4.5.17-1



Steps to reproduce:
Just update (my previous was mod_wsgi 4.4.22-1) and apache will fail to start
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Tuesday, 18 July 2017, 19:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  mod_wsgi 4.5.17-2
Comment by syslock (syslock) - Monday, 17 July 2017, 21:33 GMT
I currently use this as a workaround:

env LD_PRELOAD=/usr/lib/libpython3.6m.so httpd -k start

I'm pretty sure mod_wsgi should link Python explicitly.
Comment by Luca Weiss (z3ntu) - Tuesday, 18 July 2017, 07:29 GMT
I hit the same issue. Downgrading to 4.4.22-1 worked.
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 18 July 2017, 14:38 GMT
Thanks for reporting, I am able to reproduce the issue.
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 18 July 2017, 14:41 GMT
Updated the LDLIBS variable when building for Python 3 to use `pkg-config python3 --libs`.
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 18 July 2017, 15:00 GMT
The updated package will appear in [community] shortly. Please confirm that it is now working as it should. (works here).
Comment by Ng Oon-Ee (ngoonee) - Tuesday, 18 July 2017, 18:49 GMT
Thanks, this works.
Comment by Luca Weiss (z3ntu) - Tuesday, 18 July 2017, 19:13 GMT
Works for me too.

Loading...