https://bz.apache.org/bugzilla/show_bug.cgi?id=65602

--- Comment #3 from Tần Quảng <[email protected]> ---
(In reply to Tần Quảng from comment #2)
> (In reply to Stefan Eissing from comment #1)
> > In the call to 'link.exe' I see all libraries except libcurl. Does this
> > somehow not get picked up by cmake correctly? I am unware of any changes.
> 
> I don't know why, I'll upload my compiled command line. When compiling to
> Apache HTTPD, even though the command prompt shows the path to cURL has been
> found:
> 
> -- The C compiler identification is MSVC 18.0.40629.0
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
> Studio 12.0/VC/bin/cl.exe - skipped
> -- Detecting C compile features
> -- Detecting C compile features - done
> CMake Deprecation Warning at CMakeLists.txt:20 (CMAKE_MINIMUM_REQUIRED):
>   Compatibility with CMake < 2.8.12 will be removed from a future version of
>   CMake.
> 
>   Update the VERSION argument <min> value or use a ...<max> suffix to tell
>   CMake that the project does not need compatibility with older versions.
> 
> 
> -- Found LibXml2: /phpStudy/Apache/lib/libxml2.lib (found version "2.9.12")
> -- Found Lua51: /phpStudy/Apache/lib/lua.lib (found version "")
> -- Found OpenSSL: /phpStudy/Apache/lib/libcrypto.lib (found version "1.1.1l")
> -- Found ZLIB: /phpStudy/Apache/lib/zlib.lib (found version "1.2.11")
> -- Found CURL: /phpStudy/Apache/lib/cmake/CURL/CURLConfig.cmake (found
> version "7.79.1")
> -- Looking for APR_HAS_XLATE
> -- Looking for APR_HAS_XLATE - found
> -- Performing Test APR_HAS_XLATE
> -- Performing Test APR_HAS_XLATE - Failed
> -- Looking for APU_HAVE_CRYPTO
> -- Looking for APU_HAVE_CRYPTO - found
> -- Performing Test APU_HAVE_CRYPTO
> -- Performing Test APU_HAVE_CRYPTO - Success
> -- Performing Test APR_HAS_LDAP
> -- Performing Test APR_HAS_LDAP - Success
> --
> -- Summary of feature detection:
> --
> -- LIBXML2_FOUND ............ : TRUE
> -- LUA51_FOUND .............. : TRUE
> -- NGHTTP2_FOUND ............ : TRUE
> -- OPENSSL_FOUND ............ : TRUE
> -- ZLIB_FOUND ............... : TRUE
> -- BROTLI_FOUND ............. : TRUE
> -- CURL_FOUND ............... : TRUE
> -- JANSSON_FOUND ............ : TRUE
> -- APR_HAS_LDAP ............. : TRUE
> -- APR_HAS_XLATE ............ : FALSE
> -- APU_HAVE_CRYPTO .......... : TRUE
> --
> ...
> 
> But in "Apache httpd configuration summary", the "Curl include directory"
> entry still shows as empty:
> 
> -- mod_socache_dc was requested but couldn't be built due to a missing
> prerequisite (AN_UNIMPLEMENTED_SUPPORT_LIBRARY_REQUIREMENT)
> -- mod_charset_lite was requested but couldn't be built due to a missing
> prerequ
> isite (APR_HAS_XLATE)
> --
> --
> -- Apache httpd configuration summary:
> --
> --   Build type ...................... : Release
> --   Install .pdb (if available)...... : OFF
> --   Install manual .................. : ON
> --   Install prefix .................. : /phpStudy/Apache
> --   C compiler ...................... : C:/Program Files (x86)/Microsoft
> Visual Studio 12.0/VC/bin/cl.exe
> --   APR include directory ........... : /phpStudy/Apache/include
> --   APR libraries ................... :
> /phpStudy/Apache/lib/libapr-1.lib;/phpStudy/Apache/lib/libaprutil-1.lib;/
> phpStudy/Apache/lib/apr_ldap-1.lib
> --   OpenSSL include directory ....... : /phpStudy/Apache/include
> --   OpenSSL libraries ............... :
> /phpStudy/Apache/lib/libssl.lib;/phpStudy/Apache/lib/libcrypto.lib
> --   PCRE include directory .......... : /phpStudy/Apache/include
> --   PCRE libraries .................. : /phpStudy/Apache/lib/pcre.lib
> --   libxml2 iconv prereq include dir. :
> --   libxml2 iconv prereq libraries .. :
> --   Brotli include directory......... : /phpStudy/Apache/include
> --   Brotli libraries ................ :
> /phpStudy/Apache/lib/brotlienc.lib;/phpStudy/Apache/lib/brotlicommon.lib
> --   Curl include directory........... :
> --   Jansson libraries ............... : /phpStudy/Apache/lib/jansson.lib
> --   Extra include directories ....... :
> --   Extra compile flags ............. :
> --   Extra libraries ................. :
> 
> And the compiler still got the error and stopped at [ 40%] Linking C shared
> library mod_md.so.
> Here is my compile command line:
> https://drive.google.com/file/d/1suH_SJOTcw-t7tdqd7jt2Scxa5G8SxNX/
> view?usp=sharing
> I tried comparing 2 CMakeLists.txt files of 2 versions 2.4.46 and 2.4.49:
> https://www.diffchecker.com/FQiaZzbr
> There is a slight change in SET(mod_md_extra_sources and
> SET(LIBHTTPD_SOURCES in both CMakeLists.txt files of Apache HTTPD source
> code.
> Before compiling, I also uncommented right after the "getting duplicate
> manifest error with ApacheMonitor" line in the CMakeLists.txt file (after
> line 901) of the Apache HTTPD source code.
> I remember one thing: In version 2.4.46 there seems to also be an error
> during compilation but I don't remember in which module, the fix is to
> replace SET(mod_md_requires OPENSSL_FOUND CURL_FOUND JANSSON_FOUND) to
> SET(mod_md_requires CURL_FOUND) ) in the CMakeLists.txt file (remove
> OPENSSL_FOUND and JANSSON_FOUND) but this seems to have stopped working from
> version 2.4.48!

The "bin" directory is a directory I created for convenience during
compilation. I've tried compiling directly at the root of the source code
(instead of compiling into the "bin" directory) but that didn't fix anything
either.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to