Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build the connector with OpenSSL on M1 #260

Closed
oleg-jukovec opened this issue Jan 10, 2023 · 0 comments · Fixed by #270
Closed

Failed to build the connector with OpenSSL on M1 #260

oleg-jukovec opened this issue Jan 10, 2023 · 0 comments · Fixed by #270
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@oleg-jukovec
Copy link
Collaborator

oleg-jukovec commented Jan 10, 2023

$ brew install openssl@1.1
$ make test
Running all packages tests
go clean -testcache
go test -tags "" ./... -v -p 1
go: downloading github.com/stretchr/testify v1.7.1
go: downloading github.com/google/uuid v1.3.0
go: downloading github.com/shopspring/decimal v1.3.1
go: downloading gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
go: downloading github.com/davecgh/go-spew v1.1.0
# github.com/tarantool/go-tarantool.test
/opt/homebrew/Cellar/go/1.19.3/libexec/pkg/tool/darwin_arm64/link: running clang failed: exit status 1
ld: warning: ignoring file /usr/local/opt/openssl@1.1/lib/libssl.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/opt/openssl@1.1/lib/libcrypto.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "_ASN1_INTEGER_free", referenced from:
      __cgo_3cad583f5b97_Cfunc_ASN1_INTEGER_free in 000009.o
     (maybe you meant: __cgo_3cad583f5b97_Cfunc_ASN1_INTEGER_free)
  "_ASN1_INTEGER_new", referenced from:
      __cgo_3cad583f5b97_Cfunc_ASN1_INTEGER_new in 000009.o
     (maybe you meant: __cgo_3cad583f5b97_Cfunc_ASN1_INTEGER_new)
  "_ASN1_INTEGER_to_BN", referenced from:
      __cgo_3cad583f5b97_Cfunc_ASN1_INTEGER_to_BN in 000009.o
     (maybe you meant: __cgo_3cad583f5b97_Cfunc_ASN1_INTEGER_to_BN)
  "_ASN1_OCTET_STRING_new", referenced from:
      _add_custom_ext in 000032.o
  "_ASN1_OCTET_STRING_set", referenced from:
      _add_custom_ext in 000032.o
  "_BIO_clear_flags", referenced from:
      _x_bio_create in 000034.o
      _X_BIO_clear_flags in 000034.o
     (maybe you meant: _X_BIO_clear_flags, __cgo_3cad583f5b97_Cfunc_X_BIO_clear_flags )

It is possible to use the connector with disabled SSL support with go_tarantool_ssl_disable build tag:

$ make TAGS="go_tarantool_ssl_disable" test
$ go test -v -tags go_tarantool_ssl_disable ./... -v -p 1
@oleg-jukovec oleg-jukovec added bug Something isn't working 3sp good first issue Good for newcomers and removed 3sp labels Jan 10, 2023
@oleg-jukovec oleg-jukovec self-assigned this Mar 3, 2023
oleg-jukovec added a commit to tarantool/go-openssl that referenced this issue Mar 3, 2023
oleg-jukovec added a commit to tarantool/go-openssl that referenced this issue Mar 3, 2023
/usr/local is for Intel binaries/libraries, /opt/homebrew for ARM [1].

1. https://docs.brew.sh/Installation

Related to tarantool/go-tarantool#260
oleg-jukovec added a commit to tarantool/go-openssl that referenced this issue Mar 7, 2023
/usr/local is for Intel binaries/libraries, /opt/homebrew for ARM [1].

1. https://docs.brew.sh/Installation

Related to tarantool/go-tarantool#260
oleg-jukovec added a commit that referenced this issue Mar 7, 2023
The patch fixes build on macOS with Apple M1.

Related to tarantool/tt#308
Closes #260
oleg-jukovec added a commit that referenced this issue Mar 7, 2023
The patch fixes build on macOS with Apple M1.

Related to tarantool/tt#308
Closes #260
oleg-jukovec added a commit that referenced this issue Mar 24, 2023
Overview

    The release adds pagination support and wrappers for the
    crud module.

Breaking changes

    There are no breaking changes in the release.

New features

    Support pagination (#246).

    A Makefile target to test with race detector (#218).

    Support CRUD API (#108).

    An ability to replace a base network connection to a Tarantool
    instance (#265).

Bugfixes

    Several non-critical data race issues (#218).

    Build on Apple M1 with OpenSSL (#260).

    ConnectionPool does not properly handle disconnection with
    Opts.Reconnect set (#272).
oleg-jukovec added a commit that referenced this issue Apr 27, 2023
Overview

    The release adds pagination support and wrappers for the
    crud module.

Breaking changes

    There are no breaking changes in the release.

New features

    Support pagination (#246).

    A Makefile target to test with race detector (#218).

    Support CRUD API (#108).

    An ability to replace a base network connection to a Tarantool
    instance (#265).

    Missed iterator constant (#285).

Bugfixes

    Several non-critical data race issues (#218).

    Build on Apple M1 with OpenSSL (#260).

    ConnectionPool does not properly handle disconnection with
    Opts.Reconnect set (#272).
oleg-jukovec added a commit that referenced this issue May 18, 2023
Overview

    The release adds pagination support and wrappers for the
    crud module.

Breaking changes

    There are no breaking changes in the release.

New features

    Support pagination (#246).

    A Makefile target to test with race detector (#218).

    Support CRUD API (#108).

    An ability to replace a base network connection to a Tarantool
    instance (#265).

    Missed iterator constant (#285).

Bugfixes

    Several non-critical data race issues (#218).

    Build on Apple M1 with OpenSSL (#260).

    ConnectionPool does not properly handle disconnection with
    Opts.Reconnect set (#272).

    Watcher events loss with a small per-request timeout (#284).

    Connect() panics on concurrent schema update (#278).

    Wrong Ttr setup by Queue.Cfg() (#278).

    Flaky queue/Example_connectionPool (#278).

    Flaky queue/Example_simpleQueueCustomMsgPack (#277).

Other

    queue module version bumped to 1.3.0 (#278).
oleg-jukovec added a commit that referenced this issue May 18, 2023
Overview

    The release adds pagination support and wrappers for the
    crud module.

Breaking changes

    There are no breaking changes in the release.

New features

    Support pagination (#246).

    A Makefile target to test with race detector (#218).

    Support CRUD API (#108).

    An ability to replace a base network connection to a Tarantool
    instance (#265).

    Missed iterator constant (#285).

Bugfixes

    Several non-critical data race issues (#218).

    Build on Apple M1 with OpenSSL (#260).

    ConnectionPool does not properly handle disconnection with
    Opts.Reconnect set (#272).

    Watcher events loss with a small per-request timeout (#284).

    Connect() panics on concurrent schema update (#278).

    Wrong Ttr setup by Queue.Cfg() (#278).

    Flaky queue/Example_connectionPool (#278).

    Flaky queue/Example_simpleQueueCustomMsgPack (#277).

Other

    queue module version bumped to 1.3.0 (#278).
oleg-jukovec added a commit to tarantool/go-openssl that referenced this issue Jul 27, 2023
/usr/local is for Intel binaries/libraries, /opt/homebrew for ARM [1].

1. https://docs.brew.sh/Installation

Related to tarantool/go-tarantool#260
oleg-jukovec added a commit to tarantool/go-openssl that referenced this issue Jul 27, 2023
/usr/local is for Intel binaries/libraries, /opt/homebrew for ARM [1].

1. https://docs.brew.sh/Installation

Related to tarantool/go-tarantool#260
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant