Created attachment 523362 [details, diff] Solaris SYS_uuidsys patch x86_64-pc-solaris2.11-g++ -x c++ -O2 -pipe -I. -I. -I./common -I./config -DLOCALEDIR="\"/gentoo/prefix64/usr/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../opcodes/.. -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber -I./gnulib/import -Ibuild-gnulib/import -DTUI=1 -I/gentoo/prefix64/usr/include -I/gentoo/prefix64/usr/include/python3.5 -I/gentoo/prefix64/usr/include/python3.5 -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized -Wno-unknown-pragmas -Wno-deprecated-declarations -c -o amd64-nat.o -MT amd64-nat.o -MMD -MP -MF ./.deps/amd64-nat.Tpo amd64-nat.c proc-events.c: In function ‘void init_syscall_table()’: proc-events.c:496:17: error: ‘SYS_uuidsys’ was not declared in this scope syscall_table[SYS_uuidsys] = "uuidsys"; ^~~~~~~~~~~ make[2]: *** [Makefile:1620: proc-events.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/gentoo/prefix64/var/tmp/portage/sys-devel/gdb-8.1/work/gdb-8.1/gdb' make[1]: *** [Makefile:8156: all-gdb] Error 2 make[1]: Leaving directory '/gentoo/prefix64/var/tmp/portage/sys-devel/gdb-8.1/work/gdb-8.1' make: *** [Makefile:849: all] Error 2 sys/syscall.h doesn't define SYS_uuidsys. Please add the attached patch to the patchset that makes the usage of this symbol conditional.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c70d69b692cc41a23ac980db18d7178175084379 commit c70d69b692cc41a23ac980db18d7178175084379 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2018-03-10 20:12:32 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-03-10 20:12:53 +0000 sys-devel/gdb: bump the patchset up to 1, bug #650130 Two patches: + 01_all_ia64-TRAP_HWBKPT.patch + 02_all_solaris-no-uuidsys.patch Reported-by: Fabian Groffen Bug: https://bugs.gentoo.org/650130 Package-Manager: Portage-2.3.24, Repoman-2.3.6 sys-devel/gdb/Manifest | 1 + sys-devel/gdb/gdb-8.1-r1.ebuild | 255 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 256 insertions(+)}
(In reply to Fabian Groffen from comment #0) > Created attachment 523362 [details, diff] [details, diff] > Solaris SYS_uuidsys patch Pushed as gdb-8.1-r1. Can you also file an upstream bug? https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb
https://sourceware.org/bugzilla/show_bug.cgi?id=22950
Official committed patch: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=patch;h=e28b63a989caffa4a6fba1aaf0d8992b37d13da8;hp=cd8c76e410a5f16a170cc680be1ae2ecb5528821 Separate patch is in Gentoo, next upstream release should have this included.