xfs-masters
[Top] [All Lists]

[Bug 858] New: xfs/linux.h:101 error in xfsprogs-3.0.5 -- off64_t not de

To: xfs-masters@xxxxxxxxxxx
Subject: [Bug 858] New: xfs/linux.h:101 error in xfsprogs-3.0.5 -- off64_t not declared.
From: bugzilla-daemon@xxxxxxxxxxx
Date: Wed, 25 Nov 2009 22:34:01 -0600
Auto-submitted: auto-generated
http://oss.sgi.com/bugzilla/show_bug.cgi?id=858

           Summary: xfs/linux.h:101 error in xfsprogs-3.0.5 -- off64_t not
                    declared.
           Product: XFS
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: xfsprogs
        AssignedTo: xfs-masters@xxxxxxxxxxx
        ReportedBy: charles@xxxxxxxxxxxxxxxxxx
   Estimated Hours: 0.0
    Classification: Unclassified


It's possible that I'm #including the xfs headers wrong.  For completeness I'll
list how I go about accessing xfs:

in configure.ac:

    AC_CHECK_HEADERS([xfs/xfs.h])

in the source code:

    #ifdef HAVE_XFS_XFS_H
      #include <xfs/xfs.h>
    #endif

The bug reports I'm getting from users trying to build the above code:

    http://trac.transmissionbt.com/ticket/2606
    http://trac.transmissionbt.com/ticket/2590
    http://aur.archlinux.org/packages.php?ID=26360

They all report the same compile failure:

    /usr/include/xfs/linux.h:101: expected declaration specifiers or ‘...’
before ‘off64_t’
    /usr/include/xfs/linux.h:101: expected declaration specifiers or ‘...’
before ‘off64_t’

It looks as if xfs/linux.h needs to #include some headers to get off64_t
declared before using it in platform_discard_blocks().  If this is the wrong
diagnosis and I need to make some change on my end, please let me know.

-- 
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>