New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uwsgi with php plugin doesn't compile #97352
Comments
trying to fix the issue here includes are fine, but php-config returns an empty --ldflags list, so linkig fails with:
|
With the above changes the compile command is (stripped of some of the options and defines):
Obviously there are no |
more success with these changes master...gdamjan:fix-uwsgi-php-try2 now uwsgi compiles and links fine, but at runtime it fails with
|
Have you had a complete success on this? I'm stuck on it but I must say I'm no PHP nor uwsgi expert |
Describe the bug
when enabling the php plugin in the uwsgi package the compile of the plugin fails.
To Reproduce
Steps to reproduce the behavior:
nix-build -E 'with import <nixpkgs> {}; uwsgi.override { plugins=[ "php" ]; }'
Screenshots
Additional context
The uwsgi build system tries to invoke
php-config
to get the include paths for the compile, but php-config is not in the path (it's in the php.dev package). This can be fixed by setting theUWSGICONFIG_PHPDIR = "${php-embed.unwrapped.dev}";
environment variable. uwsgi then findsphp.h
, but fails on#include "ext/session/php_session.h"
which is inextensions.session.dev
, and under a different path in the store.https://github.com/unbit/uwsgi/blob/master/plugins/php/common.h
https://github.com/unbit/uwsgi/blob/master/plugins/php/uwsgiplugin.py
I'll try to find a better solution next.
Notify maintainers
@abbradar @schneefux @globin
Metadata
Maintainer information:
The text was updated successfully, but these errors were encountered: