xfs-masters
[Top] [All Lists]

[Bug 895] New: xfsdump: build fails with glibc-2.12 due to missing sys/s

To: xfs-masters@xxxxxxxxxxx
Subject: [Bug 895] New: xfsdump: build fails with glibc-2.12 due to missing sys/stat.h include
From: bugzilla-daemon@xxxxxxxxxxx
Date: Sun, 29 Aug 2010 17:21:42 -0500
Auto-submitted: auto-generated
http://oss.sgi.com/bugzilla/show_bug.cgi?id=895

           Summary: xfsdump: build fails with glibc-2.12 due to missing
                    sys/stat.h include
           Product: XFS
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: xfsdump
        AssignedTo: xfs-masters@xxxxxxxxxxx
        ReportedBy: vapier@xxxxxxxxxx
   Estimated Hours: 0.0
    Classification: Unclassified


newer glibc is better about namespace pollution.  that means package need to
include sys/stat.h if they wish to use things from it.  xfsdump fails in a few
spots due to this.

--- xfsdump-3.0.4/invutil/cmenu.c
+++ xfsdump-3.0.4/invutil/cmenu.c
@@ -21,6 +21,7 @@

 #include <ncurses.h>
 #include <signal.h>
+#include <sys/stat.h>

 #include "types.h"
 #include "mlog.h"
--- xfsdump-3.0.4/invutil/invidx.c
+++ xfsdump-3.0.4/invutil/invidx.c
@@ -21,6 +21,7 @@

 #include <ncurses.h>
 #include <sys/mman.h>
+#include <sys/stat.h>

 #include "types.h"
 #include "mlog.h"
--- xfsdump-3.0.4/invutil/stobj.c
+++ xfsdump-3.0.4/invutil/stobj.c
@@ -20,6 +20,7 @@
 #include <xfs/jdm.h>
 #include <ncurses.h>
 #include <sys/mman.h>
+#include <sys/stat.h>

 #include "types.h"
 #include "mlog.h"

-- 
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

<Prev in Thread] Current Thread [Next in Thread>
  • [Bug 895] New: xfsdump: build fails with glibc-2.12 due to missing sys/stat.h include, bugzilla-daemon <=