From owner-freebsd-ports-bugs@freebsd.org Tue Jun 21 10:51:55 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D360CAC4125 for ; Tue, 21 Jun 2016 10:51:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B35562D0C for ; Tue, 21 Jun 2016 10:51:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u5LApsY3017205 for ; Tue, 21 Jun 2016 10:51:55 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 210429] sysutils/smartmontools: incomplete type variable declaration leads to build failure Date: Tue, 21 Jun 2016 10:51:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bkazemi@users.sf.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2016 10:51:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210429 Bug ID: 210429 Summary: sysutils/smartmontools: incomplete type variable declaration leads to build failure Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: bkazemi@users.sf.net CC: samm@os2.kiev.ua CC: samm@os2.kiev.ua Flags: maintainer-feedback?(samm@os2.kiev.ua) When updating to the latest smartmontools (6.5_1), I run into this error: c++ -DHAVE_CONFIG_H -I. -DBUILD_INFO=3D'"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR=3D'"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR=3D'"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR=3D'"/usr/local/share/smartmontools"' -O2 = -pipe -fstack-protector -fno-strict-aliasing -Wall -W -c -o smartd.o smartd.cpp /bin/sh ./config.status --file=3Dupdate-smart-drivedb /bin/sh ./config.status --file=3Dsmartd_warning.sh os_freebsd.cpp:552:26: error: variable has incomplete type 'struct nvme_pt_command' struct nvme_pt_command pt; ^ os_freebsd.cpp:552:10: note: forward declaration of 'nvme_pt_command' struct nvme_pt_command pt; ^ os_freebsd.cpp:567:32: error: invalid application of 'sizeof' to an incompl= ete type 'struct nvme_pt_command' int status =3D ioctl(get_fd(), NVME_PASSTHROUGH_CMD, &pt); ^~~~~~~~~~~~~~~~~~~~ ./freebsd_nvme_ioctl.h:32:30: note: expanded from macro 'NVME_PASSTHROUGH_C= MD' #define NVME_PASSTHROUGH_CMD _IOWR('n', 0, struct nvme_pt_command) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:61:48: note: expanded from macro '_IOWR' #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/sys/ioccom.h:55:16: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << 16) | ((group) << 8) | (num))) ^~~ os_freebsd.cpp:552:10: note: forward declaration of 'nvme_pt_command' struct nvme_pt_command pt; ^ --=20 You are receiving this mail because: You are the assignee for the bug.=