D: [iurt_root_command] chroot
warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
warning: line 46: It's not recommended to have unversioned Obsoletes: Obsoletes: lib64djconsole0-devel
Installing /home/iurt/rpmbuild/SRPMS/libdjconsole-0.1.3-12.mga9.src.rpm
Building target platforms: aarch64
Building for target aarch64
Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.Q2j0XC
+ umask 022
+ cd /home/iurt/rpmbuild/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/iurt/rpmbuild/BUILD
+ rm -rf libdjconsole-0.1.3
+ /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/libdjconsole-0.1.3.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libdjconsole-0.1.3
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (libdjconsole-0.1.3-automake-1.13.patch):'
Patch #0 (libdjconsole-0.1.3-automake-1.13.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file configure.ac
+ echo 'Patch #1 (libdjconsole-0.1.3-udev-rules-dir.patch):'
Patch #1 (libdjconsole-0.1.3-udev-rules-dir.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0
patching file Makefile.am
+ sed -i 's,^libdir=.*,libdir=@libdir@,g' libdjconsole.pc.in
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.qRBvNE
+ umask 022
+ cd /home/iurt/rpmbuild/BUILD
+ cd libdjconsole-0.1.3
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ autoreconf -fi
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:23: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:23: You should run autoupdate.
aclocal.m4:121: AC_PROG_LIBTOOL is expanded from...
configure.ac:23: the top level
configure.ac:39: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:39: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:39: the top level
configure.ac:48: warning: AC_OUTPUT should be used without arguments.
configure.ac:48: You should run autoupdate.
configure.ac:49: warning: AC_OUTPUT should be used without arguments.
configure.ac:49: You should run autoupdate.
configure.ac:22: installing './compile'
configure.ac:7: installing './missing'
Makefile.am: installing './depcomp'
+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables '
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables '
+ export FCFLAGS
+ LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CONFIGURE_TOP=.
+ '[' 1 = 1 ']'
++ find . -name config.guess -o -name config.sub
+ for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub)
++ basename ./config.sub
+ '[' -f /usr/lib/rpm/mageia/config.sub ']'
++ basename ./config.sub
+ cp -af /usr/lib/rpm/mageia/config.sub ./config.sub
+ for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub)
++ basename ./config.guess
+ '[' -f /usr/lib/rpm/mageia/config.guess ']'
++ basename ./config.guess
+ cp -af /usr/lib/rpm/mageia/config.guess ./config.guess
+ /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool
Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html)
+ /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool
Modifying ltmain.sh underlinking for plugins (cf http://wiki.mandriva.com/en/Underlinking)
+ /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking
Fixing libtool's ltmain.sh to prevent overlinking (cf http://wiki.mandriva.com/en/Overlinking)
+ /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs .
+ /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64
+ ./configure --host=aarch64-mageia-linux-gnu --build=aarch64-mageia-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 --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static
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 for aarch64-mageia-linux-gnu-g++... no
checking for aarch64-mageia-linux-gnu-c++... no
checking for aarch64-mageia-linux-gnu-gpp... no
checking for aarch64-mageia-linux-gnu-aCC... no
checking for aarch64-mageia-linux-gnu-CC... no
checking for aarch64-mageia-linux-gnu-cxx... no
checking for aarch64-mageia-linux-gnu-cc++... no
checking for aarch64-mageia-linux-gnu-cl.exe... no
checking for aarch64-mageia-linux-gnu-FCC... no
checking for aarch64-mageia-linux-gnu-KCC... no
checking for aarch64-mageia-linux-gnu-RCC... no
checking for aarch64-mageia-linux-gnu-xlC_r... no
checking for aarch64-mageia-linux-gnu-xlC... no
checking for aarch64-mageia-linux-gnu-clang++... no
checking for g++... g++
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 g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... none
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for aarch64-mageia-linux-gnu-gcc... no
checking for gcc... gcc
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 how to run the C preprocessor... gcc -E
checking build system type... aarch64-mageia-linux-gnu
checking host system type... aarch64-mageia-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
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 the maximum length of command line arguments... 1572864
checking how to convert aarch64-mageia-linux-gnu file names to aarch64-mageia-linux-gnu format... func_convert_file_noop
checking how to convert aarch64-mageia-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for aarch64-mageia-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for aarch64-mageia-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for aarch64-mageia-linux-gnu-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for aarch64-mageia-linux-gnu-strip... no
checking for strip... strip
checking for aarch64-mageia-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... 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 aarch64-mageia-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... no
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... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for aarch64-mageia-linux-gnu-pkg-config... /usr/bin/aarch64-mageia-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBUSB... yes
checking for pthread_create in -lpthread... yes
checking for egrep... (cached) /usr/bin/grep -E
checking for _Bool... no
checking for stdbool.h that conforms to C99... yes
checking for an ANSI C-conforming const... yes
checking for error_at_line... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating libdjconsole.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating libdjconsole.pc
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
+ /usr/bin/make -O -j4 V=1 VERBOSE=1
/usr/bin/make  all-am
make[1]: Entering directory '/home/iurt/rpmbuild/BUILD/libdjconsole-0.1.3'
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.     -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/libusb-1.0  -I/usr/include/libusb-1.0  -DDATADIR=\"/usr/share/libdjconsole\" -c -o djconsole.lo djconsole.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/libusb-1.0 -I/usr/include/libusb-1.0 -DDATADIR=\"/usr/share/libdjconsole\" -c djconsole.cpp  -fPIC -DPIC -o .libs/djconsole.o
djconsole.cpp: In constructor 'DJConsole::DJConsole(bool)':
djconsole.cpp:110:18: error: ordered comparison of pointer with integer zero ('usb_dev_handle*' and 'int')
  110 |         if(hdev1 < 0)
      |            ~~~~~~^~~
djconsole.cpp:118:18: error: ordered comparison of pointer with integer zero ('usb_dev_handle*' and 'int')
  118 |         if(hdev2 < 0)
      |            ~~~~~~^~~
djconsole.cpp:137:24: warning: too many arguments for format [-Wformat-extra-args]
  137 |                 printf("Error claiming event interface, unload conflicting HID/joystick kernel driver\n", ret);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
djconsole.cpp:152:24: warning: too many arguments for format [-Wformat-extra-args]
  152 |                 printf("Error claiming mouse interface, unload conflicting mouse kernel driver\n", ret);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
djconsole.cpp:168:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  168 |                 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16, 1000000);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
djconsole.cpp:179:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  179 |                         "\x01\xff\xff", 3, 1000000);
      |                         ^~~~~~~~~~~~~~
djconsole.cpp:187:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  187 |                         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16, 1000000);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
djconsole.cpp: In destructor 'DJConsole::~DJConsole()':
djconsole.cpp:221:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  221 |                         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16, 1000000);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
djconsole.cpp: In static member function 'static void* DJConsole::worker1Helper(void*)':
djconsole.cpp:262:1: warning: no return statement in function returning non-void [-Wreturn-type]
  262 | }
      | ^
djconsole.cpp: In static member function 'static void* DJConsole::worker2Helper(void*)':
djconsole.cpp:273:1: warning: no return statement in function returning non-void [-Wreturn-type]
  273 | }
      | ^
make[1]: *** [Makefile:537: djconsole.lo] Error 1
make[1]: Leaving directory '/home/iurt/rpmbuild/BUILD/libdjconsole-0.1.3'
make[1]: *** Waiting for unfinished jobs....
make[1]: Entering directory '/home/iurt/rpmbuild/BUILD/libdjconsole-0.1.3'
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.     -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/libusb-1.0  -I/usr/include/libusb-1.0  -DDATADIR=\"/usr/share/libdjconsole\" -c -o bitfield.lo bitfield.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/libusb-1.0 -I/usr/include/libusb-1.0 -DDATADIR=\"/usr/share/libdjconsole\" -c bitfield.cpp  -fPIC -DPIC -o .libs/bitfield.o
make[1]: Leaving directory '/home/iurt/rpmbuild/BUILD/libdjconsole-0.1.3'
make[1]: Entering directory '/home/iurt/rpmbuild/BUILD/libdjconsole-0.1.3'
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.     -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/libusb-1.0  -I/usr/include/libusb-1.0  -DDATADIR=\"/usr/share/libdjconsole\" -c -o delta.lo delta.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/libusb-1.0 -I/usr/include/libusb-1.0 -DDATADIR=\"/usr/share/libdjconsole\" -c delta.cpp  -fPIC -DPIC -o .libs/delta.o
make[1]: Leaving directory '/home/iurt/rpmbuild/BUILD/libdjconsole-0.1.3'
make: *** [Makefile:409: all] Error 2
error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.qRBvNE (%build)


RPM build errors:
    Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
    line 46: It's not recommended to have unversioned Obsoletes: Obsoletes: lib64djconsole0-devel
    Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.qRBvNE (%build)
I: [iurt_root_command] ERROR: chroot