Skip to content

GHA/windows: fix MSYS2 UWP job name - #22252

Closed
vszakats wants to merge 4 commits into
curl:masterfrom
vszakats:ghawwolf
Closed

vszakats wants to merge 4 commits into
curl:masterfrom
vszakats:ghawwolf

Conversation

@vszakats

@vszakats vszakats commented Jul 2, 2026 •

Copy link
Copy Markdown
Member

@vszakats
vszakats marked this pull request as draft July 2, 2026 22:53
@github-actions github-actions Bot added Windows Windows-specific CI Continuous Integration labels Jul 2, 2026
@vszakats

vszakats commented Jul 2, 2026

Copy link
Copy Markdown
Member Author

Sadly still not curl-compatible:
https://github.com/curl/curl/actions/runs/28626865259/job/84895251568?pr=22252

../../lib/vtls/wolfssl.c: In function 'wssl_x509_share_free':
../../lib/vtls/wolfssl.c:694:5: error: implicit declaration of function 'wolfSSL_X509_STORE_free'; did you mean 'wolfSSL_X509_STORE_CTX_free'? [-Wimplicit-function-declaration]
  694 |     wolfSSL_X509_STORE_free(share->store);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
      |     wolfSSL_X509_STORE_CTX_free
../../lib/vtls/wolfssl.c:694:5: error: nested extern declaration of 'wolfSSL_X509_STORE_free' [-Werror=nested-externs]
In file included from libcurl_unity.c:163:
../../lib/vtls/wolfssl.c: In function 'wssl_x509_share_free':
../../lib/vtls/wolfssl.c:694:5: error: implicit declaration of function 'wolfSSL_X509_STORE_free'; did you mean 'wolfSSL_X509_STORE_CTX_free'? [-Wimplicit-function-declaration]
  694 |     wolfSSL_X509_STORE_free(share->store);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
      |     wolfSSL_X509_STORE_CTX_free
