Skip to content

pthread related failure during build on MSYS2 #6838

@shanoaice

Description

@shanoaice

Version

5.8.3-stable and master

Description

The configure flags I am using are --enable-quic --enable-session-ticket --enable-earlydata --enable-psk --enable-harden --enable-altcertchains. ./configure script works fine, but make gives me errors about pthread mutex and stuff:

In file included from ../tests/api.c:134:
../tests/api.c: In function 'test_server_nofail':
../tests/api.c:5861:27: warning: implicit declaration of function 'pthread_mutex_lock' [-Wimplicit-function-declaration]
 5861 |         PTHREAD_CHECK_RET(pthread_mutex_lock(&opts->signal->mutex));
      |                           ^~~~~~~~~~~~~~~~~~
../wolfssl/test.h:362:29: note: in definition of macro 'PTHREAD_CHECK_RET'
  362 |         int _pthread_ret = (__VA_ARGS__);                            \
      |                             ^~~~~~~~~~~
../tests/api.c:5861:27: warning: nested extern declaration of 'pthread_mutex_lock' [-Wnested-externs]
 5861 |         PTHREAD_CHECK_RET(pthread_mutex_lock(&opts->signal->mutex));
      |                           ^~~~~~~~~~~~~~~~~~
../wolfssl/test.h:362:29: note: in definition of macro 'PTHREAD_CHECK_RET'
  362 |         int _pthread_ret = (__VA_ARGS__);                            \
      |                             ^~~~~~~~~~~
../tests/api.c:5861:59: error: 'tcp_ready' has no member named 'mutex'
 5861 |         PTHREAD_CHECK_RET(pthread_mutex_lock(&opts->signal->mutex));
      |                                                           ^~
../wolfssl/test.h:362:29: note: in definition of macro 'PTHREAD_CHECK_RET'
  362 |         int _pthread_ret = (__VA_ARGS__);                            \
      |

Complete errors are here: https://fars.ee/7n1Y

I confirm that I am using the latest winpthreads provided by MSYS2 (mingw-w64-ucrt-x86_64-winpthreads-git 11.0.0.r198.g93ca95b32-1).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions