Opened 6 years ago

Closed 2 years ago

#58192 closed defect (fixed)

go @1.12: port fails to compile yubihsm-connector package

Reported by: mouse07410 (Mouse) Owned by: ci42
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: herbygillot (Herby Gillot)
Port: go

Description

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

Change History (4)

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Cc: ciserlohn@… removed
Owner: set to ci42
Status: newassigned

comment:2 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: herbygillot added
Summary: Current Go port fails to compile yubihsm-connector packagego @1.12: port fails to compile yubihsm-connector package

Is this still an issue with the current version of Go, which is 1.19.x for 10.13 and later?

comment:3 Changed 2 years ago by mouse07410 (Mouse)

No, after three years and many version changes, this is no longer an issue. At least, at this time.

Last edited 2 years ago by mouse07410 (Mouse) (previous) (diff)

comment:4 in reply to:  3 Changed 2 years ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: assignedclosed

Replying to mouse07410:

No, after three years and many version changes, this is no longer an issue. At least, at this time.

Great!

Note: See TracTickets for help on using tickets.