DevHeads.net

facing issue with building apache for latest version 2.4.33

Hi Team,

I am facing the issue while building apache on Window machine with the help of apache source code and got below error

[ 92%] Building C object CMakeFiles/mod_ssl.dir/modules/ssl/ssl_engine_init.c.obj
ssl_engine_init.c
C:\apacheBuild\apache2.4\build\httpd-2.4.33\modules\ssl\ssl_engine_init.c(33) : fatal error C1083: Cannot open include file: 'mod_md.h': No such file or directory
NMAKE : fatal error U1077: 'c:\PROGRA~2\MICROS~2.0\VC\bin\amd64\cl.exe' : return code '0x2'
Stop.

I did some investigation and found that with new version of apache we added a new module called mod_md which is experimental basis, I don't know why experimental module added as a dependency and it will cause a build failure,

Can you please help me out to fix above issue?

Thanks and Regards,
Rajendra Rathore
9922701491

Comments

Re: facing issue with building apache for latest v

By Rainer Jung at 04/06/2018 - 14:41

Hello,

Am 06.04.2018 um 08:41 schrieb Rathore, Rajendra:
for people who are not aware: the OP opened th eissue
<a href="https://bz.apache.org/bugzilla/show_bug.cgi?id=62266" title="https://bz.apache.org/bugzilla/show_bug.cgi?id=62266">https://bz.apache.org/bugzilla/show_bug.cgi?id=62266</a> and I commented
there, that this seems to be a cmake specific problem and proposed to
test the following fix:

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 1828523)
+++ CMakeLists.txt (working copy)
@@ -649,6 +649,7 @@
${CMAKE_CURRENT_SOURCE_DIR}/modules/dav/main
${CMAKE_CURRENT_SOURCE_DIR}/modules/filters
${CMAKE_CURRENT_SOURCE_DIR}/modules/generators
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/md
${CMAKE_CURRENT_SOURCE_DIR}/modules/proxy
${CMAKE_CURRENT_SOURCE_DIR}/modules/session
${CMAKE_CURRENT_SOURCE_DIR}/modules/ssl

This should fix building mod_ssl, ie. the OP's original question.

To build mod_md itself is not yet supported by our cmake files.

Regards,

Rainer

RE: facing issue with building apache for latest v

By Rathore, Rajendra at 04/09/2018 - 02:28

Hi Rainer,

Thanks for your quick response, below fix work fine with Windows machine, I had one question in next release fix will come out of the box or we need to again add that property, Please confirm?

Thanks and Regards,
Rajendra Rathore
9922701491

Hello,

Am 06.04.2018 um 08:41 schrieb Rathore, Rajendra:
for people who are not aware: the OP opened th eissue
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbz.apache.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D62266&amp;data=02%7C01%7Crarathore%40ptc.com%7C46edf326c2994a8a508108d59bee1d62%7Cb9921086ff774d0d828acb3381f678e2%7C0%7C0%7C636586369370542341&amp;sdata=HLw9kIKbwTUf2PkVPUBaL7mIsPGAuVVTODZuu8Fpnsw%3D&amp;reserved=0" title="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbz.apache.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D62266&amp;data=02%7C01%7Crarathore%40ptc.com%7C46edf326c2994a8a508108d59bee1d62%7Cb9921086ff774d0d828acb3381f678e2%7C0%7C0%7C636586369370542341&amp;sdata=HLw9kIKbwTUf2PkVPUBaL7mIsPGAuVVTODZuu8Fpnsw%3D&amp;reserved=0">https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbz.apac...</a> and I commented there, that this seems to be a cmake specific problem and proposed to test the following fix:

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 1828523)
+++ CMakeLists.txt (working copy)
@@ -649,6 +649,7 @@
${CMAKE_CURRENT_SOURCE_DIR}/modules/dav/main
${CMAKE_CURRENT_SOURCE_DIR}/modules/filters
${CMAKE_CURRENT_SOURCE_DIR}/modules/generators
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/md
${CMAKE_CURRENT_SOURCE_DIR}/modules/proxy
${CMAKE_CURRENT_SOURCE_DIR}/modules/session
${CMAKE_CURRENT_SOURCE_DIR}/modules/ssl

This should fix building mod_ssl, ie. the OP's original question.

To build mod_md itself is not yet supported by our cmake files.

Regards,

Rainer

Re: facing issue with building apache for latest v

By Rainer Jung at 04/09/2018 - 04:49

Am 09.04.2018 um 08:28 schrieb Rathore, Rajendra:
I have added the detailed info to your ticket
<a href="https://bz.apache.org/bugzilla/show_bug.cgi?id=62266" title="https://bz.apache.org/bugzilla/show_bug.cgi?id=62266">https://bz.apache.org/bugzilla/show_bug.cgi?id=62266</a>, but in short
"yes", all releases of 2.4.x or higher starting with the next one will
include this fix.

For all lurkers here: the change only fixes cmake builds of mod_ssl. We
are still lacking a cmake build of the new mod_md.

Thanks for testing and giving feedback.

Regards,

Rainer