../../lib/vtls/wolfssl.c:694:5: error: nested extern declaration of 'wolfSSL_X509_STORE_free' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c: In function 'wssl_set_cached_x509_store':
../../lib/vtls/wolfssl.c:771:6: error: implicit declaration of function 'wolfSSL_X509_STORE_up_ref'; did you mean 'wolfSSL_X509_STORE_CTX_free'? [-Wimplicit-function-declaration]
  771 |   if(wolfSSL_X509_STORE_up_ref(store)) {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
      |      wolfSSL_X509_STORE_CTX_free
../../lib/vtls/wolfssl.c:771:6: error: nested extern declaration of 'wolfSSL_X509_STORE_up_ref' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c: In function 'wssl_set_cached_x509_store':
../../lib/vtls/wolfssl.c:771:6: error: implicit declaration of function 'wolfSSL_X509_STORE_up_ref'; did you mean 'wolfSSL_X509_STORE_CTX_free'? [-Wimplicit-function-declaration]
  771 |   if(wolfSSL_X509_STORE_up_ref(store)) {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
      |      wolfSSL_X509_STORE_CTX_free
../../lib/vtls/wolfssl.c:771:6: error: nested extern declaration of 'wolfSSL_X509_STORE_up_ref' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c: In function 'Curl_wssl_setup_x509_store':
../../lib/vtls/wolfssl.c:816:6: error: implicit declaration of function 'wolfSSL_CTX_get_cert_store'; did you mean 'SSL_CTX_get_cert_store'? [-Wimplicit-function-declaration]
  816 |      wolfSSL_CTX_get_cert_store(wssl->ssl_ctx) == cached_store) {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |      SSL_CTX_get_cert_store
../../lib/vtls/wolfssl.c:816:6: error: nested extern declaration of 'wolfSSL_CTX_get_cert_store' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c:816:48: error: comparison between pointer and integer
  816 |      wolfSSL_CTX_get_cert_store(wssl->ssl_ctx) == cached_store) {
      |                                                ^~
../../lib/vtls/wolfssl.c: In function 'Curl_wssl_setup_x509_store':
../../lib/vtls/wolfssl.c:816:6: error: implicit declaration of function 'wolfSSL_CTX_get_cert_store'; did you mean 'SSL_CTX_get_cert_store'? [-Wimplicit-function-declaration]
  816 |      wolfSSL_CTX_get_cert_store(wssl->ssl_ctx) == cached_store) {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |      SSL_CTX_get_cert_store
../../lib/vtls/wolfssl.c:816:6: error: nested extern declaration of 'wolfSSL_CTX_get_cert_store' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c:816:48: error: comparison between pointer and integer
  816 |      wolfSSL_CTX_get_cert_store(wssl->ssl_ctx) == cached_store) {
      |                                                ^~
../../lib/vtls/wolfssl.c:820:5: error: implicit declaration of function 'wolfSSL_CTX_set_cert_store'; did you mean 'SSL_CTX_set_cert_store'? [-Wimplicit-function-declaration]
  820 |     wolfSSL_CTX_set_cert_store(wssl->ssl_ctx, cached_store);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     SSL_CTX_set_cert_store
../../lib/vtls/wolfssl.c:820:5: error: nested extern declaration of 'wolfSSL_CTX_set_cert_store' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c:820:5: error: implicit declaration of function 'wolfSSL_CTX_set_cert_store'; did you mean 'SSL_CTX_set_cert_store'? [-Wimplicit-function-declaration]
  820 |     wolfSSL_CTX_set_cert_store(wssl->ssl_ctx, cached_store);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     SSL_CTX_set_cert_store
../../lib/vtls/wolfssl.c:820:5: error: nested extern declaration of 'wolfSSL_CTX_set_cert_store' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c:825:33: error: implicit declaration of function 'wolfSSL_X509_STORE_new'; did you mean 'wolfSSL_X509_STORE_CTX_new'? [-Wimplicit-function-declaration]
  825 |     WOLFSSL_X509_STORE *store = wolfSSL_X509_STORE_new();
      |                                 ^~~~~~~~~~~~~~~~~~~~~~
      |                                 wolfSSL_X509_STORE_CTX_new
../../lib/vtls/wolfssl.c:825:33: error: nested extern declaration of 'wolfSSL_X509_STORE_new' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c:825:33: error: initialization of 'WOLFSSL_X509_STORE *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
../../lib/vtls/wolfssl.c:839:33: error: initialization of 'WOLFSSL_X509_STORE *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  839 |     WOLFSSL_X509_STORE *store = wolfSSL_CTX_get_cert_store(wssl->ssl_ctx);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../../lib/vtls/wolfssl.c:825:33: error: implicit declaration of function 'wolfSSL_X509_STORE_new'; did you mean 'wolfSSL_X509_STORE_CTX_new'? [-Wimplicit-function-declaration]
  825 |     WOLFSSL_X509_STORE *store = wolfSSL_X509_STORE_new();
      |                                 ^~~~~~~~~~~~~~~~~~~~~~
      |                                 wolfSSL_X509_STORE_CTX_new
../../lib/vtls/wolfssl.c:825:33: error: nested extern declaration of 'wolfSSL_X509_STORE_new' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c:825:33: error: initialization of 'WOLFSSL_X509_STORE *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
../../lib/vtls/wolfssl.c:839:33: error: initialization of 'WOLFSSL_X509_STORE *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  839 |     WOLFSSL_X509_STORE *store = wolfSSL_CTX_get_cert_store(wssl->ssl_ctx);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../../lib/vtls/wolfssl.c: In function 'wssl_init_curves':
../../lib/vtls/wolfssl.c:1142:35: error: implicit declaration of function 'wolfSSL_CTX_set1_curves_list'; did you mean 'SSL_CTX_set1_curves_list'? [-Wimplicit-function-declaration]
 1142 | #define wssl_CTX_set1_groups_list wolfSSL_CTX_set1_curves_list
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../lib/vtls/wolfssl.c:1152:17: note: in expansion of macro 'wssl_CTX_set1_groups_list'
 1152 |   if(curves && !wssl_CTX_set1_groups_list(wctx->ssl_ctx, curves)) {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
../../lib/vtls/wolfssl.c:1142:35: error: nested extern declaration of 'wolfSSL_CTX_set1_curves_list' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c:1152:17: note: in expansion of macro 'wssl_CTX_set1_groups_list'
 1152 |   if(curves && !wssl_CTX_set1_groups_list(wctx->ssl_ctx, curves)) {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
../../lib/vtls/wolfssl.c: In function 'wssl_connect_step1':
../../lib/vtls/wolfssl.c:1542:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
 1542 |   curl_socket_t sockfd = Curl_conn_cf_get_socket(cf, data);
      |   ^~~~~~~~~~~~~
../../lib/vtls/wolfssl.c: In function 'wssl_init_curves':
../../lib/vtls/wolfssl.c:1142:35: error: implicit declaration of function 'wolfSSL_CTX_set1_curves_list'; did you mean 'SSL_CTX_set1_curves_list'? [-Wimplicit-function-declaration]
 1142 | #define wssl_CTX_set1_groups_list wolfSSL_CTX_set1_curves_list
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../lib/vtls/wolfssl.c:1152:17: note: in expansion of macro 'wssl_CTX_set1_groups_list'
 1152 |   if(curves && !wssl_CTX_set1_groups_list(wctx->ssl_ctx, curves)) {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
../../lib/vtls/wolfssl.c:1142:35: error: nested extern declaration of 'wolfSSL_CTX_set1_curves_list' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c:1152:17: note: in expansion of macro 'wssl_CTX_set1_groups_list'
 1152 |   if(curves && !wssl_CTX_set1_groups_list(wctx->ssl_ctx, curves)) {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
../../lib/vtls/wolfssl.c: In function 'wssl_connect_step1':
../../lib/vtls/wolfssl.c:1542:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
 1542 |   curl_socket_t sockfd = Curl_conn_cf_get_socket(cf, data);
      |   ^~~~~~~~~~~~~
../../lib/vtls/wolfssl.c: In function 'Curl_wssl_verify_pinned':
../../lib/vtls/wolfssl.c:1629:3: error: implicit declaration of function 'wolfSSL_FreeX509'; did you mean 'wolfSSL_i2d_X509'? [-Wimplicit-function-declaration]
 1629 |   wolfSSL_FreeX509(x509);
      |   ^~~~~~~~~~~~~~~~
      |   wolfSSL_i2d_X509
../../lib/vtls/wolfssl.c:1629:3: error: nested extern declaration of 'wolfSSL_FreeX509' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c:1628:1: error: label 'end' defined but not used [-Werror=unused-label]
 1628 | end:
      | ^~~
../../lib/vtls/wolfssl.c:1574:51: error: unused parameter 'wssl' [-Werror=unused-parameter]
 1574 |                                  struct wssl_ctx *wssl)
      |                                  ~~~~~~~~~~~~~~~~~^~~~
../../lib/vtls/wolfssl.c: In function 'Curl_wssl_verify_pinned':
../../lib/vtls/wolfssl.c:1629:3: error: implicit declaration of function 'wolfSSL_FreeX509'; did you mean 'wolfSSL_i2d_X509'? [-Wimplicit-function-declaration]
 1629 |   wolfSSL_FreeX509(x509);
      |   ^~~~~~~~~~~~~~~~
      |   wolfSSL_i2d_X509
../../lib/vtls/wolfssl.c:1629:3: error: nested extern declaration of 'wolfSSL_FreeX509' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c:1628:1: error: label 'end' defined but not used [-Werror=unused-label]
 1628 | end:
      | ^~~
../../lib/vtls/wolfssl.c:1574:51: error: unused parameter 'wssl' [-Werror=unused-parameter]
 1574 |                                  struct wssl_ctx *wssl)
      |                                  ~~~~~~~~~~~~~~~~~^~~~
../../lib/vtls/wolfssl.c: In function 'wssl_handshake':
../../lib/vtls/wolfssl.c:1756:5: error: implicit declaration of function 'wolfSSL_X509_free'; did you mean 'wolfSSL_X509_d2i'? [-Wimplicit-function-declaration]
 1756 |     wolfSSL_X509_free(cert);
      |     ^~~~~~~~~~~~~~~~~
      |     wolfSSL_X509_d2i
../../lib/vtls/wolfssl.c:1756:5: error: nested extern declaration of 'wolfSSL_X509_free' [-Werror=nested-externs]
../../lib/vtls/wolfssl.c: In function 'wssl_handshake':
../../lib/vtls/wolfssl.c:1756:5: error: implicit declaration of function 'wolfSSL_X509_free'; did you mean 'wolfSSL_X509_d2i'? [-Wimplicit-function-declaration]
 1756 |     wolfSSL_X509_free(cert);
      |     ^~~~~~~~~~~~~~~~~
      |     wolfSSL_X509_d2i
../../lib/vtls/wolfssl.c:1756:5: error: nested extern declaration of 'wolfSSL_X509_free' [-Werror=nested-externs]

@vszakats vszakats changed the title [TEST] GHA/windows: try again wolfssl with MSYS2 GHA/windows: fix msys2 UWP job name Jul 2, 2026
@vszakats
vszakats marked this pull request as ready for review July 2, 2026 23:25
@vszakats vszakats changed the title GHA/windows: fix msys2 UWP job name GHA/windows: fix MSYS2 UWP job name Jul 2, 2026
@vszakats vszakats closed this in 2e2c458 Jul 2, 2026
@vszakats
vszakats deleted the ghawwolf branch July 2, 2026 23:36
@lazka

lazka commented Jul 3, 2026

Copy link
Copy Markdown

Is that a MSYS2 packaging issue, or upstream issue?

@jay

jay commented Jul 3, 2026

Copy link
Copy Markdown
Member

Is that a MSYS2 packaging issue, or upstream issue?

IIRC wolfssl builds pretty lean by default, so some build switches are probably missing. also you are using their cmake build system so the switches are different compared to autobuild.

https://github.com/msys2/MINGW-packages/blob/4b5a47422fb9f18a20afb52e8e4d272cd7e76acb/mingw-w64-wolfssl/PKGBUILD#L28-L38

In wolfssl ssl.h there's guards around some function prototypes so that they aren't included unless enabled so that's why we have all the declaration missing errors, i assume.

wolfssl probably needs openssl compatibility support, which according to their CMakeLists.txt can be added with WOLFSSL_OPENSSLEXTRA (or WOLFSSL_OPENSSLALL). I do not know why it wouldn't have bio or memory support though that seems excessively restricted. I also noticed they have a WOLFSSL_CURL.

/cc @nukyan

jay added a commit that referenced this pull request Jul 3, 2026
- Do not mix declarations and code. (ISO C90 build error)

Ref: #22252 (comment)

Closes #22255
lazka added a commit to msys2/MINGW-packages that referenced this pull request Jul 3, 2026
It's very lean by default, while in MSYS2 we want a build that works
for most users, so enable everything that seems useful.

See curl/curl#22252
@lazka

lazka commented Jul 3, 2026

Copy link
Copy Markdown

ah, thanks. should be fixed now

github-actions Bot pushed a commit to cygapiss/msys2-apiss that referenced this pull request Jul 3, 2026
It's very lean by default, while in MSYS2 we want a build that works
for most users, so enable everything that seems useful.

See curl/curl#22252

Source: msys2/MINGW-packages@5c995ac
vszakats added a commit that referenced this pull request Jul 9, 2026
Number of tests went to 1919 (from 1912). Runs 30s faster.

Thanks-to: Christoph Reiter
Ref: msys2/MINGW-packages@5c995ac
Ref: #22252

Closes #22259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration tidy-up Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

3 participants