>>> ledmon: Building testing/ledmon 0.97-r1 (using abuild 3.13.0-r5) started Mon, 30 Sep 2024 05:37:23 +0000 >>> ledmon: Checking sanity of /home/buildozer/aports/testing/ledmon/APKBUILD... >>> ledmon: Analyzing dependencies... >>> ledmon: Installing for build: build-base automake autoconf eudev-dev linux-headers pciutils-dev sg3_utils-dev (1/24) Installing libbz2 (1.0.8-r6) (2/24) Installing perl (5.40.0-r2) (3/24) Installing automake (1.17-r0) (4/24) Installing m4 (1.4.19-r3) (5/24) Installing autoconf (2.72-r0) (6/24) Installing udev-init-scripts (35-r1) (7/24) Installing udev-init-scripts-openrc (35-r1) (8/24) Installing eudev-openrc (3.2.14-r2) (9/24) Installing eudev-libs (3.2.14-r2) (10/24) Installing libeconf (0.6.3-r0) (11/24) Installing libblkid (2.40.2-r3) (12/24) Installing xz-libs (5.6.2-r0) (13/24) Installing kmod-libs (33-r2) (14/24) Installing eudev (3.2.14-r2) (15/24) Installing eudev-dev (3.2.14-r2) (16/24) Installing linux-headers (6.6-r0) (17/24) Installing pciutils-libs (3.13.0-r0) (18/24) Installing pciutils-dev (3.13.0-r0) (19/24) Installing sg3_utils (1.48-r0) (20/24) Installing sg3_utils-dev (1.48-r0) (21/24) Installing .makedepends-ledmon (20240930.053728) (22/24) Installing perl-error (0.17029-r2) (23/24) Installing perl-git (2.46.2-r0) (24/24) Installing git-perl (2.46.2-r0) Executing busybox-1.36.1-r32.trigger Executing eudev-3.2.14-r2.trigger OK: 310 MiB in 129 packages >>> ledmon: Cleaning up srcdir >>> ledmon: Cleaning up pkgdir >>> ledmon: Cleaning up tmpdir >>> ledmon: Fetching https://distfiles.alpinelinux.org/distfiles/edge/ledmon-0.97.tar.gz >>> ledmon: Fetching https://distfiles.alpinelinux.org/distfiles/edge/ledmon-0.97.tar.gz >>> ledmon: Checking sha512sums... ledmon-0.97.tar.gz: OK 10-musl-build.patch: OK >>> ledmon: Unpacking /var/cache/distfiles/ledmon-0.97.tar.gz... >>> ledmon: 10-musl-build.patch patching file src/ledctl.c patching file src/ledmon.c patching file src/utils.h patching file src/utils.c autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: /usr/bin/autoconf --force configure.ac:14: warning: The macro 'AC_PROG_CC_C99' is obsolete. configure.ac:14: You should run autoupdate. ./lib/autoconf/c.m4:1662: AC_PROG_CC_C99 is expanded from... configure.ac:14: the top level autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:13: installing './compile' configure.ac:63: installing './config.guess' configure.ac:63: installing './config.sub' configure.ac:6: installing './install-sh' configure.ac:6: installing './missing' src/Makefile.am: installing './depcomp' autoreconf: Leaving directory '.' configure: WARNING: unrecognized options: --disable-static checking for a BSD-compatible install... /usr/bin/install -c checking whether sleep supports fractional seconds... yes checking filesystem timestamp resolution... 2 checking whether build environment is sane... yes checking for a race-free mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking xargs -n works... yes checking for gcc... yes checking for make... yes checking whether make supports the include directive... yes (GNU style) checking for loongarch64-alpine-linux-musl-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking whether C compiler accepts -Wformat -Werror=format-security... yes checking whether C compiler accepts -Werror=format-overflow=2... yes checking whether C compiler accepts -Werror=format-truncation=1... yes checking whether C compiler accepts -Werror=shift-negative-value... yes checking whether C compiler accepts -Werror=alloca... yes checking whether C compiler accepts -Werror=missing-field-initializers... yes checking whether C compiler accepts -Werror=format-signedness... yes checking for loongarch64-alpine-linux-musl-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for shm_unlink in -lrt... yes checking for sg_ll_send_diag in -lsgutils2... yes checking for libudev... yes checking for libpci... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for vfork.h... no checking for sys/param.h... yes checking for fcntl.h... yes checking for inttypes.h... (cached) yes checking for limits.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/file.h... yes checking for sys/ioctl.h... yes checking for sys/param.h... (cached) yes checking for sys/time.h... yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking for _Bool... yes checking for stdbool.h that conforms to C99 or later... yes checking for inline... inline checking for pid_t... yes checking for size_t... yes checking for struct stat.st_blksize... yes checking for struct stat.st_rdev... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for fork... yes checking for vfork... yes checking for getpagesize... yes checking for working fork... yes checking for working vfork... (cached) yes checking build system type... loongarch64-alpine-linux-musl checking host system type... loongarch64-alpine-linux-musl checking for GNU libc compatible malloc... yes checking for working mmap... yes checking for ftruncate... yes checking for memset... yes checking for munmap... yes checking for realpath... yes checking for regcomp... yes checking for select... yes checking for strcasecmp... yes checking for strchr... yes checking for strdup... yes checking for strerror... yes checking for strrchr... yes checking for strstr... yes checking for strtol... yes checking for strtoul... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating src/Makefile config.status: creating systemd/Makefile config.status: creating config_ac.h config.status: executing depfiles commands configure: WARNING: unrecognized options: --disable-static ledmon 0.97 configuration: Source code location: . Preprocessor flags: -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\""$(BUILD_LABEL)"\" C compiler flags: -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=format-truncation=1 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness -Os -fstack-clash-protection -Wformat -Werror=format-security Common install location: /usr configure parameters: --enable-systemd=no make all-recursive make[1]: Entering directory '/home/buildozer/aports/testing/ledmon/src/ledmon-0.97' Making all in doc make[2]: Entering directory '/home/buildozer/aports/testing/ledmon/src/ledmon-0.97/doc' pod2man -r "LEDMON.CONF Version 0.97 " -d "May 2023" \ -s 5 -n ledmon.conf -c "Intel(R) Enclosure LED Utilities Config" ledmon.conf.pod | gzip -9f > ledmon.conf.gz pod2man -r "LEDMON Version 0.97 " -d "May 2023" \ -s 8 -n ledmon -c "Intel(R) Enclosure LED Monitor Service" ledmon.pod | gzip -9f > ledmon.gz pod2man -r "LEDCTL Version 0.97 " -d "May 2023" \ -s 8 -n ledctl -c "Intel(R) Enclosure LED Control Application" ledctl.pod | gzip -9f > ledctl.gz make[2]: Leaving directory '/home/buildozer/aports/testing/ledmon/src/ledmon-0.97/doc' Making all in src make[2]: Entering directory '/home/buildozer/aports/testing/ledmon/src/ledmon-0.97/src' CC ledmon-ledmon.o CC ledmon-pidfile.o CC ledmon-ahci.o CC ledmon-block.o CC ledmon-cntrl.o CC ledmon-config_file.o CC ledmon-enclosure.o CC ledmon-list.o CC ledmon-raid.o CC ledmon-scsi.o CC ledmon-slave.o CC ledmon-sysfs.o CC ledmon-smp.o CC ledmon-dellssd.o CC ledmon-utils.o CC ledmon-pci_slot.o CC ledmon-vmdssd.o CC ledmon-udev.o CC ledmon-amd.o CC ledmon-amd_sgpio.o CC ledmon-amd_ipmi.o CC ledmon-ipmi.o CC ledmon-npem.o CC ledmon-ses.o CC ledmon-slot.o CC ledctl-ledctl.o CC ledctl-ahci.o CC ledctl-block.o CC ledctl-cntrl.o CC ledctl-config_file.o CC ledctl-enclosure.o CC ledctl-list.o utils.c:741:26: warning: conflicting types for 'get_by_bits' due to enum/integer mismatch; have 'const struct ibpi2value *(const enum ibpi_pattern, const struct ibpi2value *, int)' [-Wenum-int-mismatch] 741 | const struct ibpi2value *get_by_##_name(const enum ibpi_pattern ibpi, \ | ^~~~~~~ utils.c:757:1: note: in expansion of macro 'IBPI2VALUE_GET_FN' 757 | IBPI2VALUE_GET_FN(bits); | ^~~~~~~~~~~~~~~~~ In file included from utils.c:47: utils.h:503:26: note: previous declaration of 'get_by_bits' with type 'const struct ibpi2value *(const unsigned int, const struct ibpi2value *, int)' 503 | const struct ibpi2value *get_by_bits(const unsigned int value, | ^~~~~~~~~~~ utils.c:741:26: warning: conflicting types for 'get_by_value' due to enum/integer mismatch; have 'const struct ibpi2value *(const enum ibpi_pattern, const struct ibpi2value *, int)' [-Wenum-int-mismatch] 741 | const struct ibpi2value *get_by_##_name(const enum ibpi_pattern ibpi, \ | ^~~~~~~ utils.c:755:1: note: in expansion of macro 'IBPI2VALUE_GET_FN' 755 | IBPI2VALUE_GET_FN(_name) \ | ^~~~~~~~~~~~~~~~~ utils.c:759:1: note: in expansion of macro 'COMPARE' 759 | COMPARE(value); | ^~~~~~~ utils.h:490:26: note: previous declaration of 'get_by_value' with type 'const struct ibpi2value *(const unsigned int, const struct ibpi2value *, int)' 490 | const struct ibpi2value *get_by_value(const unsigned int value, | ^~~~~~~~~~~~ vmdssd.c: In function 'vmdssd_get_domain': vmdssd.c:81:29: error: implicit declaration of function 'basename'; did you mean 'rename'? [-Wimplicit-function-declaration] 81 | SYSFS_VMD, basename(path)); | ^~~~~~~~ | rename vmdssd.c:80:46: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=] 80 | snprintf(domain_path, PATH_MAX, "%s/%s/domain", | ~^ | | | char * | %d 81 | SYSFS_VMD, basename(path)); | ~~~~~~~~~~~~~~ | | | int vmdssd.c:85:23: error: passing argument 1 of 'strtok' makes pointer from integer without a cast [-Wint-conversion] 85 | return strtok(basename(real_domain_path), ":"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/fortify/string.h:23, from vmdssd.c:26: /usr/include/string.h:52:15: note: expected 'char * restrict' but argument is of type 'int' 52 | char *strtok (char *__restrict, const char *__restrict); | ^ vmdssd.c: In function 'vmdssd_check_slot_module': vmdssd.c:100:43: warning: the comparison will always evaluate as 'false' for the address of 'domain' will never be NULL [-Waddress] 100 | if (cntrl->domain == NULL) | ^~ In file included from block.h:26, from slot.h:26, from pci_slot.h:25, from vmdssd.c:30: cntrl.h:80:14: note: 'domain' declared here 80 | char domain[PATH_MAX]; | ^~~~~~ slot.c: In function 'print_slot_state': slot.c:41:26: error: implicit declaration of function 'basename' [-Wimplicit-function-declaration] 41 | basename(slot_property->bl_device->sysfs_path)); | ^~~~~~~~ slot.c:40:56: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] 40 | snprintf(device_name, PATH_MAX, "/dev/%s", | ~^ | | | char * | %d 41 | basename(slot_property->bl_device->sysfs_path)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int npem.c: In function 'get_pci_dev': slot.c:45:27: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] 45 | printf("slot: %-15s led state: %-15s device: %-15s\n", | ~~~~^ | | | char * | %-15d 46 | basename(slot_property->slot_id), ibpi2str(led_state), device_name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int npem.c:97:13: error: implicit declaration of function 'basename' [-Wimplicit-function-declaration] 97 | p = basename(dpath); | ^~~~~~~~ npem.c:97:11: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 97 | p = basename(dpath); | ^ slot.c: In function 'find_slot_by_device_name': slot.c:58:29: error: passing argument 1 of 'strncmp' makes pointer from integer without a cast [-Wint-conversion] 58 | if (strncmp(basename(slot->bl_device->sysfs_path), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/fortify/string.h:23, from slot.c:22: /usr/include/string.h:40:14: note: expected 'const char *' but argument is of type 'int' 40 | int strncmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ slot.c:59:29: error: passing argument 2 of 'strncmp' makes pointer from integer without a cast [-Wint-conversion] 59 | basename(device_name), PATH_MAX) == 0) | ^~~~~~~~~~~~~~~~~~~~~ | | | int /usr/include/string.h:40:28: note: expected 'const char *' but argument is of type 'int' 40 | int strncmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ slot.c: In function 'find_slot_by_slot_path': slot.c:72:29: error: passing argument 1 of 'strncmp' makes pointer from integer without a cast [-Wint-conversion] 72 | if (strncmp(basename(slot->slot_id), slot_path, PATH_MAX) == 0) | ^~~~~~~~~~~~~~~~~~~~~~~ | | | int /usr/include/string.h:40:14: note: expected 'const char *' but argument is of type 'int' 40 | int strncmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ make[2]: *** [Makefile:1096: ledmon-vmdssd.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [Makefile:1180: ledmon-npem.o] Error 1 ledmon.c: In function '_close_parent_fds': ledmon.c:882:42: error: implicit declaration of function 'basename' [-Wimplicit-function-declaration] 882 | if (str_toi(&fd, basename(elem), NULL, 10) != 0) | ^~~~~~~~ ledmon.c:882:42: error: passing argument 2 of 'str_toi' makes pointer from integer without a cast [-Wint-conversion] 882 | if (str_toi(&fd, basename(elem), NULL, 10) != 0) | ^~~~~~~~~~~~~~ | | | int In file included from ledmon.c:57: utils.h:385:43: note: expected 'const char *' but argument is of type 'int' 385 | int str_toi(signed int *dest, const char *strptr, char **endptr, int base); | ~~~~~~~~~~~~^~~~~~ make[2]: *** [Makefile:1208: ledmon-slot.o] Error 1 make[2]: *** [Makefile:872: ledmon-ledmon.o] Error 1 make[2]: Leaving directory '/home/buildozer/aports/testing/ledmon/src/ledmon-0.97/src' make[1]: *** [Makefile:453: all-recursive] Error 1 make[1]: Leaving directory '/home/buildozer/aports/testing/ledmon/src/ledmon-0.97' make: *** [Makefile:373: all] Error 2 >>> ERROR: ledmon: build failed >>> ledmon: Uninstalling dependencies... (1/24) Purging .makedepends-ledmon (20240930.053728) (2/24) Purging automake (1.17-r0) (3/24) Purging autoconf (2.72-r0) (4/24) Purging m4 (1.4.19-r3) (5/24) Purging eudev-dev (3.2.14-r2) (6/24) Purging eudev-openrc (3.2.14-r2) (7/24) Purging eudev (3.2.14-r2) (8/24) Purging udev-init-scripts-openrc (35-r1) (9/24) Purging udev-init-scripts (35-r1) (10/24) Purging eudev-libs (3.2.14-r2) (11/24) Purging linux-headers (6.6-r0) (12/24) Purging pciutils-dev (3.13.0-r0) (13/24) Purging pciutils-libs (3.13.0-r0) (14/24) Purging sg3_utils-dev (1.48-r0) (15/24) Purging sg3_utils (1.48-r0) (16/24) Purging git-perl (2.46.2-r0) (17/24) Purging perl-git (2.46.2-r0) (18/24) Purging perl-error (0.17029-r2) (19/24) Purging perl (5.40.0-r2) (20/24) Purging kmod-libs (33-r2) (21/24) Purging libblkid (2.40.2-r3) (22/24) Purging libbz2 (1.0.8-r6) (23/24) Purging libeconf (0.6.3-r0) (24/24) Purging xz-libs (5.6.2-r0) Executing busybox-1.36.1-r32.trigger OK: 251 MiB in 105 packages