Actions
Bug #14568
closedBuild failures - MinGW ruby-loco since 62622 2018-03-01
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.6.0dev (2018-03-02 trunk 62627) [x64-mingw32]
Description
Since 62622, MinGW builds have been failing (62627, 62628, 62631). See https://ci.appveyor.com/project/MSP-Greg/ruby-loco/history.
I just tried 62633 locally, and had a similar failure.
Using gcc 7.3.0 & OpenSSL 1.1.0g.
Text in build log is something like:
compiling ../../../ruby/ext/openssl/ossl_x509revoked.c
make[2]: Leaving directory '/e/GitHub/ruby-loco/src/build26_64/ext/zlib'
compiling ../../../ruby/ext/openssl/ossl_x509store.c
linking shared-object win32ole.so
installing default win32ole libraries
make[2]: Leaving directory '/e/GitHub/ruby-loco/src/build26_64/ext/win32ole'
installing default openssl libraries
linking shared-object openssl.so
ossl_ssl.o:ossl_ssl.c:(.text+0x2400): undefined reference to `__imp_WSAGetLastError'
ossl_ssl.o:ossl_ssl.c:(.text+0x284c): undefined reference to `__imp_WSAGetLastError'
ossl_ssl.o:ossl_ssl.c:(.text+0x2cd1): undefined reference to `__imp_WSAGetLastError'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile:327: ../../.ext/x64-mingw32/openssl.so] Error 1
make[2]: Leaving directory '/e/GitHub/ruby-loco/src/build26_64/ext/openssl'
make[1]: *** [exts.mk:251: ext/openssl/all] Error 2
make[1]: Leaving directory '/e/GitHub/ruby-loco/src/build26_64'
make: *** [uncommon.mk:275: build-ext] Error 2
rm x64-msvcrt-ruby260.rc
[1m[31m==> ERROR:[0;10m[1m A failure occurred in build().[0;10m
[1m Aborting...[0;10m
I've also got a copy of the OpenSSL mkmf.log file,if that would be helpful.
Thanks, Greg
Updated by nobu (Nobuyoshi Nakada) about 6 years ago
- Description updated (diff)
Do you have pkg-config
command?
If so, what does pkg-config --libs
return?
Updated by nobu (Nobuyoshi Nakada) about 6 years ago
nobu (Nobuyoshi Nakada) wrote:
Do you have
pkg-config
command?
If so, what doespkg-config --libs
return?
Sorry, pkg-config --libs openssl
.
I also failed it for a while today, by cygwin's pkg-config
.
Updated by MSP-Greg (Greg L) about 6 years ago
From the MSYS2 shell -
$ pkg-config --libs openssl
-LE:/msys64/mingw64/lib -lssl -lcrypto
Updated by nobu (Nobuyoshi Nakada) about 6 years ago
- Status changed from Open to Closed
Applied in changeset trunk|r62637.
openssl: search winsock
- ext/openssl/extconf.rb: on Windows search winsock library
always, regardless pkg-config. direct use of winsock is not
region of OpenSSL. [ruby-core:85895] [Bug #14568]
Actions
Like0
Like0Like0Like0Like0