* Package: sys-block/mpt-status-1.2.0-r1 * Repository: gentoo * USE: abi_x86_64 amd64 elibc_musl kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking mpt-status-1.2.0.tar.bz2 to /var/tmp/portage/sys-block/mpt-status-1.2.0-r1/work >>> Unpacking mpt-status-1.2.0-linux-sources.tar.bz2 to /var/tmp/portage/sys-block/mpt-status-1.2.0-r1/work >>> Source unpacked in /var/tmp/portage/sys-block/mpt-status-1.2.0-r1/work >>> Preparing source in /var/tmp/portage/sys-block/mpt-status-1.2.0-r1/work/mpt-status-1.2.0 ... * Applying mpt-status-1.2.0-gentoo.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-block/mpt-status-1.2.0-r1/work/mpt-status-1.2.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-block/mpt-status-1.2.0-r1/work/mpt-status-1.2.0 ... make -j1 CC=x86_64-gentoo-linux-musl-gcc x86_64-gentoo-linux-musl-gcc -Iincl -Wall -W -I../linux-sources/drivers/message/fusion -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -o mpt-status mpt-status.c -Wl,-O1 -Wl,--as-needed In file included from mpt-status.h:19, from mpt-status.c:38: ../linux-sources/drivers/message/fusion/lsi/mpi_type.h:53:9: error: unknown type name ‘u_int32_t’ 53 | typedef u_int32_t U32; | ^~~~~~~~~ In file included from mpt-status.h:24, from mpt-status.c:38: ../linux-sources/drivers/message/fusion/mptctl.h:270:2: error: unknown type name ‘uint’ 270 | uint event; | ^~~~ ../linux-sources/drivers/message/fusion/mptctl.h:271:2: error: unknown type name ‘uint’ 271 | uint eventContext; | ^~~~ ../linux-sources/drivers/message/fusion/mptctl.h:272:2: error: unknown type name ‘uint’ 272 | uint data[2]; | ^~~~ ../linux-sources/drivers/message/fusion/mptctl.h:393:2: error: unknown type name ‘ushort’ 393 | ushort host_no; /* SCSI Host number, if scsi driver not loaded*/ | ^~~~~~ ../linux-sources/drivers/message/fusion/mptctl.h:416:2: error: unknown type name ‘ushort’ 416 | ushort host_no; /* SCSI Host number, if scsi driver not loaded*/ | ^~~~~~ mpt-status.c:120:1: warning: parameter names (without types) in function declaration 120 | static int read_page2(uint); | ^~~~~~ mpt-status.c:196:30: error: unknown type name ‘uint’; did you mean ‘int’? 196 | mpiIoctlBlk_t *allocIoctlBlk(uint numBytes) { | ^~~~ | int mpt-status.c: In function ‘__probe_scsi_id2’: mpt-status.c:277:2: error: unknown type name ‘uint’; did you mean ‘int’? 277 | uint numBytes; | ^~~~ | int mpt-status.c:286:20: warning: implicit declaration of function ‘allocIoctlBlk’ [-Wimplicit-function-declaration] 286 | if ((mpiBlkPtr = allocIoctlBlk(numBytes)) == NULL) { | ^~~~~~~~~~~~~ mpt-status.c:286:18: warning: assignment to ‘mpiIoctlBlk_t *’ {aka ‘struct mpt_ioctl_command *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 286 | if ((mpiBlkPtr = allocIoctlBlk(numBytes)) == NULL) { | ^ mpt-status.c: At top level: mpt-status.c:333:23: error: unknown type name ‘uint’; did you mean ‘int’? 333 | static int read_page2(uint flags) { | ^~~~ | int mpt-status.c: In function ‘GetVolumeInfo’: mpt-status.c:422:2: error: unknown type name ‘uint’; did you mean ‘int’? 422 | uint numBytes; | ^~~~ | int mpt-status.c:430:17: warning: assignment to ‘mpiIoctlBlk_t *’ {aka ‘struct mpt_ioctl_command *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 430 | if ((mpiBlkPtr = allocIoctlBlk(numBytes)) == NULL) { | ^ mpt-status.c: In function ‘GetPhysDiskInfo’: mpt-status.c:518:2: error: unknown type name ‘uint’; did you mean ‘int’? 518 | uint numBytes; | ^~~~ | int mpt-status.c:523:17: warning: assignment to ‘mpiIoctlBlk_t *’ {aka ‘struct mpt_ioctl_command *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 523 | if ((mpiBlkPtr = allocIoctlBlk(numBytes)) == NULL) | ^ mpt-status.c:537:44: error: ‘uint’ undeclared (first use in this function); did you mean ‘int’? 537 | ConfigRequest->PageAddress = cpu_to_le32((uint)pDisk[0].PhysDiskNum); | ^~~~ | int mpt-status.c:537:44: note: each undeclared identifier is reported only once for each function it appears in mpt-status.c:537:49: error: expected ‘)’ before ‘pDisk’ 537 | ConfigRequest->PageAddress = cpu_to_le32((uint)pDisk[0].PhysDiskNum); | ^~~~~ | ) mpt-status.c:553:50: error: expected ‘)’ before ‘pDisk’ 553 | ConfigRequest->PageAddress = cpu_to_le32((uint)pDisk[i].PhysDiskNum); | ^~~~~ | ) mpt-status.c:515:49: warning: unused parameter ‘pDisk’ [-Wunused-parameter] 515 | static void GetPhysDiskInfo(RaidVol0PhysDisk_t *pDisk, int count) { | ~~~~~~~~~~~~~~~~~~~~^~~~~ mpt-status.c: In function ‘GetHotSpareInfo’: mpt-status.c:576:2: error: unknown type name ‘uint’; did you mean ‘int’? 576 | uint numBytes; | ^~~~ | int mpt-status.c:578:2: error: unknown type name ‘uint’; did you mean ‘int’? 578 | uint num_spares = 0; | ^~~~ | int mpt-status.c:581:17: warning: assignment to ‘mpiIoctlBlk_t *’ {aka ‘struct mpt_ioctl_command *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 581 | if ((mpiBlkPtr = allocIoctlBlk(numBytes)) == NULL) | ^ mpt-status.c:622:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 622 | for (i = 0; i < num_spares; i++) { | ^ mpt-status.c:629:19: warning: assignment to ‘mpiIoctlBlk_t *’ {aka ‘struct mpt_ioctl_command *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 629 | if ((mpiBlkPtr = allocIoctlBlk(numBytes)) == NULL) | ^ mpt-status.c:642:46: error: ‘uint’ undeclared (first use in this function); did you mean ‘int’? 642 | ConfigRequest->PageAddress = cpu_to_le32((uint)disk_num[0].PhysDiskNum); | ^~~~ | int mpt-status.c:642:51: error: expected ‘)’ before ‘disk_num’ 642 | ConfigRequest->PageAddress = cpu_to_le32((uint)disk_num[0].PhysDiskNum); | ^~~~~~~~ | ) mpt-status.c:657:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 657 | for (i = 0; i < num_spares; i++){ | ^ mpt-status.c:658:52: error: expected ‘)’ before ‘disk_num’ 658 | ConfigRequest->PageAddress = cpu_to_le32((uint)disk_num[i].PhysDiskNum); | ^~~~~~~~ | ) mpt-status.c:619:19: warning: variable ‘disk_num’ set but not used [-Wunused-but-set-variable] 619 | Ioc5HotSpare_t disk_num[num_spares]; | ^~~~~~~~ mpt-status.c: In function ‘GetResyncPercentageSilent’: mpt-status.c:674:2: error: unknown type name ‘uint’; did you mean ‘int’? 674 | uint blks_done; | ^~~~ | int mpt-status.c:675:2: error: unknown type name ‘uint’; did you mean ‘int’? 675 | uint numBytes; | ^~~~ | int mpt-status.c:677:2: error: unknown type name ‘uint’; did you mean ‘int’? 677 | uint tot_blks, blks_left; | ^~~~ | int mpt-status.c:682:17: warning: assignment to ‘mpiIoctlBlk_t *’ {aka ‘struct mpt_ioctl_command *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 682 | if ((mpiBlkPtr = allocIoctlBlk(numBytes)) == NULL) | ^ mpt-status.c:698:4: error: unknown type name ‘uint’; did you mean ‘int’? 698 | uint *pdata = (uint *) mpiBlkPtr->replyFrameBufPtr; | ^~~~ | int mpt-status.c:698:19: error: ‘uint’ undeclared (first use in this function); did you mean ‘int’? 698 | uint *pdata = (uint *) mpiBlkPtr->replyFrameBufPtr; | ^~~~ | int mpt-status.c:698:25: error: expected expression before ‘)’ token 698 | uint *pdata = (uint *) mpiBlkPtr->replyFrameBufPtr; | ^ mpt-status.c: In function ‘GetResyncPercentage’: mpt-status.c:721:2: error: unknown type name ‘uint’; did you mean ‘int’? 721 | uint blks_done; | ^~~~ | int mpt-status.c:722:2: error: unknown type name ‘uint’; did you mean ‘int’? 722 | uint numBytes; | ^~~~ | int mpt-status.c:724:2: error: unknown type name ‘uint’; did you mean ‘int’? 724 | uint tot_blks, blks_left; | ^~~~ | int mpt-status.c:729:17: warning: assignment to ‘mpiIoctlBlk_t *’ {aka ‘struct mpt_ioctl_command *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 729 | if ((mpiBlkPtr = allocIoctlBlk(numBytes)) == NULL) | ^ mpt-status.c:749:4: error: unknown type name ‘uint’; did you mean ‘int’? 749 | uint *pdata = (uint *) mpiBlkPtr->replyFrameBufPtr; | ^~~~ | int mpt-status.c:749:19: error: ‘uint’ undeclared (first use in this function); did you mean ‘int’? 749 | uint *pdata = (uint *) mpiBlkPtr->replyFrameBufPtr; | ^~~~ | int mpt-status.c:749:25: error: expected expression before ‘)’ token 749 | uint *pdata = (uint *) mpiBlkPtr->replyFrameBufPtr; | ^ mpt-status.c: In function ‘__print_physdisk_advanced’: mpt-status.c:916:9: warning: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess] 916 | sizeof(phys->InquiryData.VendorID)); | ^ mpt-status.c:918:9: warning: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess] 918 | sizeof(phys->InquiryData.ProductID)); | ^ mpt-status.c:920:9: warning: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess] 920 | sizeof(phys->InquiryData.ProductRevLevel)); | ^ mpt-status.c: In function ‘__print_physdisk_classic’: mpt-status.c:1019:9: warning: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess] 1019 | sizeof(phys->InquiryData.VendorID)); | ^ mpt-status.c:1021:9: warning: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess] 1021 | sizeof(phys->InquiryData.ProductID)); | ^ mpt-status.c:1023:9: warning: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess] 1023 | sizeof(phys->InquiryData.ProductRevLevel)); | ^ mpt-status.c: At top level: mpt-status.c:120:12: warning: ‘read_page2’ used but never defined 120 | static int read_page2(uint); | ^~~~~~~~~~ mpt-status.c:189:12: warning: ‘allocReplyFrame’ defined but not used [-Wunused-function] 189 | static int allocReplyFrame(void) { | ^~~~~~~~~~~~~~~ mpt-status.c:156:23: warning: ‘le16_to_cpu’ defined but not used [-Wunused-function] 156 | static unsigned short le16_to_cpu(unsigned short x) { | ^~~~~~~~~~~ make: *** [Makefile:15: mpt-status] Error 1 * ERROR: sys-block/mpt-status-1.2.0-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-block/mpt-status-1.2.0-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-block/mpt-status-1.2.0-r1::gentoo'`. * The complete build log is located at '/var/log/portage/sys-block:mpt-status-1.2.0-r1:20200319-010616.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-block/mpt-status-1.2.0-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-block/mpt-status-1.2.0-r1/temp/environment'. * Working directory: '/var/tmp/portage/sys-block/mpt-status-1.2.0-r1/work/mpt-status-1.2.0' * S: '/var/tmp/portage/sys-block/mpt-status-1.2.0-r1/work/mpt-status-1.2.0'