D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
Installing /home/pterjan/rpmbuild/SRPMS/libkarma-0.1.2-14.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.KtDoBF
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build
+ test -d /home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build
+ /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build/SPECPARTS
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ype8iP
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build
+ rm -rf libkarma-0.1.2
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/libkarma-0.1.2.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libkarma-0.1.2
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ sed -i 's!gmcs!mcs!' karma-sharp/Makefile
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ERVMZE
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build
+ cd libkarma-0.1.2
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ make PREFIX=/home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build/BUILDROOT//usr
cd src && make
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build/libkarma-0.1.2/src'
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o errors.o errors.c
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o fdb.o fdb.c
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o hash.o hash.c
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o karma.o karma.c
karma.c:33:30: warning: cast between incompatible function types from 'int (*)()' to 'void (*)()' [-Wcast-function-type]
   33 | #define set_unimpl_cast(x,y) (y) unimpl
      |                              ^
karma.c:71:5: note: in expansion of macro 'set_unimpl_cast'
   71 |     set_unimpl_cast(update_database, void (*)()),
      |     ^~~~~~~~~~~~~~~
In file included from /usr/include/string.h:548,
                 from karma.c:17:
In function 'memcpy',
    inlined from 'lk_karma_find_tmpdir' at karma.c:137:5,
    inlined from 'lk_karma_connect' at karma.c:159:9:
/usr/include/bits/string_fortified.h:29:10: warning: '__builtin_memcpy' forming offset 18 is out of the bounds [0, 18] [-Warray-bounds=]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o karmaLan.o karmaLan.c
karmaLan.c: In function 'lk_karmaLan_get_protocol_version':
karmaLan.c:197:43: warning: argument to 'sizeof' in 'memcpy' call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
  197 |     memcpy(versions, major_version, sizeof(major_version));
      |                                           ^
karmaLan.c:198:47: warning: argument to 'sizeof' in 'memcpy' call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
  198 |     memcpy(&versions[4], minor_version, sizeof(minor_version));
      |                                               ^
karmaLan.c: In function 'lk_karmaLan_prepare':
karmaLan.c:373:36: warning: argument to 'sizeof' in 'memcpy' call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
  373 |     memcpy(&(p[4]), file_id, sizeof(file_id));
      |                                    ^
In file included from /usr/include/string.h:548,
                 from karmaLan.c:18:
In function 'memcpy',
    inlined from 'lk_karmaLan_get_protocol_version' at karmaLan.c:198:5:
/usr/include/bits/string_fortified.h:29:10: warning: '__builtin___memcpy_chk' forming offset [8, 11] is out of the bounds [0, 8] of object 'versions' with type 'char[8]' [-Warray-bounds=]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
karmaLan.c: In function 'lk_karmaLan_get_protocol_version':
karmaLan.c:193:10: note: 'versions' declared here
  193 |     char versions[8];
      |          ^~~~~~~~
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o karmaUsb.o karmaUsb.c
karmaUsb.c: In function 'read_properties_smalldb':
karmaUsb.c:629:28: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
  629 |         db = calloc(sizeof(karma_db_t), 1);
      |                            ^~~~~~~~~~
karmaUsb.c:629:28: note: earlier argument should specify number of elements, later size of each element
karmaUsb.c:698:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  698 |         fread(db->playlists[i].playlist, db->playlists[i].len, 1, fp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
karmaUsb.c:726:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  726 |     fread(db->dmap, db->dmap_size, 1, fp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:970,
                 from karmaUsb.c:19:
In function 'snprintf',
    inlined from 'scan_playlist' at karmaUsb.c:584:13:
/usr/include/bits/stdio2.h:68:10: warning: 'tmpnum' may be used uninitialized [-Wmaybe-uninitialized]
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
karmaUsb.c: In function 'scan_playlist':
karmaUsb.c:510:9: note: 'tmpnum' was declared here
  510 |     int tmpnum;
      |         ^~~~~~
karmaUsb.c: In function 'read_properties':
karmaUsb.c:388:5: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 16 bytes from a string of length 255 [-Wstringop-truncation]
  388 |     strncat(fidLine, fname, 16 - strlen(fidLine));
      |     ^
In file included from /usr/include/string.h:548,
                 from karmaUsb.c:21:
In function 'strncat',
    inlined from 'lk_karmaUsb_get_device_settings' at karmaUsb.c:164:9:
/usr/include/bits/string_fortified.h:149:10: warning: '__builtin___strncat_chk' specified bound 1024 equals destination size [-Wstringop-overflow=]
  149 |   return __builtin___strncat_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  150 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o md5.o md5.c
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o mountSearch.o mountSearch.c
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o mp3.o mp3.c
mp3.c: In function 'get_id3':
mp3.c:206:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  206 |             fread(fbuf,1,3,mp3->file); fbuf[3] = '\0';
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
mp3.c:213:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  213 |                 fread(mp3->id3.title,1,30,mp3->file);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mp3.c:215:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  215 |                 fread(mp3->id3.artist,1,30,mp3->file);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mp3.c:217:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  217 |                 fread(mp3->id3.album,1,30,mp3->file);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mp3.c:219:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  219 |                 fread(mp3->id3.year,1,4,mp3->file);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mp3.c:221:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  221 |                 fread(mp3->id3.comment,1,30,mp3->file);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mp3.c:226:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  226 |                 fread(mp3->id3.genre,1,1,mp3->file);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mp3.c: In function 'write_tag':
mp3.c:271:5: warning: '__builtin___strncat_chk' output may be truncated copying 30 bytes from a string of length 30 [-Wstringop-truncation]
  271 |     strncat(buf,mp3->id3.title,TEXT_FIELD_LEN);
      |     ^
mp3.c:273:5: warning: '__builtin___strncat_chk' output may be truncated copying 30 bytes from a string of length 30 [-Wstringop-truncation]
  273 |     strncat(buf,mp3->id3.artist,TEXT_FIELD_LEN);
      |     ^
mp3.c:275:5: warning: '__builtin___strncat_chk' output may be truncated copying 30 bytes from a string of length 30 [-Wstringop-truncation]
  275 |     strncat(buf,mp3->id3.album,TEXT_FIELD_LEN);
      |     ^
mp3.c:277:5: warning: '__builtin___strncat_chk' output may be truncated copying 4 bytes from a string of length 4 [-Wstringop-truncation]
  277 |     strncat(buf,mp3->id3.year,INT_FIELD_LEN);
      |     ^
mp3.c:279:5: warning: '__builtin___strncat_chk' output may be truncated copying 30 bytes from a string of length 30 [-Wstringop-truncation]
  279 |     strncat(buf,mp3->id3.comment,TEXT_FIELD_LEN);
      |     ^
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o playlist.o playlist.c
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o properties.o properties.c
properties.c: In function 'lk_properties_write_smalldb':
properties.c:740:28: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
  740 |         db = calloc(sizeof(karma_db_t), 1);
      |                            ^~~~~~~~~~
properties.c:740:28: note: earlier argument should specify number of elements, later size of each element
properties.c: In function 'lk_properties_load':
properties.c:296:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result]
  296 |     read(fd, buf, info.st_size);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
properties.c: In function 'lk_properties_save':
properties.c:350:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
  350 |             write(fd, buf, strlen(buf));
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
properties.c:352:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
  352 |             write(fd, "\n", 1);
      |             ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/features.h:511,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from properties.c:11:
In function 'read',
    inlined from 'lk_properties_load' at properties.c:296:5:
/usr/include/bits/unistd.h:32:10: warning: '__read_alias' writing 4294967294 or more bytes into a region of size 2147483647 overflows the destination [-Wstringop-overflow=]
   32 |   return __glibc_fortify (read, __nbytes, sizeof (char),
      |          ^~~~~~~~~~~~~~~
properties.c: In function 'lk_properties_load':
properties.c:295:17: note: destination object of size [0, 2147483647] allocated by 'malloc'
  295 |     buf=(char *)malloc((int)info.st_size+1);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bits/unistd-decl.h:29:16: note: in a call to function '__read_alias' declared with attribute 'access (write_only, 2, 3)'
   29 | extern ssize_t __REDIRECT_FORTIFY (__read_alias, (int __fd, void *__buf,
      |                ^~~~~~~~~~~~~~~~~~
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o rio_rw.o rio_rw.c
rio_rw.c:542:7: warning: no previous prototype for 'strrtrim' [-Wmissing-prototypes]
  542 | char *strrtrim (char *s) {
      |       ^~~~~~~~
rio_rw.c: In function 'lk_rio_read_playlist':
rio_rw.c:81:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
   81 |     write(dst, pl->playlist, pl->length);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rio_rw.c: In function 'lk_rio_read':
rio_rw.c:118:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
  118 |         write(dst, tmp, got);
      |         ^~~~~~~~~~~~~~~~~~~~
rio_rw.c: In function 'get_file_type':
rio_rw.c:667:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  667 |             fread(buf, 1, 3, mp3->file);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
rio_rw.c:674:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  674 |     fread(buf, 1, 48, mp3->file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
rio_rw.c:679:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  679 |         fread(buf, 1, 48, mp3->file);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
rio_rw.c:687:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  687 |             fread(buf, 1, 48, mp3->file);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
rio_rw.c:700:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
  700 |             fread(buf, 1, 4, mp3->file);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o ssdp.o ssdp.c
ssdp.c: In function 'lk_ssdp_discover':
ssdp.c:135:52: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  135 |                            &clientsock, &socklen)) == (size_t) - 1) {
      |                                                    ^~
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o status.o status.c
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o utf8.o utf8.c
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o util.o util.c
util.c: In function 'lk_generate_rid':
util.c:194:9: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result]
  194 |         read(file, &cache, RID_BLOCKS);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused   -c -o wav.o wav.c
ar r ../lib/libkarma.a errors.o fdb.o hash.o karma.o karmaLan.o karmaUsb.o md5.o mountSearch.o mp3.o playlist.o properties.o rio_rw.o ssdp.o status.o utf8.o util.o wav.o
ar: creating ../lib/libkarma.a
ranlib ../lib/libkarma.a
touch static-lib-stamp
gcc -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -shared -Wl,-soname,libkarma.so.0 errors.o fdb.o hash.o karma.o karmaLan.o karmaUsb.o md5.o mountSearch.o mp3.o playlist.o properties.o rio_rw.o ssdp.o status.o utf8.o util.o wav.o -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -D_REENTRANT -Wall -pedantic -W -Wchar-subscripts -Wmissing-prototypes  -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused -o ../lib/libkarma.so.0.1.1 -ltag_c -lz
ln -s libkarma.so.0.1.1 ../lib/libkarma.so.0
ln -s libkarma.so.0.1.1 ../lib/libkarma.so
touch shared-lib-stamp
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build/libkarma-0.1.2/src'
cd tools && make
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build/libkarma-0.1.2/tools'
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -pedantic   -c -o pathedit.o pathedit.c
gcc -I../src -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -ltag_c -lz -L ../lib -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -pedantic riocp.c -o riocp pathedit.o -lkarma 
riocp.c: In function 'main':
riocp.c:702:17: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  702 |                 scanf("%c", &yesNot);
      |                 ^~~~~~~~~~~~~~~~~~~~
gcc -I../src -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -ltag_c -lz -L ../lib -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -pedantic chprop.c -o chprop  -lkarma
gcc -I../src -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -pedantic karma_helper.c -o karma_helper -lusb
karma_helper.c: In function 'sysfs_read_dev':
karma_helper.c:64:17: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result]
   64 |                 read(fd, id, 4);
      |                 ^~~~~~~~~~~~~~~
karma_helper.c:76:17: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result]
   76 |                 read(fd, id, 4);
      |                 ^~~~~~~~~~~~~~~
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build/libkarma-0.1.2/tools'
cd karma-sharp && make
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build/libkarma-0.1.2/karma-sharp'
/usr/bin/mcs -debug -unsafe -target:library -out:karma-sharp.dll Song.cs Device.cs  -r:Mono.Posix
Mono requires /proc to be mounted.
make[1]: *** [Makefile:43: karma-sharp.dll] Error 1
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libkarma-0.1.2-build/libkarma-0.1.2/karma-sharp'
make: *** [Makefile:51: karma-sharp] Error 2
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.ERVMZE (%build)

RPM build errors:
    Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.ERVMZE (%build)
I: [iurt_root_command] ERROR: chroot