openssl icon indicating copy to clipboard operation
openssl copied to clipboard

Error building: conn.setSession undefined (type *Conn has no field or method setSession)

Open funkenstrahlen opened this issue 8 years ago • 1 comments

I have a problem building mongodb using linuxbrew. It crashes when it tries to build this module.

Building bsondump...
# github.com/spacemonkeygo/openssl
vendor/src/github.com/spacemonkeygo/openssl/net.go:121: conn.setSession undefined (type *Conn has no field or method setSession)
vendor/src/github.com/spacemonkeygo/openssl/net.go:128: conn.SetTlsExtHostName undefined (type *Conn has no field or method SetTlsExtHostName)

Do you have any idea what's causing the problem?

See this related issue for full log: https://github.com/Linuxbrew/homebrew-core/issues/1892

funkenstrahlen avatar Mar 01 '17 09:03 funkenstrahlen

Maybe the downstream people who stuck the code in the vendor folder missed some updated files? The conn.setSession method was added in 4d3c3b16ef613e640d553be49fb1cfd95492a6e0, but SetTlsExtHostName was there from the first time we open sourced it.

Perhaps they've made some changes? I honestly don't know.

zeebo avatar Mar 03 '17 18:03 zeebo