Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jun 2016 10:51:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 210429] sysutils/smartmontools: incomplete type variable declaration leads to build failure
Message-ID:  <bug-210429-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



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