-
Notifications
You must be signed in to change notification settings - Fork 2
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
Linux build issues #7
Comments
Sorry, I should have taken out any reference to header or libraries for building. That was the whole point of amalgamation, so there is no dependency. In particular Windows won't have MD4C installed. Also, line 7:
should use |
Right, but that dependency could be made available on https://downloads.php.net/~windows/pecl/deps/, and could be put in the Windows builds of md4c like for other extensions (e.g. imagick), or built statically into php_md4c.dll. |
I committed your proposed config.m4. |
Okay, might be best to have the library bundled for now, because it has not reached version 1.0, so some things might change. |
I think both (bundled and system) should be allowed For system usage, see PR #14 For bundled case, I think it could be cleaner to use a git submodule, fetching last tag |
I tried to build the extension on Linux (actually WSL 2 with Debian bookworm), but that failed because I don't have md4c-dev installed:
Since md4c-dev is not readily available on Debian bookworm, I tried building with the bundled md4c, and changed config.md4 to:
Afterwards the build succeeded:
Now I thought that the build probably cannot succeed with a system md4c library, since it is already contained in md4c.c. So either you can completely drop support for building against a system md4c, or would need to put the md4c amalgamation in a separate file, and only use this if the system library is not available. I assume that distro maintainers prefer the latter (to be able to build against system libraries). Maybe @remicollet can clarify?
The text was updated successfully, but these errors were encountered: