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

bugzilla-daemon at oss.sgi.com bugzilla-daemon at oss.sgi.com
Wed Nov 25 22:34:01 CST 2009


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 at oss.sgi.com
        ReportedBy: charles at transmissionbt.com
   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.


More information about the xfs-masters mailing list