Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Sep 2021 21:07:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 258376] net/libnfs: including libnfs.h can cause compile error (missing struct timeval)
Message-ID:  <bug-258376-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258376

            Bug ID: 258376
           Summary: net/libnfs: including libnfs.h can cause compile error
                    (missing struct timeval)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: jcfyecrayz@liamekaens.com
                CC: snoe925@gmail.com
             Flags: maintainer-feedback?(snoe925@gmail.com)
                CC: snoe925@gmail.com

Building code that includes libnfs.h can trigger a build error...

Simple test case:

% cat test-libnfs.h.c=20
#include <nfsc/libnfs.h>
% cc -I/usr/local/include -c -o /dev/null test-libnfs.h.c
In file included from test-libnfs.h.c:1:
/usr/local/include/nfsc/libnfs.h:1216:23: error: field has incomplete type
'struct timeval'
       struct timeval atime;
                      ^
/usr/local/include/nfsc/libnfs.h:1216:15: note: forward declaration of 'str=
uct
timeval'
       struct timeval atime;
              ^
/usr/local/include/nfsc/libnfs.h:1217:23: error: field has incomplete type
'struct timeval'
       struct timeval mtime;
                      ^
/usr/local/include/nfsc/libnfs.h:1216:15: note: forward declaration of 'str=
uct
timeval'
       struct timeval atime;
              ^
/usr/local/include/nfsc/libnfs.h:1218:23: error: field has incomplete type
'struct timeval'
       struct timeval ctime;
                      ^
/usr/local/include/nfsc/libnfs.h:1216:15: note: forward declaration of 'str=
uct
timeval'
       struct timeval atime;
              ^
3 errors generated.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258376-7788>