Skip to content

Compatibility with mbedtls v3 broken? #8766

@LigH-de

Description

@LigH-de

I did this

compiling libcurl using mbedtls in an MSYS2/MinGW environment (media-autobuild suite) which is kept up-to-date each time before building ffmpeg and other tools failed:

relevant parts of curl-git/build-32bit/ab-suite.make.log from logs.zip

CPPFLAGS: -D_FORTIFY_SOURCE=0 -D__USE_MINGW_ANSI_STDIO=1 -DGNUTLS_INTERNAL_BUILD -DNGHTTP2_STATICLIB -DPSL_STATIC
CFLAGS: -mthreads -mtune=generic -O2 -pipe
CXXFLAGS: -mthreads -mtune=generic -O2 -pipe
LDFLAGS: -pipe -static-libgcc -static-libstdc++
make -j1 
Making all in lib

...

  CC       vtls/libcurl_la-mbedtls.lo
../../lib/vtls/mbedtls.c: In function 'mbed_connect_step2':
../../lib/vtls/mbedtls.c:818:43: error: 'ALPN_H2_LEN' undeclared (first use in this function); did you mean 'ALPN_H2_LENGTH'?
  818 |       if(!strncmp(next_protocol, ALPN_H2, ALPN_H2_LEN) &&
      |                                           ^~~~~~~~~~~
      |                                           ALPN_H2_LENGTH

I expected the following

libcurl compiling successfully

curl/libcurl version

https://github.com/curl/curl.git#tag=LATEST
curl-7_83_0 # 1669b17

operating system

MSYS2/MinGW on Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions