Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2013 21:19:15 GMT
From:      Hiren Panchasara <hiren.panchasara@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/177422: [patch] [lsof] port broken after r247602
Message-ID:  <201303272119.r2RLJF0F092568@red.freebsd.org>
Resent-Message-ID: <201303272120.r2RLK0bi080096@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177422
>Category:       ports
>Synopsis:       [patch] [lsof] port broken after r247602
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 27 21:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Hiren Panchasara
>Release:        current
>Organization:
>Environment:
10.0-CURRENT FreeBSD 10.0-CURRENT #3 r247891: Wed Mar  6 15:04:28 PST 2013
>Description:
Fails in building:

dproc.c:374:11: error: no member named 'fd_ofileflags' in 'struct filedesc'; did you mean 'fd_ofiles'?
                if (!fd.fd_ofileflags || kread((KA_T)fd.fd_ofileflags, pof, nb))
                        ^~~~~~~~~~~~~
                        fd_ofiles
/usr/src/sys/sys/filedesc.h:68:22: note: 'fd_ofiles' declared here
        struct  filedescent *fd_ofiles; /* open files */
                             ^
dproc.c:374:43: error: no member named 'fd_ofileflags' in 'struct filedesc'; did you mean 'fd_ofiles'?
                if (!fd.fd_ofileflags || kread((KA_T)fd.fd_ofileflags, pof, nb))
                                                        ^~~~~~~~~~~~~
                                                        fd_ofiles
/usr/src/sys/sys/filedesc.h:68:22: note: 'fd_ofiles' declared here
        struct  filedescent *fd_ofiles; /* open files */

>How-To-Repeat:

>Fix:
--- dproc.c.0   2013-03-27 14:08:03.415202409 -0700
+++ dproc.c     2013-03-27 14:12:19.552186829 -0700
@@ -397,7 +397,7 @@ 
                    }
                    pofb = nb;
                }
-               if (!fd.fd_ofileflags || kread((KA_T)fd.fd_ofileflags, pof, nb))
+               if (!fd.fd_ofiles->fde_flags || kread((KA_T)fd.fd_ofiles->fde_flags, pof, nb))
                    zeromem(pof, nb);
            }
 #endif /* defined(HASFSTRUCT) */


>Release-Note:
>Audit-Trail:
>Unformatted:



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