On Jun 23 2017, Ian Lance Taylor <i...@golang.org> wrote: > Andreas, can we avoid the problem for earlier glibc versions with a > patch like the appended? > > Ian > > diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c > index a1afc7d1..80407443 100644 > --- a/libgo/sysinfo.c > +++ b/libgo/sysinfo.c > @@ -38,7 +38,10 @@ > #if defined(HAVE_NETINET_IF_ETHER_H) > #include <netinet/if_ether.h> > #endif > +/* Avoid https://sourceware.org/bugzilla/show_bug.cgi?id=762 . */ > +#define ia64_fpreg pt_ia64_fpreg > #include <signal.h> > +#undef ia64_fpreg
That doesn't work, but this does: diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c index a1afc7d119c..1ba27b1a093 100644 --- a/libgo/sysinfo.c +++ b/libgo/sysinfo.c @@ -103,7 +103,12 @@ #include <linux/netlink.h> #endif #if defined(HAVE_LINUX_PTRACE_H) +/* Avoid https://sourceware.org/bugzilla/show_bug.cgi?id=762 . */ +#define ia64_fpreg pt_ia64_fpreg +#define pt_all_user_regs pt_ia64_all_user_regs #include <linux/ptrace.h> +#undef ia64_fpreg +#undef pt_all_user_regs #endif #if defined(HAVE_LINUX_RTNETLINK_H) #include <linux/rtnetlink.h> Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."