[MacPorts] #64822: wireguard-go @0.0.20220117: Undefined symbols _clock_gettime _getentropy

MacPorts noreply at macports.org
Thu Apr 14 12:07:21 UTC 2022


#64822: wireguard-go @0.0.20220117: Undefined symbols _clock_gettime _getentropy
---------------------------+----------------------
  Reporter:  juhnhooo      |      Owner:  cardi
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  yosemite
      Port:  wireguard-go  |
---------------------------+----------------------

Comment (by snowflake):

 I'm running macOS 10.11.6 (sdk 10.12) with go @1.17.9_0

 The simplest hello world program from https://go.dev/doc/tutorial/getting-
 started.html
 does not build and gives a clock_gettime error.

 The Portfile does include legacysupport, but for some reason it is not
 working.

 {{{
 /opt/local/lib/go/pkg/tool/darwin_amd64/link: running /usr/bin/clang
 failed: exit status 1
 Undefined symbols for architecture x86_64:
   "_clock_gettime", referenced from:
       _runtime.walltime_trampoline.abi0 in go.o
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64822#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list