Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows: configure: error: --without-ssl has been set together with an explicit option to use an ssl library #19

Closed
shawnlaffan opened this issue Nov 26, 2022 · 4 comments

Comments

@shawnlaffan
Copy link
Contributor

I'm seeing these failures on windows machines for share builds on Windows machines (laptop and CI):

configure: error: --without-ssl has been set together with an explicit option to use an ssl library
(e.g. --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl, --with-rustls).
Since these are conflicting parameters, verify which is the desired one and drop the other.
external command failed at C:/strawberry/perl/site/lib/Alien/Build/CommandSequence.pm line 88.
gmake: *** [Makefile:1027: _alien/mm/build] Error 2

An example failed build with full log is at: https://ci.appveyor.com/project/shawnlaffan/perl-alien-proj/builds/45496003

@shawnlaffan
Copy link
Contributor Author

Editing the alienfile to remove the ---without-ssl flag seems to fix things.

Alien-curl/alienfile

Lines 34 to 38 in 72c8965

if($^O eq 'MSWin32')
{
unshift @acflags, '--with-schannel', '--without-ssl';
undef $alien_ssl;
}

  if($^O eq 'MSWin32')
  {
    unshift @acflags, '--with-schannel';
    undef $alien_ssl;
  }

The causal change in curl seems to be this: curl/curl@7d69924

@shawnlaffan
Copy link
Contributor Author

Although "fixed" in this case just means it completes the static compilation. It fails for the ffi compilation. I don't know enough to say if it's related.

<snip build log>
  CC       ../lib/warnless.o
  CC       ../lib/curl_multibyte.o
  CC       ../lib/version_win32.o
  CC       ../lib/dynbuf.o
/bin/sh ../libtool --tag=RC --mode=compile windres -I../include -DCURL_EMBED_MANIFEST  -i curl.rc -o curl.o
libtool: compile:  windres -I../include -DCURL_EMBED_MANIFEST -i curl.rc  -o .libs/curl.o
  CCLD     curl.exe
gcc.exe: error: curl.o: No such file or directory
make[3]: *** [curl.exe] Error 1

@plicease
Copy link
Member

I think the configure script has indeed changed the meaning of ssl to be any ssl rather than openssl :/ Not sure about that second error though

@shawnlaffan
Copy link
Contributor Author

The second error seems to have been reported and fixed in curl git: curl/curl#9805

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants