Reported via PR 230867
Broken in 12-CURRENT after r338182
Differential D16908
sysutils/smartmontools: unbreak in recent 12-CURRENT fernape on Aug 26 2018, 3:22 PM. Authored by Tags None Referenced Files
Subscribers
Details
Reported via PR 230867 Broken in 12-CURRENT after r338182
Diff Detail
Event TimelineComment Actions Fails to build for me (r337738): In file included from os_freebsd.cpp:45: ./atacmds.h:96:9: warning: 'ATA_WRITE_LOG_EXT' macro redefined [-Wmacro-redefined] #define ATA_WRITE_LOG_EXT 0x3F ^ /usr/include/sys/ata.h:387:9: note: previous definition is here #define ATA_WRITE_LOG_EXT 0x3f ^ os_freebsd.cpp:526:10: error: no member named 'opc' in 'nvme_command' pt.cmd.opc = in.opcode; ~~~~~~ ^ 1 warning and 1 error generated. Comment Actions You are in r337738 Last change in nvme.h is in r338182 and in that revision, opc and fuse are independent fields: https://svnweb.freebsd.org/base/head/sys/dev/nvme/nvme.h?r1=334200&r2=338182. The fact that the port builds fine in 10 and 11 implies that there was a temporary change to merge opc and fuse in opc_fuse field, the port was patched with the code: +#if __FreeBSD_version >= 1200058 + pt.cmd.opc_fuse = NVME_CMD_SET_OPC(in.opcode); +#else and now in r338182 that field merge has been reverted. So it seems you are in the middle revisions in -CURRENT where the port was patched to match a base src code that is no longer there. In such a case, I would ask the user to update to a more recent -CURRENT revision. Comment Actions Fix the port for the whole life cycle of 12-CURRENT. Maybe this solution is better, although at some point in the future (maybe when |