Skip to content

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Apr 25, 2024

mbedtls configure fails to detect anything due to this:

configure:23101: gcc -o conftest -g -O2 -I/opt/homebrew/include  conftest.c  -lmbedcrypto -lz >&5
ld: library 'mbedcrypto' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@vszakats vszakats marked this pull request as draft April 25, 2024 15:02
@vszakats

This comment was marked as outdated.

@vszakats vszakats changed the title test 1 autotools: libgcrypt and mbedtls fails to detect on Homebrew macOS/ARM64 Apr 25, 2024
@vszakats vszakats force-pushed the macosarm-5 branch 3 times, most recently from 3c8d8c8 to ef20ffb Compare April 25, 2024 18:27
@vszakats vszakats changed the title autotools: libgcrypt and mbedtls fails to detect on Homebrew macOS/ARM64 ci/GHA: fix detecting gcrypt and disable mbedtls with autotools/macOS/Homebrew/ARM64 Apr 25, 2024
@vszakats vszakats marked this pull request as ready for review April 25, 2024 18:41
@vszakats vszakats added the build label Apr 25, 2024
@vszakats vszakats changed the title ci/GHA: fix detecting gcrypt and disable mbedtls with autotools/macOS/Homebrew/ARM64 ci/GHA: fix gcrypt and disable mbedtls with autotools/macOS/Homebrew/ARM64 Apr 25, 2024
mbedtls configure fails to detect anything due to this:
```
configure:23101: gcc -o conftest -g -O2 -I/opt/homebrew/include  conftest.c  -lmbedcrypto -lz >&5
ld: library 'mbedcrypto' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
@vszakats vszakats changed the title ci/GHA: fix gcrypt and disable mbedtls with autotools/macOS/Homebrew/ARM64 ci/GHA: fix gcrypt with autotools/macOS/Homebrew/ARM64 Apr 25, 2024
@vszakats vszakats merged commit ae2770d into libssh2:master Apr 25, 2024
@vszakats vszakats deleted the macosarm-5 branch April 25, 2024 19:13
vszakats added a commit that referenced this pull request May 8, 2024
autotools lib detection routine failed to extend LDFLAGS for each
detection. This could cause successful detection of a dependency, but
later failing to use it. This did not cause an issue as long as all
dependencies lived under the same prefix, but started breaking on macOS
ARM + Homebrew where this was no longer true for mbedTLS and zlib in
particular.

Follow-up to 8441153 #1381
Follow-up to ae2770d #1377
Closes #1384
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
mbedtls configure fails to detect anything due to this:
```
configure:23101: gcc -o conftest -g -O2 -I/opt/homebrew/include  conftest.c  -lmbedcrypto -lz >&5
ld: library 'mbedcrypto' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
autotools lib detection routine failed to extend LDFLAGS for each
detection. This could cause successful detection of a dependency, but
later failing to use it. This did not cause an issue as long as all
dependencies lived under the same prefix, but started breaking on macOS
ARM + Homebrew where this was no longer true for mbedTLS and zlib in
particular.

Follow-up to 8441153 libssh2#1381
Follow-up to ae2770d libssh2#1377
Closes libssh2#1384
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant