https://bugzilla.redhat.com/show_bug.cgi?id=1404679
Bug ID: 1404679
Summary: IfInfomsg struct incorrectly defined on s390x
Product: Fedora
Version: rawhide
Component: golang
Assignee: vbatts(a)redhat.com
Reporter: dan(a)danny.cz
QA Contact: extras-qa(a)fedoraproject.org
CC: admiller(a)redhat.com, amurdaca(a)redhat.com,
extras-qa(a)fedoraproject.org, fpokorny(a)redhat.com,
golang-updates(a)lists.fedoraproject.org,
hannsj_uhl(a)de.ibm.com, jcajka(a)redhat.com,
jchaloup(a)redhat.com, lemenkov(a)gmail.com,
lsm5(a)redhat.com, renich(a)woralelandia.com, s(a)shk.io,
vbatts(a)redhat.com
Blocks: 467765 (ZedoraTracker)
+++ This bug was initially created as a clone of Bug #1398575 +++
--- Additional comment from Dan Horák on 2016-12-14 06:04:46 EST ---
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.ukwE3x
+ umask 022
+ cd /home/sharkcz/golang-github-vishvananda-netlink
+ cd netlink-e73bad418fd727ed3a02830b1af1ad0283a1de6c
+ export
GOPATH=/home/sharkcz/rpmbuild/BUILDROOT/golang-github-vishvananda-netlink-0-0.10.gite73bad4.fc26.s390x//usr/share/gocode:/usr/share/gocode
+
GOPATH=/home/sharkcz/rpmbuild/BUILDROOT/golang-github-vishvananda-netlink-0-0.10.gite73bad4.fc26.s390x//usr/share/gocode:/usr/share/gocode
+ gotest
github.com/vishvananda/netlink/nl
+ go test
github.com/vishvananda/netlink/nl
#
github.com/vishvananda/netlink/nl
../../rpmbuild/BUILDROOT/golang-github-vishvananda-netlink-0-0.10.gite73bad4.fc26.s390x/usr/share/gocode/src/github.com/vishvananda/netlink/nl/nl_linux_test.go:34:
msg.X__ifi_pad undefined (type *IfInfomsg has no field or method X__ifi_pad)
FAIL
github.com/vishvananda/netlink/nl [build failed]
error: Bad exit status from /var/tmp/rpm-tmp.ukwE3x (%check)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.ukwE3x (%check)
Could not execute local: Non zero exit
--- Additional comment from Dan Horák on 2016-12-14 06:23:12 EST ---
Looks as a bug in
https://golang.org/src/syscall/ztypes_linux_s390x.go
type IfInfomsg struct {
Family uint8
_ uint8
Type uint16
Index int32
Flags uint32
Change uint32
}
while
https://golang.org/src/syscall/ztypes_linux_ppc64.go contains
type IfInfomsg struct {
Family uint8
X__ifi_pad uint8
Type uint16
Index int32
Flags uint32
Change uint32
}
--- Additional comment from Dan Horák on 2016-12-14 07:09:21 EST ---
The corresponding kernel structure is defined in include/uapi/linux/rtnetlink.h
as
struct ifinfomsg {
unsigned char ifi_family;
unsigned char __ifi_pad;
unsigned short ifi_type; /* ARPHRD_* */
int ifi_index; /* Link index */
unsigned ifi_flags; /* IFF_* flags */
unsigned ifi_change; /* IFF_* change mask */
};
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=467765
[Bug 467765] Fedora for System z (s390): Bug Tracker
--
You are receiving this mail because:
You are on the CC list for the bug.