Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ddccontrol.spec'], chrootPath='/var/lib/mock/f40-build-746969-112860/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ddccontrol.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689724800 Wrote: /builddir/build/SRPMS/ddccontrol-0.6.1-2.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ddccontrol.spec'], chrootPath='/var/lib/mock/f40-build-746969-112860/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ddccontrol.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689724800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NpQXot + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ddccontrol-0.6.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ddccontrol-0.6.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ddccontrol-0.6.1 + rm -rf /builddir/build/BUILD/ddccontrol-0.6.1-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/ddccontrol-0.6.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.wNcN4J + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd ddccontrol-0.6.1 + ./autogen.sh Running autoreconf... Copying file ABOUT-NLS Copying file config.rpath Creating directory m4 Copying file m4/codeset.m4 Copying file m4/fcntl-o.m4 Copying file m4/gettext.m4 Copying file m4/glibc2.m4 Copying file m4/glibc21.m4 Copying file m4/iconv.m4 Copying file m4/intdiv0.m4 Copying file m4/intl.m4 Copying file m4/intldir.m4 Copying file m4/intlmacosx.m4 Copying file m4/intmax.m4 Copying file m4/inttypes-pri.m4 Copying file m4/inttypes_h.m4 Copying file m4/lcmessage.m4 Copying file m4/lib-ld.m4 Copying file m4/lib-link.m4 Copying file m4/lib-prefix.m4 Copying file m4/lock.m4 Copying file m4/longlong.m4 Copying file m4/nls.m4 Copying file m4/po.m4 Copying file m4/printf-posix.m4 Copying file m4/progtest.m4 Copying file m4/size_max.m4 Copying file m4/stdint_h.m4 Copying file m4/threadlib.m4 Copying file m4/uintmax_t.m4 Copying file m4/visibility.m4 Copying file m4/wchar_t.m4 Copying file m4/wint_t.m4 Copying file m4/xsize.m4 Copying file po/Makefile.in.in Copying file po/Makevars.template Copying file po/Rules-quot libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' configure.ac:8: warning: AM_PROG_MKDIR_P: this macro is deprecated, and will soon be removed. configure.ac:8: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead, configure.ac:8: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:1148: AM_PROG_MKDIR_P is expanded from... m4/po.m4:23: AM_PO_SUBDIRS is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.ac:8: the top level configure.ac:8: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:8: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/intlmacosx.m4:18: gt_INTL_MACOSX is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.ac:8: the top level configure.ac:8: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:8: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.ac:8: the top level configure.ac:8: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:8: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/iconv.m4:20: AM_ICONV_LINK is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.ac:8: the top level configure.ac:8: warning: The macro `AC_TRY_RUN' is obsolete. configure.ac:8: You should run autoupdate. ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/iconv.m4:20: AM_ICONV_LINK is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.ac:8: the top level configure.ac:51: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ./lib/autoconf/lang.m4:199: AC_LANG_CONFTEST is expanded from... ./lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from... ./lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from... configure.ac:51: the top level configure.ac:64: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ./lib/autoconf/lang.m4:199: AC_LANG_CONFTEST is expanded from... ./lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from... ./lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from... configure.ac:64: the top level configure.ac:8: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged. configure.ac:8: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead, configure.ac:8: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files. configure.ac:14: installing './ar-lib' configure.ac:8: installing './compile' configure.ac:8: installing './config.guess' configure.ac:8: installing './config.sub' configure.ac:5: installing './install-sh' configure.ac:5: installing './missing' src/daemon/Makefile.am: installing './depcomp' Running intltoolize... You should update your 'aclocal.m4' by running aclocal. + export 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fcommon' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fcommon' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fcommon' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2023-11-23 09:33:15.049254908 -0500 +++ ./configure 2023-11-23 09:33:25.019263917 -0500 @@ -1920,7 +1920,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2023-11-23 09:33:25.019263917 -0500 +++ ./configure 2023-11-23 09:33:25.199264080 -0500 @@ -10790,7 +10790,7 @@ # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" @@ -19355,7 +19355,7 @@ compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh ++ grep -q runstatedir=DIR ./configure ++ echo --runstatedir=/run + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-doc --disable-gnome-applet --prefix=/usr --exec-prefix=/usr --disable-rpath --disable-ddcpci checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether NLS is requested... yes checking for intltool-update... /usr/bin/intltool-update checking for intltool-merge... /usr/bin/intltool-merge checking for intltool-extract... /usr/bin/intltool-extract checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for perl... /usr/bin/perl checking for perl >= 5.8.1... 5.38.0 checking for XML::Parser... ok checking for msgfmt... (cached) /usr/bin/msgfmt checking for gmsgfmt... (cached) /usr/bin/msgfmt checking for xgettext... (cached) /usr/bin/xgettext checking for msgmerge... (cached) /usr/bin/msgmerge checking whether make supports the include directive... yes (GNU style) checking for riscv64-redhat-linux-gnu-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... none checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E ./configure: line 6060: cd: /lib64/lp64d/../lib64/lp64d/: No such file or directory ./configure: line 6060: cd: /usr/lib64/lp64d/../lib64/lp64d/: No such file or directory checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for riscv64-redhat-linux-gnu-gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) none checking for riscv64-redhat-linux-gnu-ar... no checking for riscv64-redhat-linux-gnu-lib... no checking for riscv64-redhat-linux-gnu-link... no checking for ar... ar checking the archiver (ar) interface... ar checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert riscv64-redhat-linux-gnu file names to riscv64-redhat-linux-gnu format... func_convert_file_noop checking how to convert riscv64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for riscv64-redhat-linux-gnu-file... no checking for file... file checking for riscv64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for riscv64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for riscv64-redhat-linux-gnu-ar... ar checking for archiver @FILE support... @ checking for riscv64-redhat-linux-gnu-strip... no checking for strip... strip checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ./configure: line 10796: -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p': No such file or directory ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for riscv64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no 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 dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... yes checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for riscv64-redhat-linux-gnu-pkg-config... /usr/bin/riscv64-redhat-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for stdio.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/time.h... yes checking for stdlib.h... (cached) yes checking for errno.h... yes checking for unistd.h... (cached) yes checking for string.h... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for fcntl.h... yes checking for sys/ioctl.h... yes checking for dirent.h... yes checking for linux/types.h... yes checking if linux/i2c-dev.h works with non-kernel linux/types.h... no checking if ./src/lib/i2c-dev.h works instead... yes checking for library containing round... -lm checking for libxml-2.0... yes checking for sys/io.h... no checking for ADL/adl_sdk.h... no checking for gtk+>=2.4 and gthread>=2.4... yes checking for X... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for gio-unix-2.0 >= 2.30.0... yes checking whether /etc/xml/catalog exists... yes checking for xsltproc... /usr/bin/xsltproc checking for ssh... ssh checking for scp... scp checking for aspell... no checking for fop... no checking for tidy... /usr/bin/tidy checking whether xsltproc works... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating po/Makefile.in config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/lib/Makefile config.status: creating src/lib/ddccontrol.pc config.status: creating src/daemon/Makefile config.status: creating src/daemon/data/Makefile config.status: creating src/ddccontrol/Makefile config.status: creating src/gddccontrol/Makefile config.status: creating src/ddcpci/Makefile config.status: creating src/gnome-ddcc-applet/Makefile config.status: creating doc/Makefile config.status: creating doc/main.xml config.status: creating man/Makefile config.status: creating src/config.h config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile config.status: executing depfiles commands config.status: executing libtool commands config.status: executing po/stamp-it commands + sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool + sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool + make -j4 Making all in src make[1]: Entering directory '/builddir/build/BUILD/ddccontrol-0.6.1/src' make all-recursive make[2]: Entering directory '/builddir/build/BUILD/ddccontrol-0.6.1/src' Making all in lib make[3]: Entering directory '/builddir/build/BUILD/ddccontrol-0.6.1/src/lib' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOCALEDIR=\"/usr/share/locale\" -DDDCPCIDIR=\"/usr/libexec/ddccontrol\" -I/usr/include/libxml2 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fcommon -Wall -DDATADIR="\"/usr/share/ddccontrol-db\"" -DBINDIR="\"/usr/bin\"" -c -o ddcci.lo ddcci.c /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOCALEDIR=\"/usr/share/locale\" -DDDCPCIDIR=\"/usr/libexec/ddccontrol\" -I/usr/include/libxml2 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fcommon -Wall -DDATADIR="\"/usr/share/ddccontrol-db\"" -DBINDIR="\"/usr/bin\"" -c -o monitor_db.lo monitor_db.c /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOCALEDIR=\"/usr/share/locale\" -DDDCPCIDIR=\"/usr/libexec/ddccontrol\" -I/usr/include/libxml2 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fcommon -Wall -DDATADIR="\"/usr/share/ddccontrol-db\"" -DBINDIR="\"/usr/bin\"" -c -o conf.lo conf.c /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOCALEDIR=\"/usr/share/locale\" -DDDCPCIDIR=\"/usr/libexec/ddccontrol\" -I/usr/include/libxml2 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fcommon -Wall -DDATADIR="\"/usr/share/ddccontrol-db\"" -DBINDIR="\"/usr/bin\"" -c -o amd_adl.lo amd_adl.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOCALEDIR=\"/usr/share/locale\" -DDDCPCIDIR=\"/usr/libexec/ddccontrol\" -I/usr/include/libxml2 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fcommon -Wall -DDATADIR=\"/usr/share/ddccontrol-db\" -DBINDIR=\"/usr/bin\" -c amd_adl.c -fPIC -DPIC -o .libs/amd_adl.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOCALEDIR=\"/usr/share/locale\" -DDDCPCIDIR=\"/usr/libexec/ddccontrol\" -I/usr/include/libxml2 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fcommon -Wall -DDATADIR=\"/usr/share/ddccontrol-db\" -DBINDIR=\"/usr/bin\" -c conf.c -fPIC -DPIC -o .libs/conf.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOCALEDIR=\"/usr/share/locale\" -DDDCPCIDIR=\"/usr/libexec/ddccontrol\" -I/usr/include/libxml2 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fcommon -Wall -DDATADIR=\"/usr/share/ddccontrol-db\" -DBINDIR=\"/usr/bin\" -c ddcci.c -fPIC -DPIC -o .libs/ddcci.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOCALEDIR=\"/usr/share/locale\" -DDDCPCIDIR=\"/usr/libexec/ddccontrol\" -I/usr/include/libxml2 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fcommon -Wall -DDATADIR=\"/usr/share/ddccontrol-db\" -DBINDIR=\"/usr/bin\" -c monitor_db.c -fPIC -DPIC -o .libs/monitor_db.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOCALEDIR=\"/usr/share/locale\" -DDDCPCIDIR=\"/usr/libexec/ddccontrol\" -I/usr/include/libxml2 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fcommon -Wall -DDATADIR=\"/usr/share/ddccontrol-db\" -DBINDIR=\"/usr/bin\" -c amd_adl.c -o amd_adl.o >/dev/null 2>&1 monitor_db.c: In function 'ddcci_get_value_list': monitor_db.c:71:25: error: implicit declaration of function 'malloc' [-Werror=implicit-function-declaration] 71 | matchedvalues = malloc((nvalues+1)*sizeof(char)); /* Will not be freed on error, no problem */ | ^~~~~~ monitor_db.c:34:1: note: include '' or provide a declaration of 'malloc' 33 | #include "internal.h" +++ |+#include 34 | monitor_db.c:71:25: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 71 | matchedvalues = malloc((nvalues+1)*sizeof(char)); /* Will not be freed on error, no problem */ | ^~~~~~ monitor_db.c:71:25: note: include '' or provide a declaration of 'malloc' monitor_db.c:114:72: error: implicit declaration of function 'strtol'; did you mean 'strtok'? [-Werror=implicit-function-declaration] 114 | current_value->value = strtol((char*)tmp, &endptr, 0); | ^~~~~~ | strtok monitor_db.c:162:9: error: implicit declaration of function 'free' [-Werror=implicit-function-declaration] 162 | free(matchedvalues); | ^~~~ monitor_db.c:162:9: note: include '' or provide a declaration of 'free' monitor_db.c:162:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] monitor_db.c:162:9: note: include '' or provide a declaration of 'free' monitor_db.c: In function 'ddcci_add_controls_to_subgroup': monitor_db.c:178:46: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 178 | struct control_db *current_control = malloc(sizeof(struct control_db)); | ^~~~~~ monitor_db.c:178:46: note: include '' or provide a declaration of 'malloc' monitor_db.c:326:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 326 | free(current_control); | ^~~~ monitor_db.c:326:9: note: include '' or provide a declaration of 'free' monitor_db.c: In function 'ddcci_create_db_protected': monitor_db.c:422:59: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 422 | *last_group_ref = current_group = malloc(sizeof(struct group_db)); | ^~~~~~ monitor_db.c:422:59: note: include '' or provide a declaration of 'malloc' monitor_db.c:509:43: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 509 | matchedcontrols = malloc((ncontrols+1)*sizeof(char)); /* Will not be freed on error, no problem */ | ^~~~~~ monitor_db.c:509:43: note: include '' or provide a declaration of 'malloc' monitor_db.c:558:25: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 558 | free(matchedcontrols); | ^~~~ monitor_db.c:558:25: note: include '' or provide a declaration of 'free' monitor_db.c:582:41: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 582 | free(subgroup_to_free); | ^~~~ monitor_db.c:582:41: note: include '' or provide a declaration of 'free' monitor_db.c:592:33: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 592 | free(group_to_free); | ^~~~ monitor_db.c:592:33: note: include '' or provide a declaration of 'free' monitor_db.c: In function 'ddcci_create_db': monitor_db.c:618:37: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 618 | struct monitor_db* mon_db = malloc(sizeof(struct monitor_db)); | ^~~~~~ monitor_db.c:618:37: note: include '' or provide a declaration of 'malloc' monitor_db.c:626:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 626 | free(mon_db); | ^~~~ monitor_db.c:626:17: note: include '' or provide a declaration of 'free' monitor_db.c:637:25: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 637 | free(mon_db); | ^~~~ monitor_db.c:637:25: note: include '' or provide a declaration of 'free' monitor_db.c: In function 'ddcci_free_db': monitor_db.c:683:41: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 683 | free(ovalue); | ^~~~ monitor_db.c:683:41: note: include '' or provide a declaration of 'free' monitor_db.c:688:33: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 688 | free(ocontrol); | ^~~~ monitor_db.c:688:33: note: include '' or provide a declaration of 'free' monitor_db.c:693:25: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 693 | free(osubgroup); | ^~~~ monitor_db.c:693:25: note: include '' or provide a declaration of 'free' monitor_db.c:698:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 698 | free(ogroup); | ^~~~ monitor_db.c:698:17: note: include '' or provide a declaration of 'free' monitor_db.c:701:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 701 | free(monitor); | ^~~~ monitor_db.c:701:9: note: include '' or provide a declaration of 'free' monitor_db.c: In function 'ddcci_init_db': monitor_db.c:714:27: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 714 | datadir = malloc(strlen(usedatadir)+1); | ^~~~~~ monitor_db.c:714:27: note: include '' or provide a declaration of 'malloc' monitor_db.c:718:27: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 718 | datadir = malloc(strlen(DATADIR)+1); | ^~~~~~ monitor_db.c:718:27: note: include '' or provide a declaration of 'malloc' monitor_db.c:734:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 734 | free(datadir); | ^~~~ monitor_db.c:734:17: note: include '' or provide a declaration of 'free' monitor_db.c:741:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 741 | free(datadir); | ^~~~ monitor_db.c:741:17: note: include '' or provide a declaration of 'free' monitor_db.c:751:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 751 | free(datadir); | ^~~~ monitor_db.c:751:17: note: include '' or provide a declaration of 'free' monitor_db.c:758:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 758 | free(datadir); | ^~~~ monitor_db.c:758:17: note: include '' or provide a declaration of 'free' monitor_db.c:769:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 769 | free(datadir); | ^~~~ monitor_db.c:769:17: note: include '' or provide a declaration of 'free' monitor_db.c:777:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 777 | free(datadir); | ^~~~ monitor_db.c:777:17: note: include '' or provide a declaration of 'free' monitor_db.c: In function 'ddcci_release_db': monitor_db.c:793:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 793 | free(datadir); | ^~~~ monitor_db.c:793:9: note: include '' or provide a declaration of 'free' conf.c: In function 'get_monitorlist_filename': conf.c:55:20: error: implicit declaration of function 'getenv' [-Werror=implicit-function-declaration] 55 | home = getenv("HOME"); | ^~~~~~ conf.c:42:1: note: 'getenv' is defined in header ''; did you forget to '#include '? 41 | #include "internal.h" +++ |+#include 42 | conf.c:55:18: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 55 | home = getenv("HOME"); | ^ conf.c:60:20: error: implicit declaration of function 'malloc' [-Werror=implicit-function-declaration] 60 | filename = malloc(len); | ^~~~~~ conf.c:60:20: note: include '' or provide a declaration of 'malloc' conf.c:60:20: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] conf.c:60:20: note: include '' or provide a declaration of 'malloc' In file included from conf.h:23, from conf.c:40: conf.c:62:98: error: implicit declaration of function 'free' [-Werror=implicit-function-declaration] 62 | DDCCI_RETURN_IF_RUN(ret == len, NULL, _("Cannot create filename (buffer too small)\n"), {free(filename);}) | ^~~~ ddcci.h:137:17: note: in definition of macro 'DDCCI_RETURN_IF_RUN' 137 | run \ | ^~~ conf.c:62:98: note: include '' or provide a declaration of 'free' 62 | DDCCI_RETURN_IF_RUN(ret == len, NULL, _("Cannot create filename (buffer too small)\n"), {free(filename);}) | ^~~~ ddcci.h:137:17: note: in definition of macro 'DDCCI_RETURN_IF_RUN' 137 | run \ | ^~~ conf.c:62:98: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 62 | DDCCI_RETURN_IF_RUN(ret == len, NULL, _("Cannot create filename (buffer too small)\n"), {free(filename);}) | ^~~~ ddcci.h:137:17: note: in definition of macro 'DDCCI_RETURN_IF_RUN' 137 | run \ | ^~~ conf.c:62:98: note: include '' or provide a declaration of 'free' 62 | DDCCI_RETURN_IF_RUN(ret == len, NULL, _("Cannot create filename (buffer too small)\n"), {free(filename);}) | ^~~~ ddcci.h:137:17: note: in definition of macro 'DDCCI_RETURN_IF_RUN' 137 | run \ | ^~~ conf.c: In function 'ddcci_load_list': conf.c:85:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 85 | free(filename); | ^~~~ conf.c:85:9: note: include '' or provide a declaration of 'free' conf.c:122:35: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 122 | current = malloc(sizeof(struct monitorlist)); | ^~~~~~ conf.c:122:35: note: include '' or provide a declaration of 'malloc' conf.c:133:46: error: implicit declaration of function 'strtol'; did you mean 'strtok'? [-Werror=implicit-function-declaration] 133 | current->supported = strtol((const char*)tmp, &endptr, 0); | ^~~~~~ | strtok conf.c: In function 'ddcci_save_list': conf.c:178:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 178 | free(filename); | ^~~~ conf.c:178:9: note: include '' or provide a declaration of 'free' conf.c: In function 'ddcci_create_profile': conf.c:226:35: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 226 | struct profile* profile = malloc(sizeof(struct profile)); | ^~~~~~ conf.c:226:35: note: include '' or provide a declaration of 'malloc' conf.c:240:83: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 240 | DDCCI_RETURN_IF_RUN(!retry, 0, _("Cannot read control value\n"), {free(profile);}) | ^~~~ ddcci.h:137:17: note: in definition of macro 'DDCCI_RETURN_IF_RUN' 137 | run \ | ^~~ conf.c:240:83: note: include '' or provide a declaration of 'free' 240 | DDCCI_RETURN_IF_RUN(!retry, 0, _("Cannot read control value\n"), {free(profile);}) | ^~~~ ddcci.h:137:17: note: in definition of macro 'DDCCI_RETURN_IF_RUN' 137 | run \ | ^~~ conf.c:252:18: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 252 | home = getenv("HOME"); | ^ conf.c: In function 'ddcci_get_all_profiles': conf.c:302:18: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 302 | home = getenv("HOME"); | ^ conf.c:307:19: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 307 | dirname = malloc(len); | ^~~~~~ conf.c:307:19: note: include '' or provide a declaration of 'malloc' conf.c:309:95: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 309 | DDCCI_RETURN_IF_RUN(ret == len, 0, _("Cannot create filename (buffer too small)\n"), {free(dirname);}) | ^~~~ ddcci.h:137:17: note: in definition of macro 'DDCCI_RETURN_IF_RUN' 137 | run \ | ^~~ conf.c:309:95: note: include '' or provide a declaration of 'free' 309 | DDCCI_RETURN_IF_RUN(ret == len, 0, _("Cannot create filename (buffer too small)\n"), {free(dirname);}) | ^~~~ ddcci.h:137:17: note: in definition of macro 'DDCCI_RETURN_IF_RUN' 137 | run \ | ^~~ conf.c:315:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 315 | free(dirname); | ^~~~ conf.c:315:17: note: include '' or provide a declaration of 'free' conf.c:340:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 340 | free(dirname); | ^~~~ conf.c:340:17: note: include '' or provide a declaration of 'free' conf.c:347:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 347 | free(dirname); | ^~~~ conf.c:347:9: note: include '' or provide a declaration of 'free' conf.c: In function 'ddcci_load_profile': conf.c:361:35: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 361 | struct profile* profile = malloc(sizeof(struct profile)); | ^~~~~~ conf.c:361:35: note: include '' or provide a declaration of 'malloc' conf.c:367:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 367 | free(profile); | ^~~~ conf.c:367:17: note: include '' or provide a declaration of 'free' conf.c:376:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 376 | free(profile); | ^~~~ conf.c:376:17: note: include '' or provide a declaration of 'free' conf.c:383:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 383 | free(profile); | ^~~~ conf.c:383:17: note: include '' or provide a declaration of 'free' conf.c:388:99: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 388 | DDCCI_DB_RETURN_IF_RUN(profile->pnpid == NULL, 0, _("Can't find pnpid property."), root, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:388:99: note: include '' or provide a declaration of 'free' 388 | DDCCI_DB_RETURN_IF_RUN(profile->pnpid == NULL, 0, _("Can't find pnpid property."), root, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:391:97: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 391 | DDCCI_DB_RETURN_IF_RUN(profile->name == NULL, 0, _("Can't find name property."), root, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:391:97: note: include '' or provide a declaration of 'free' 391 | DDCCI_DB_RETURN_IF_RUN(profile->name == NULL, 0, _("Can't find name property."), root, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:394:90: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 394 | DDCCI_DB_RETURN_IF_RUN(tmp == NULL, 0, _("Can't find version property."), root, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:394:90: note: include '' or provide a declaration of 'free' 394 | DDCCI_DB_RETURN_IF_RUN(tmp == NULL, 0, _("Can't find version property."), root, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:396:92: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 396 | DDCCI_DB_RETURN_IF_RUN(*endptr != 0, 0, _("Can't convert version to int."), root, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:396:92: note: include '' or provide a declaration of 'free' 396 | DDCCI_DB_RETURN_IF_RUN(*endptr != 0, 0, _("Can't convert version to int."), root, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:397:101: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 397 | DDCCI_DB_RETURN_IF_RUN(itmp != PROFILEVERSION, 0, _("Can't find version property."), root, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:397:101: note: include '' or provide a declaration of 'free' 397 | DDCCI_DB_RETURN_IF_RUN(itmp != PROFILEVERSION, 0, _("Can't find version property."), root, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:401:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 401 | free(profile); | ^~~~ conf.c:401:17: note: include '' or provide a declaration of 'free' conf.c:414:105: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 414 | DDCCI_DB_RETURN_IF_RUN(tmp == NULL, 0, _("Can't find address property."), cur, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:414:105: note: include '' or provide a declaration of 'free' 414 | DDCCI_DB_RETURN_IF_RUN(tmp == NULL, 0, _("Can't find address property."), cur, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:416:121: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 416 | DDCCI_DB_RETURN_IF_RUN(*endptr != 0, 0, _("Can't convert address to int."), cur, {xmlFree(tmp); free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:416:121: note: include '' or provide a declaration of 'free' 416 | DDCCI_DB_RETURN_IF_RUN(*endptr != 0, 0, _("Can't convert address to int."), cur, {xmlFree(tmp); free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:420:103: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 420 | DDCCI_DB_RETURN_IF_RUN(tmp == NULL, 0, _("Can't find value property."), cur, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:420:103: note: include '' or provide a declaration of 'free' 420 | DDCCI_DB_RETURN_IF_RUN(tmp == NULL, 0, _("Can't find value property."), cur, {free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:422:119: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 422 | DDCCI_DB_RETURN_IF_RUN(*endptr != 0, 0, _("Can't convert value to int."), cur, {xmlFree(tmp); free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:422:119: note: include '' or provide a declaration of 'free' 422 | DDCCI_DB_RETURN_IF_RUN(*endptr != 0, 0, _("Can't convert value to int."), cur, {xmlFree(tmp); free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c: In function 'ddcci_free_profile': conf.c:533:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 533 | free(profile->filename); | ^~~~ conf.c:533:9: note: include '' or provide a declaration of 'free' ddcci.c: In function 'ddcci_open': ddcci.c:1019:17: warning: '__strncat_chk' output may be truncated copying 3 bytes from a string of length 7 [-Wstringop-truncation] 1019 | strncat(buffer, mon->pnpid, 3); /* copy manufacturer id */ | ^ cc1: some warnings being treated as errors cc1: some warnings being treated as errors make[3]: *** [Makefile:519: conf.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: *** [Makefile:519: monitor_db.lo] Error 1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOCALEDIR=\"/usr/share/locale\" -DDDCPCIDIR=\"/usr/libexec/ddccontrol\" -I/usr/include/libxml2 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fcommon -Wall -DDATADIR=\"/usr/share/ddccontrol-db\" -DBINDIR=\"/usr/bin\" -c ddcci.c -o ddcci.o >/dev/null 2>&1 make[3]: Leaving directory '/builddir/build/BUILD/ddccontrol-0.6.1/src/lib' make[2]: *** [Makefile:430: all-recursive] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/ddccontrol-0.6.1/src' make[1]: *** [Makefile:369: all] Error 2 make[1]: Leaving directory '/builddir/build/BUILD/ddccontrol-0.6.1/src' make: *** [Makefile:447: all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.wNcN4J (%build) Bad exit status from /var/tmp/rpm-tmp.wNcN4J (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ddccontrol.spec