[Bug 258349] benchmarks/fio: build fails if libnfs is installed

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 07 Sep 2021 20:34:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258349

            Bug ID: 258349
           Summary: benchmarks/fio: build fails if libnfs is installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: krion@FreeBSD.org
          Reporter: jcfyecrayz@liamekaens.com
          Assignee: krion@FreeBSD.org
             Flags: maintainer-feedback?(krion@FreeBSD.org)

If the libnfs port/package is installed, 'make configure' enables nfs support
and 'make build' fails:

  .
  .
    CC engines/nfs.o
In file included from engines/nfs.c:3:
/usr/local/include/nfsc/libnfs.h:1216:23: error: field has incomplete type
      'struct timeval'
       struct timeval atime;
                      ^
  .
  .


Options:

 - patch to include sys/time.h (and pass upstream).  This is actually, now that
I look at it closer, maybe more of a libnfs bug.

 - explicitly disable nfs support (--disable-libnfs)

 - make an NFS option (pass --enable-libnfs and add to LIB_DEPENDS).  This port
should not be silently dependent on libnfs anyway - there should be an explicit
LIB_DEPENDS for libnfs (if desired).

I guess I vote for patching libnfs to include the right file in libnfs.h, and
makeing NFS support in fio an OPTION.

-- 
You are receiving this mail because:
You are the assignee for the bug.