Summary: | Error: static declaration of setns follows non-static declaration | ||
---|---|---|---|
Product: | gdb | Reporter: | Dan Collins <dcollinsn> |
Component: | gdb | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gbenson |
Priority: | P2 | ||
Version: | unknown | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Dan Collins
2015-09-12 12:24:57 UTC
The gdb-7.10-branch branch has been updated by Gary Benson <gary@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a8c636cb54328fb9a71dcf27b66a7e7ab5443d88 commit a8c636cb54328fb9a71dcf27b66a7e7ab5443d88 Author: Gary Benson <gbenson@redhat.com> Date: Mon Sep 14 11:02:06 2015 +0100 Fix build issue with nat/linux-namespaces.c This commit fixes a build issue on systems with a prototype for setns in their header files but no working setns is detected by configure. gdb/ChangeLog: PR gdb/18957 * nat/linux-namespaces.c (setns): Rename from this ... (do_setns): ... to this. Support calling setns if it exists. (mnsh_handle_setns): Call do_setns. Hi Dan, This was fixed in gdb/master but it didn't get pushed to the 7.10 branch. I've pushed it there now. Thanks for reporting this. Cheers, Gary In file included from /usr/include/sched.h:43:0, from ./nat/linux-namespaces.c:30: /usr/include/bits/sched.h:91:12: note: previous declaration of ‘setns’ was here extern int setns (int __fd, int __nstype) __THROW; https://worcesterconcrete.com |