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

cmd/go: go command failed with missing symbol on OS X 10.6 #3131

Closed
gopherbot opened this issue Feb 26, 2012 · 5 comments
Closed

cmd/go: go command failed with missing symbol on OS X 10.6 #3131

gopherbot opened this issue Feb 26, 2012 · 5 comments
Milestone

Comments

@gopherbot
Copy link

by mjhollins:

Hi,
I installed go from
http://code.google.com/p/go/downloads/detail?name=go.weekly.2012-02-22.darwin-amd64.pkg&;can=2&q=
on OS X 10.6.8

Running the go command resulted in:

  $ go
  dyld: Symbol not found: _SecItemExport
    Referenced from: /usr/local/go/bin/go
    Expected in: flat namespace

    Trace/BPT trap

 As a quick hack I edited the following file:

   /usr/local/go/src/pkg/crypto/tls/root_darwin.go

and commented out the following lines:

//#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
//      if (SecItemExport) {
//          err = SecItemExport(cert, kSecFormatX509Cert, kSecItemPemArmour, NULL, &data);
//          if (err != noErr) {
//              continue;
//          }
//      } else
//#endif

I then ran all.bash and after that the go command succeeds.

thanks,
mick
@robpike
Copy link
Contributor

robpike commented Feb 26, 2012

Comment 1:

Labels changed: added priority-go1, go1-must, removed priority-triage.

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Feb 26, 2012

Comment 3:

Owner changed to builder@golang.org.

@mkrautz
Copy link
Contributor

mkrautz commented Feb 26, 2012

Comment 4:

BTW,
Fix available in CL 5697065: http://golang.org/cl/5697065/

@rsc
Copy link
Contributor

rsc commented Feb 28, 2012

Comment 6:

This issue was closed by revision fb1a5fc.

Status changed to Fixed.

@rsc rsc added this to the Go1 milestone Apr 10, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@gopherbot
Copy link
Author

CL https://golang.org/cl/32580 mentions this issue.

FiloSottile pushed a commit to FiloSottile/go that referenced this issue Oct 12, 2018
This is a band-aid until we can use weak imports with cgo.

Fixes golang#3131.

R=minux.ma, rsc
CC=golang-dev
https://golang.org/cl/5700083
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants