httpd icon indicating copy to clipboard operation
httpd copied to clipboard

Fix "Failed linking C shared library mod_md.so"

Open tumatanquang opened this issue 2 years ago • 5 comments

The cURL variable was declared but not assigned, resulting in a "Failed linking C shared library mod_md.so" error because cURL was not found. This change will automatically find and assign values to cURL variables, fixing the error that cURL cannot be found during HTTPD compilation without having to recompile cURL again as the solution in this error. And trim trailing spaces.

tumatanquang avatar Apr 13 '23 19:04 tumatanquang

Thanks for the PR. Admittedly, I am not using cmake and am unable to verify. I am willing to merge that. If you would then care to check the results?

icing avatar Apr 14 '23 09:04 icing

@icing Thanks for the PR. Admittedly, I am not using cmake and am unable to verify. I am willing to merge that. If you would then care to check the results?

Hi, of course! I have been using the modified CMakeLists.txt file as in the commit, I can provide some screenshots that HTTPd has successfully detected the cURL library file and successfully compiled without error below: cURL detected HTTPd compile successfully P/s: I also tried cURL as static library and of course it didn't have any error. I have tested and verified the modifications in the CMakeLists.txt file on all recent versions (include latest version), and the tools (cmake, nmake,...) and source code (HTTPd, APR, cURL,...) that I use are all the latest, all compiled successfully without errors. It works very well, much better than the previous solution I provided which was to have to compile cURL again during HTTPd compilation (as in bugzilla I said).

tumatanquang avatar Apr 14 '23 18:04 tumatanquang

Submitted as r1909215 in apache subversion (trunk).

I removed the whitespace changes to focus the commit on the relevant lines and making merging this into the 2.4.x branch easier. I will propose this for backport.

icing avatar Apr 18 '23 08:04 icing

Submitted as r1909215 in apache subversion (trunk).

I removed the whitespace changes to focus the commit on the relevant lines and making merging this into the 2.4.x branch easier. I will propose this for backport.

It looks good to me. I am looking forward to these changes in the next release version. As for spaces, I can remove it manually.

tumatanquang avatar May 17 '23 14:05 tumatanquang

I see lines 497 and 798 in the CMakeLists.txt file which still haven't been trim trailing spaces in the release source file.

tumatanquang avatar Nov 17 '23 11:11 tumatanquang