-
Notifications
You must be signed in to change notification settings - Fork 30
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
Cannot build 3.1.6 #35
Comments
This is not something we can solve (except may add appropriate info to README.md). I suppose that happens because the mbstring extension on your system has also been built with phpize, so config.h.in (I think it's called so on non Windows systems) doesn't know about that. I think you can workaround with But may @oerdnj knows a better way. |
I had another look at it, and it seems a very easy fix like I did it. It does compile properly now with the proposed change. |
It’s might be possible to detect the runtime presence of mbstring, but that’s kind of moot. I would suggest to remove the check for the mbstring completely instead. Or turn it into the warning (unless you need it at the compile time) and just document that mbstring needs to be loaded before mailparse. The compilation of externally loadable shared libraries is a mess everywhere as you can’t resolve the symbols properly. |
The problem is that mailparse actually requires mbstring during compilation. But you are right that this can't be solved with code; as such I'm changing to documentation issue; the installation docs need to be updated, and linked from this repo. |
TL;DR: I tried to build mailparse-3.1.6 however it fails with
#error The mailparse extension requires the mbstring extension!
system: Debian GNU/Linux 12 (bookworm)
php: PHP 8.2.7 (cli) (built: Jun 9 2023 19:37:27) (NTS)
I think the issue is because "HAVE_MBSTRING" is not set.
Adding
#define HAVE_MBSTRING 1
into the generatedconfig.h
file makes everything compile correctly.The text was updated successfully, but these errors were encountered: