https://bz.apache.org/bugzilla/show_bug.cgi?id=65602
Bug ID: 65602 Summary: Failed linking C shared library mod_md.so Product: Apache httpd-2 Version: 2.4.49 Hardware: PC Status: NEW Severity: blocker Priority: P2 Component: Build Assignee: bugs@httpd.apache.org Reporter: baobaox...@gmail.com Target Milestone: --- This bug comes from at least version 2.4.48, but to the current version is still not fixed. Before compiling Apache httpd-2, I have successfully compiled (also compile order) before using CMAKE (3.21.3): zlib (1.2.11), PCRE (8.45), Expat ( 2.4.1), OpenSSL (1.1.1l), libxml2 (2.9.12), jansson (2.14), Brotli (1.0.9), Lua (5.4.3), APR (1.7.0), APR-Util (1.6) .1), Nghttp2 (1.45.1), cURL (7.79.1). With cURL, I compiled both dynamic libraries (before) and static libraries (after). But when comes to Apache httpd-2 compile: ... -- -- 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 -- ... -- -- -- 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_ldap1.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 ................. : Then I use nmake: ... [ 40%] Building C object CMakeFiles/mod_md.dir/modules/md/mod_md_ocsp.c.obj mod_md_ocsp.c [ 40%] Building RC object CMakeFiles/mod_md.dir/build/win32/httpd.rc.res Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336 Copyright (C) Microsoft Corporation. All rights reserved. [ 40%] Linking C shared library mod_md.so LINK: command "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /nologo @CMakeFiles\mod_md.dir\objects1.rsp /out:mod_md.so /implib:mod_md.lib /pdb:C:\httpd\bin\mod_md.pdb /dll /version:0.0 /base:@C:/httpd/bin/BaseAddr.ref,mod_md.so /machine:X86 /INCREMENTAL:NO \phpStudy\Apache\lib\libssl.lib \phpStudy\Apache\lib\libcrypto.lib \phpStudy\Apache\lib\jansson.lib mod_watchdog.lib libhttpd.lib \phpStudy\Apache\lib\libapr-1.lib \phpStudy\Apache\lib\libaprutil-1.lib \phpStudy\Apache\lib\apr_ldap-1.lib ws2_32.lib mswsock.lib \phpStudy\Apache\lib\pcre.lib ws2_32.lib mswsock.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:mod_md.so.manifest" failed (exit code 1120) with the following output: Creating library mod_md.lib and object mod_md.exp md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_global_init referenced in function _md_curl_init md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_slist_append referenced in function _curlify_headers md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_slist_free_all referenced in function _md_curl_req_cleanup md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_easy_strerror referenced in function _md_curl_perform md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_easy_initreferenced in function _internals_setup md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_easy_setopt referenced in function _internals_setup md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_easy_perform referenced in function _md_curl_perform md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_easy_cleanup referenced in function _md_curl_req_cleanup md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_easy_getinfo referenced in function _md_curl_perform md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_multi_init referenced in function _md_curl_multi_perform md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_multi_add_handle referenced in function _md_curl_multi_perform md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_multi_remove_handle referenced in function _md_curl_multi_perform md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_multi_wait referenced in function _md_curl_multi_perform md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_multi_perform referenced in function _md_curl_multi_perform md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_multi_cleanup referenced in function _md_curl_multi_perform md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_multi_info_read referenced in function _md_curl_multi_perform md_curl.c.obj : error LNK2019: unresolved external symbol __imp__curl_multi_strerror referenced in function _md_curl_multi_perform mod_md.so : fatal error LNK1120: 17 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0xffffffff' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2' Stop. I started getting this error from version 2.4.48 until now, version 2.4.46 before this error does not occur. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org For additional commands, e-mail: bugs-h...@httpd.apache.org