[MacPorts] #58192: Current Go port fails to compile yubihsm-connector package

MacPorts noreply at macports.org
Tue Mar 12 12:45:51 UTC 2019


#58192: Current Go port fails to compile yubihsm-connector package
------------------------+--------------------
 Reporter:  mouse07410  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  go
------------------------+--------------------
 MacOS Mojave 10.14.3, Xcode-10.1, Macports-installed go 1.12.
 Package in question is https://github.com/Yubico/yubihsm-connector
 Here's what I'm getting trying to compile:
 {{{
 $ make V=1
 golang.org/x/sys/unix.kevent: relocation target
 golang.org/x/sys/unix.Syscall6 not defined for ABIInternal (but is defined
 for ABI0)
 golang.org/x/sys/unix.ioctl: relocation target
 golang.org/x/sys/unix.Syscall not defined for ABIInternal (but is defined
 for ABI0)
 golang.org/x/sys/unix.Close: relocation target
 golang.org/x/sys/unix.Syscall not defined for ABIInternal (but is defined
 for ABI0)
 golang.org/x/sys/unix.Kqueue: relocation target
 golang.org/x/sys/unix.Syscall not defined for ABIInternal (but is defined
 for ABI0)
 golang.org/x/sys/unix.Open: relocation target
 golang.org/x/sys/unix.Syscall not defined for ABIInternal (but is defined
 for ABI0)
 golang.org/x/sys/unix.mmap: relocation target
 golang.org/x/sys/unix.Syscall6 not defined for ABIInternal (but is defined
 for ABI0)
 golang.org/x/sys/unix.munmap: relocation target
 golang.org/x/sys/unix.Syscall not defined for ABIInternal (but is defined
 for ABI0)
 # yubihsm-connector
 yubihsm-connector
 FATAL: command "build" failed: exit status 2
 make: *** [build] Error 1
 $ go version
 go version go1.12 darwin/amd64
 $ sw_vers
 ProductName:    Mac OS X
 ProductVersion: 10.14.3
 BuildVersion:   18D109
 $
 }}}

 Here's what others who use Homebrew go-1.11.5 get:
 {{{
 $ make
 github.com/hashicorp/hcl/hcl/strconv
 . . . . .
 github.com/sirupsen/logrus/hooks/syslog
 github.com/hashicorp/hcl
 github.com/spf13/viper
 cgo-gcc-prolog:186:2: warning: 'libusb_set_debug' is deprecated
 [-Wdeprecated-declarations]
 /usr/local/include/libusb-1.0/libusb.h:1299:1: note: 'libusb_set_debug'
 has been explicitly marked deprecated here
 /usr/local/include/libusb-1.0/libusb.h:89:49: note: expanded from macro
 'LIBUSB_DEPRECATED_FOR'
 github.com/thorduri/go-libusb/usb
 yubihsm-connector
 $ go version
 go version go1.11.5 darwin/amd64
 $ sw_vers
 ProductName:    Mac OS X
 ProductVersion: 10.14.3
 BuildVersion:   18D109
 }}}

 Here's the issue against {{{yubihsm-connector}}} with some more details:
 https://github.com/Yubico/yubihsm-connector/issues/5

-- 
Ticket URL: <https://trac.macports.org/ticket/58192>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list