mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
c78a185df7
Sources did not use it. Autotools used it when checking for the `winldap` library, which is redundant. With CMake, detection was broken: ``` Run Build Command(s):/usr/local/Cellar/cmake/3.26.3/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_2d8fe/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_2d8fe.dir/build.make CMakeFiles/cmTC_2d8fe.dir/build Building C object CMakeFiles/cmTC_2d8fe.dir/HAVE_WINLDAP_H.c.obj /usr/local/opt/llvm/bin/clang --target=x86_64-w64-mingw32 --sysroot=/usr/local/opt/mingw-w64/toolchain-x86_64 -D_WINSOCKAPI_="" -I/my/quictls/x64-ucrt/usr/include -I/my/zlib/x64-ucrt/usr/include -I/my/brotli/x64-ucrt/usr/include -Wno-unused-command-line-argument -D_UCRT -DCURL_HIDDEN_SYMBOLS -DHAVE_SSL_SET0_WBIO -DHAS_ALPN -DNGHTTP2_STATICLIB -DNGHTTP3_STATICLIB -DNGTCP2_STATICLIB -DUSE_MANUAL=1 -fuse-ld=lld -Wl,-s -static-libgcc -lucrt -Wextra -Wall -pedantic -Wbad-function-cast -Wconversion -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wno-multichar -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wunused -Wwrite-strings -Wcast-align -Wdeclaration-after-statement -Wempty-body -Wendif-labels -Wfloat-equal -Wignored-qualifiers -Wno-format-nonliteral -Wno-sign-conversion -Wno-system-headers -Wstrict-prototypes -Wtype-limits -Wvla -Wshift-sign-overflow -Wshorten-64-to-32 -Wdouble-promotion -Wenum-conversion -Wunused-const-variable -Wcomma -Wmissing-variable-declarations -Wassign-enum -Wextra-semi-stmt -MD -MT CMakeFiles/cmTC_2d8fe.dir/HAVE_WINLDAP_H.c.obj -MF CMakeFiles/cmTC_2d8fe.dir/HAVE_WINLDAP_H.c.obj.d -o CMakeFiles/cmTC_2d8fe.dir/HAVE_WINLDAP_H.c.obj -c /my/curl/bld-cmake-llvm-x64-shared/CMakeFiles/CMakeScratch/TryCompile-3JP6dR/HAVE_WINLDAP_H.c In file included from /my/curl/bld-cmake-llvm-x64-shared/CMakeFiles/CMakeScratch/TryCompile-3JP6dR/HAVE_WINLDAP_H.c:2: In file included from /usr/local/opt/mingw-w64/toolchain-x86_64/x86_64-w64-mingw32/include/winldap.h:17: In file included from /usr/local/opt/mingw-w64/toolchain-x86_64/x86_64-w64-mingw32/include/schnlsp.h:9: In file included from /usr/local/opt/mingw-w64/toolchain-x86_64/x86_64-w64-mingw32/include/schannel.h:10: /usr/local/opt/mingw-w64/toolchain-x86_64/x86_64-w64-mingw32/include/wincrypt.h:5041:254: error: unknown type name 'PSYSTEMTIME' WINIMPM PCCERT_CONTEXT WINAPI CertCreateSelfSignCertificate (HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProvOrNCryptKey, PCERT_NAME_BLOB pSubjectIssuerBlob, DWORD dwFlags, PCRYPT_KEY_PROV_INFO pKeyProvInfo, PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, PSYSTEMTIME pStartTime, PSYSTEMTIME pEndTime, PCERT_EXTENSIONS pExtensions); ^ /usr/local/opt/mingw-w64/toolchain-x86_64/x86_64-w64-mingw32/include/wincrypt.h:5041:278: error: unknown type name 'PSYSTEMTIME' WINIMPM PCCERT_CONTEXT WINAPI CertCreateSelfSignCertificate (HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProvOrNCryptKey, PCERT_NAME_BLOB pSubjectIssuerBlob, DWORD dwFlags, PCRYPT_KEY_PROV_INFO pKeyProvInfo, PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, PSYSTEMTIME pStartTime, PSYSTEMTIME pEndTime, PCERT_EXTENSIONS pExtensions); ^ 2 errors generated. make[1]: *** [CMakeFiles/cmTC_2d8fe.dir/HAVE_WINLDAP_H.c.obj] Error 1 make: *** [cmTC_2d8fe/fast] Error 2 exitCode: 2 ``` Cherry-picked from #11095 88e4a21ff70ccef391cf99c8165281ff81374503 Reviewed-by: Daniel Stenberg Closes #11245 |
||
---|---|---|
.. | ||
vauth | ||
vquic | ||
vssh | ||
vtls | ||
.checksrc | ||
.gitattributes | ||
.gitignore | ||
altsvc.c | ||
altsvc.h | ||
amigaos.c | ||
amigaos.h | ||
arpa_telnet.h | ||
asyn-ares.c | ||
asyn-thread.c | ||
asyn.h | ||
base64.c | ||
bufq.c | ||
bufq.h | ||
bufref.c | ||
bufref.h | ||
c-hyper.c | ||
c-hyper.h | ||
cf-h1-proxy.c | ||
cf-h1-proxy.h | ||
cf-h2-proxy.c | ||
cf-h2-proxy.h | ||
cf-haproxy.c | ||
cf-haproxy.h | ||
cf-https-connect.c | ||
cf-https-connect.h | ||
cf-socket.c | ||
cf-socket.h | ||
cfilters.c | ||
cfilters.h | ||
CMakeLists.txt | ||
config-amigaos.h | ||
config-dos.h | ||
config-mac.h | ||
config-os400.h | ||
config-plan9.h | ||
config-riscos.h | ||
config-win32.h | ||
config-win32ce.h | ||
conncache.c | ||
conncache.h | ||
connect.c | ||
connect.h | ||
content_encoding.c | ||
content_encoding.h | ||
cookie.c | ||
cookie.h | ||
curl_addrinfo.c | ||
curl_addrinfo.h | ||
curl_base64.h | ||
curl_config.h.cmake | ||
curl_ctype.h | ||
curl_des.c | ||
curl_des.h | ||
curl_endian.c | ||
curl_endian.h | ||
curl_fnmatch.c | ||
curl_fnmatch.h | ||
curl_get_line.c | ||
curl_get_line.h | ||
curl_gethostname.c | ||
curl_gethostname.h | ||
curl_gssapi.c | ||
curl_gssapi.h | ||
curl_hmac.h | ||
curl_krb5.h | ||
curl_ldap.h | ||
curl_log.c | ||
curl_log.h | ||
curl_md4.h | ||
curl_md5.h | ||
curl_memory.h | ||
curl_memrchr.c | ||
curl_memrchr.h | ||
curl_multibyte.c | ||
curl_multibyte.h | ||
curl_ntlm_core.c | ||
curl_ntlm_core.h | ||
curl_ntlm_wb.c | ||
curl_ntlm_wb.h | ||
curl_path.c | ||
curl_path.h | ||
curl_printf.h | ||
curl_range.c | ||
curl_range.h | ||
curl_rtmp.c | ||
curl_rtmp.h | ||
curl_sasl.c | ||
curl_sasl.h | ||
curl_setup_once.h | ||
curl_setup.h | ||
curl_sha256.h | ||
curl_sspi.c | ||
curl_sspi.h | ||
curl_threads.c | ||
curl_threads.h | ||
curlx.h | ||
dict.c | ||
dict.h | ||
doh.c | ||
doh.h | ||
dynbuf.c | ||
dynbuf.h | ||
dynhds.c | ||
dynhds.h | ||
easy_lock.h | ||
easy.c | ||
easygetopt.c | ||
easyif.h | ||
easyoptions.c | ||
easyoptions.h | ||
escape.c | ||
escape.h | ||
file.c | ||
file.h | ||
fileinfo.c | ||
fileinfo.h | ||
fopen.c | ||
fopen.h | ||
formdata.c | ||
formdata.h | ||
ftp.c | ||
ftp.h | ||
ftplistparser.c | ||
ftplistparser.h | ||
functypes.h | ||
getenv.c | ||
getinfo.c | ||
getinfo.h | ||
gopher.c | ||
gopher.h | ||
hash.c | ||
hash.h | ||
headers.c | ||
headers.h | ||
hmac.c | ||
hostasyn.c | ||
hostip4.c | ||
hostip6.c | ||
hostip.c | ||
hostip.h | ||
hostsyn.c | ||
hsts.c | ||
hsts.h | ||
http1.c | ||
http1.h | ||
http2.c | ||
http2.h | ||
http_aws_sigv4.c | ||
http_aws_sigv4.h | ||
http_chunks.c | ||
http_chunks.h | ||
http_digest.c | ||
http_digest.h | ||
http_negotiate.c | ||
http_negotiate.h | ||
http_ntlm.c | ||
http_ntlm.h | ||
http_proxy.c | ||
http_proxy.h | ||
http.c | ||
http.h | ||
idn.c | ||
idn.h | ||
if2ip.c | ||
if2ip.h | ||
imap.c | ||
imap.h | ||
inet_ntop.c | ||
inet_ntop.h | ||
inet_pton.c | ||
inet_pton.h | ||
krb5.c | ||
ldap.c | ||
libcurl.plist.in | ||
libcurl.rc | ||
libcurl.vers.in | ||
llist.c | ||
llist.h | ||
Makefile.am | ||
Makefile.inc | ||
Makefile.mk | ||
Makefile.soname | ||
md4.c | ||
md5.c | ||
memdebug.c | ||
memdebug.h | ||
mime.c | ||
mime.h | ||
mprintf.c | ||
mqtt.c | ||
mqtt.h | ||
multi.c | ||
multihandle.h | ||
multiif.h | ||
netrc.c | ||
netrc.h | ||
nonblock.c | ||
nonblock.h | ||
noproxy.c | ||
noproxy.h | ||
openldap.c | ||
optiontable.pl | ||
parsedate.c | ||
parsedate.h | ||
pingpong.c | ||
pingpong.h | ||
pop3.c | ||
pop3.h | ||
progress.c | ||
progress.h | ||
psl.c | ||
psl.h | ||
rand.c | ||
rand.h | ||
rename.c | ||
rename.h | ||
rtsp.c | ||
rtsp.h | ||
select.c | ||
select.h | ||
sendf.c | ||
sendf.h | ||
setopt.c | ||
setopt.h | ||
setup-os400.h | ||
setup-vms.h | ||
setup-win32.h | ||
sha256.c | ||
share.c | ||
share.h | ||
sigpipe.h | ||
slist.c | ||
slist.h | ||
smb.c | ||
smb.h | ||
smtp.c | ||
smtp.h | ||
sockaddr.h | ||
socketpair.c | ||
socketpair.h | ||
socks_gssapi.c | ||
socks_sspi.c | ||
socks.c | ||
socks.h | ||
speedcheck.c | ||
speedcheck.h | ||
splay.c | ||
splay.h | ||
strcase.c | ||
strcase.h | ||
strdup.c | ||
strdup.h | ||
strerror.c | ||
strerror.h | ||
strtok.c | ||
strtok.h | ||
strtoofft.c | ||
strtoofft.h | ||
system_win32.c | ||
system_win32.h | ||
telnet.c | ||
telnet.h | ||
tftp.c | ||
tftp.h | ||
timediff.c | ||
timediff.h | ||
timeval.c | ||
timeval.h | ||
transfer.c | ||
transfer.h | ||
url.c | ||
url.h | ||
urlapi-int.h | ||
urlapi.c | ||
urldata.h | ||
version_win32.c | ||
version_win32.h | ||
version.c | ||
warnless.c | ||
warnless.h | ||
ws.c | ||
ws.h |