-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Build fails with ./configure --enable-shared --disable-static
on Windows
#9803
Comments
replying to #9521 (comment):
Do you mean for the |
./configure --enable-shared --disable-static --with-schannel
./configure --enable-shared --disable-static
./configure --enable-shared --disable-static
./configure --enable-shared --disable-static
on Windows
[ Deleted |
I've reverted those two commits now downstream, so there is need no hurry. I don't understand the libtool/autotools/make magic, but as a lead: removing |
Yes, that might work, but as luck has it, building libcurl does seem to require the translation "magic":
Having to use In the meantime, everyone is welcome for suggestions on what is the autotools-way of solving this. |
`./configure --enable-shared --disable-static` fails when trying to link a shared `curl.exe`, due to `libtool` magically changing the output filename of `windres` to one that it doesn't find when linking: ``` /bin/sh ../libtool --tag=RC --mode=compile windres -I../../curl-7.86.0/include -DCURL_EMBED_MANIFEST -i ../../curl-7.86.0/src/curl.rc -o curl.o libtool: compile: windres -I../../curl-7.86.0/include -DCURL_EMBED_MANIFEST -i ../../curl-7.86.0/src/curl.rc -o .libs/curl.o [...] CCLD curl.exe clang: error: no such file or directory: 'curl.o' ``` Until we understand the exact mechanics of this, let's work around the problem by skipping `libtool` and calling `windres` directly. Do this for `src` (aka `curl.exe`) only, because `lib` does need the `libtool` magic. The workaround is compatible with building a static `curl.exe`. This build scenario is not CI-tested. While here, delete an obsolete comment about a permanent `libtool` warning that we've resolved earlier. Regression from 6de7322 Reported-by: Christoph Reiter Fixes curl#9803 Closes #xxxx
Odd as it is, using
PR: #9805 |
This issue is a continuation from #9521 (comment)
I did this
# using gcc/clang + mingw-w64 autoreconf -vfi ./configure --enable-shared --disable-static --with-schannel make -j
libtool: compile: windres -I../include -DCURL_EMBED_MANIFEST -i curl.rc -DDLL_EXPORT -DPIC -o .libs/curl.o CCLD curl.exe C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find curl.o: No such file or directory collect2.exe: error: ld returned 1 exit status
git bisect -> 6de7322
I expected the following
it to build
curl/libcurl version
7.86.0
operating system
Windows 11
The text was updated successfully, but these errors were encountered: