Skip to content

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

Closed
@gopherbot

Description

@gopherbot

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions