Skip to content

Failed to build the connector with OpenSSL on M1 #260

@oleg-jukovec

Description

@oleg-jukovec
$ brew install [email protected]
$ 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/[email protected]/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/[email protected]/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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions