D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/libsvg-0.1.4-25.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.us173B + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf libsvg-0.1.4 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/libsvg-0.1.4.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd libsvg-0.1.4 + rm -rf /home/pterjan/rpmbuild/BUILD/libsvg-0.1.4-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/libsvg-0.1.4-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/libsvg-0.1.4-link.patch + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/libsvg-0.1.4-libpng14.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Qsi2qY + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd libsvg-0.1.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -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=2 -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=2 -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=2 -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 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --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' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + 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.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./config.guess + 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 + /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 . Fixing libtool inside configure to pass -Wl,xxx options before libraries + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-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 gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for x86_64-mageia-linux-gnu-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking dependency style of gcc... none checking for library containing strerror... none required checking for x86_64-mageia-linux-gnu-gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking dependency style of gcc... (cached) none checking how to run the C preprocessor... gcc -E checking for gawk... (cached) gawk checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking for a sed that does not truncate output... /usr/bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... nm checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking for ANSI C header files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for x86_64-mageia-linux-gnu-g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking how to run the C++ preprocessor... g++ -E checking for x86_64-mageia-linux-gnu-g77... no checking for x86_64-mageia-linux-gnu-f77... no checking for x86_64-mageia-linux-gnu-xlf... no checking for x86_64-mageia-linux-gnu-frt... no checking for x86_64-mageia-linux-gnu-pgf77... no checking for x86_64-mageia-linux-gnu-fort77... no checking for x86_64-mageia-linux-gnu-fl32... no checking for x86_64-mageia-linux-gnu-af77... no checking for x86_64-mageia-linux-gnu-f90... no checking for x86_64-mageia-linux-gnu-xlf90... no checking for x86_64-mageia-linux-gnu-pgf90... no checking for x86_64-mageia-linux-gnu-epcf90... no checking for x86_64-mageia-linux-gnu-f95... no checking for x86_64-mageia-linux-gnu-fort... no checking for x86_64-mageia-linux-gnu-xlf95... no checking for x86_64-mageia-linux-gnu-ifc... no checking for x86_64-mageia-linux-gnu-efc... no checking for x86_64-mageia-linux-gnu-pgf95... no checking for x86_64-mageia-linux-gnu-lf95... no checking for x86_64-mageia-linux-gnu-gfortran... no checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 32768 checking command to parse nm output from gcc object... ok checking for objdir... .libs checking for x86_64-mageia-linux-gnu-ar... no checking for ar... ar checking for x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib checking for x86_64-mageia-linux-gnu-strip... no checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... cat: 'ld.so.conf.d/*.conf': No such file or directory cat: '/etc/ld.so.conf.d/*.conf': No such file or directory 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 configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... cat: 'ld.so.conf.d/*.conf': No such file or directory cat: '/etc/ld.so.conf.d/*.conf': No such file or directory GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking for ANSI C header files... (cached) no checking whether libexpat is requested... no checking for pkg-config... /usr/bin/pkg-config checking for libxml-2.0 >= 2.4.7 ... yes checking LIBSVG_CFLAGS... -I/usr/include/libxml2 checking LIBSVG_LIBS... -lxml2 configure: creating ./config.status config.status: creating libsvg.spec config.status: creating libsvg.pc config.status: creating src/svg_version.h config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands + /usr/bin/make -O -j8 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in . make[2]: Nothing to be done for 'all-am'. Making all in src make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o svg_color.lo svg_color.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c svg_color.c -fPIC -DPIC -o .libs/svg_color.o svg_color.c: In function '_svg_color_init_from_str': svg_color.c:345:11: error: implicit declaration of function 'bsearch' [-Wimplicit-function-declaration] 345 | map = bsearch (str, SVG_COLOR_MAP, | ^~~~~~~ svg_color.c:345:11: warning: nested extern declaration of 'bsearch' [-Wnested-externs] svg_color.c:345:9: error: assignment to 'svg_color_map_t *' {aka 'struct svg_color_map *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 345 | map = bsearch (str, SVG_COLOR_MAP, | ^ make[2]: *** [Makefile:344: svg_color.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o svg.lo svg.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c svg.c -fPIC -DPIC -o .libs/svg.o svg.c: In function 'svg_create': svg.c:39:12: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 39 | *svg = malloc (sizeof (svg_t)); | ^~~~~~ svg.c:32:1: note: include '' or provide a declaration of 'malloc' 31 | #include "svgint.h" +++ |+#include 32 | svg.c:39:12: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 39 | *svg = malloc (sizeof (svg_t)); | ^~~~~~ svg.c:39:12: note: include '' or provide a declaration of 'malloc' svg.c: In function '_svg_deinit': svg.c:68:5: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 68 | free (svg->dir_name); | ^~~~ svg.c:68:5: note: include '' or provide a declaration of 'free' svg.c:68:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] svg.c:68:5: note: include '' or provide a declaration of 'free' svg.c: In function 'svg_destroy': svg.c:88:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 88 | free (svg); | ^~~~ svg.c:88:5: note: include '' or provide a declaration of 'free' svg.c: In function 'svg_parse': svg.c:145:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 145 | free (svg->dir_name); | ^~~~ svg.c:145:5: note: include '' or provide a declaration of 'free' svg.c: In function 'svg_render': svg.c:219:5: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 219 | getcwd (orig_dir, MAXPATHLEN); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ svg.c:220:5: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 220 | chdir (svg->dir_name); | ^~~~~~~~~~~~~~~~~~~~~ svg.c:224:5: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 224 | chdir (orig_dir); | ^~~~~~~~~~~~~~~~ make[2]: *** [Makefile:344: svg.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o svg_group.lo svg_group.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c svg_group.c -fPIC -DPIC -o .libs/svg_group.o svg_group.c: In function '_svg_group_deinit': svg_group.c:86:5: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 86 | free (group->element); | ^~~~ svg_group.c:24:1: note: include '' or provide a declaration of 'free' 23 | #include "svgint.h" +++ |+#include 24 | svg_group.c:86:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 86 | free (group->element); | ^~~~ svg_group.c:86:5: note: include '' or provide a declaration of 'free' svg_group.c: In function '_svg_group_apply_svg_attributes': svg_group.c:150:21: warning: variable 'status' set but not used [-Wunused-but-set-variable] 150 | svgint_status_t status; | ^~~~~~ svg_group.c: In function '_svg_group_grow_element_by': svg_group.c:253:19: error: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] 253 | new_element = realloc (group->element, | ^~~~~~~ svg_group.c:253:19: note: include '' or provide a declaration of 'realloc' svg_group.c:253:19: warning: incompatible implicit declaration of built-in function 'realloc' [-Wbuiltin-declaration-mismatch] svg_group.c:253:19: note: include '' or provide a declaration of 'realloc' make[2]: *** [Makefile:344: svg_group.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o svg_image.lo svg_image.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c svg_image.c -fPIC -DPIC -o .libs/svg_image.o svg_image.c: In function '_svg_image_deinit': svg_image.c:78:9: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 78 | free (image->url); | ^~~~ svg_image.c:30:1: note: include '' or provide a declaration of 'free' 29 | #include "svgint.h" +++ |+#include 30 | svg_image.c:78:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 78 | free (image->url); | ^~~~ svg_image.c:78:9: note: include '' or provide a declaration of 'free' svg_image.c:83:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 83 | free (image->data); | ^~~~ svg_image.c:83:9: note: include '' or provide a declaration of 'free' svg_image.c: In function '_svg_image_read_png': svg_image.c:302:13: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 302 | *data = malloc (png_width * png_height * pixel_size); | ^~~~~~ svg_image.c:302:13: note: include '' or provide a declaration of 'malloc' svg_image.c:302:13: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] svg_image.c:302:13: note: include '' or provide a declaration of 'malloc' svg_image.c:315:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 315 | free (row_pointers); | ^~~~ svg_image.c:315:5: note: include '' or provide a declaration of 'free' svg_image.c: In function '_svg_image_read_jpeg': svg_image.c:386:13: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 386 | *data = malloc (cinfo.output_width * cinfo.output_height * 4); | ^~~~~~ svg_image.c:386:13: note: include '' or provide a declaration of 'malloc' make[2]: *** [Makefile:344: svg_image.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o svg_gradient.lo svg_gradient.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c svg_gradient.c -fPIC -DPIC -o .libs/svg_gradient.o svg_gradient.c: In function '_svg_gradient_init_copy': svg_gradient.c:56:23: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 56 | gradient->stops = malloc (gradient->stops_size * sizeof (svg_gradient_stop_t)); | ^~~~~~ svg_gradient.c:26:1: note: include '' or provide a declaration of 'malloc' 25 | #include +++ |+#include 26 | svg_gradient.c:56:23: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 56 | gradient->stops = malloc (gradient->stops_size * sizeof (svg_gradient_stop_t)); | ^~~~~~ svg_gradient.c:56:23: note: include '' or provide a declaration of 'malloc' svg_gradient.c: In function '_svg_gradient_deinit': svg_gradient.c:68:9: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 68 | free (gradient->stops); | ^~~~ svg_gradient.c:68:9: note: include '' or provide a declaration of 'free' svg_gradient.c:68:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] svg_gradient.c:68:9: note: include '' or provide a declaration of 'free' svg_gradient.c: In function '_svg_gradient_add_stop': svg_gradient.c:115:21: error: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] 115 | new_stops = realloc (gradient->stops, | ^~~~~~~ svg_gradient.c:115:21: note: include '' or provide a declaration of 'realloc' svg_gradient.c:115:21: warning: incompatible implicit declaration of built-in function 'realloc' [-Wbuiltin-declaration-mismatch] svg_gradient.c:115:21: note: include '' or provide a declaration of 'realloc' make[2]: *** [Makefile:344: svg_gradient.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o svg_element.lo svg_element.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c svg_element.c -fPIC -DPIC -o .libs/svg_element.o svg_element.c: In function '_svg_element_create': svg_element.c:33:16: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 33 | *element = malloc( sizeof (svg_element_t)); | ^~~~~~ svg_element.c:26:1: note: include '' or provide a declaration of 'malloc' 25 | #include "svgint.h" +++ |+#include 26 | svg_element.c:33:16: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 33 | *element = malloc( sizeof (svg_element_t)); | ^~~~~~ svg_element.c:33:16: note: include '' or provide a declaration of 'malloc' svg_element.c: In function '_svg_element_deinit': svg_element.c:180:9: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 180 | free (element->id); | ^~~~ svg_element.c:180:9: note: include '' or provide a declaration of 'free' svg_element.c:180:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] svg_element.c:180:9: note: include '' or provide a declaration of 'free' svg_element.c: In function '_svg_element_clone': svg_element.c:227:16: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 227 | *element = malloc( sizeof (svg_element_t)); | ^~~~~~ svg_element.c:227:16: note: include '' or provide a declaration of 'malloc' svg_element.c: In function '_svg_element_destroy': svg_element.c:241:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 241 | free (element); | ^~~~ svg_element.c:241:5: note: include '' or provide a declaration of 'free' svg_element.c: In function '_svg_element_parse_aspect_ratio': svg_element.c:387:25: warning: variable 'end' set but not used [-Wunused-but-set-variable] 387 | const char *start, *end; | ^~~ make[2]: *** [Makefile:344: svg_element.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o svg_attribute.lo svg_attribute.c mkdir .libs mkdir: cannot create directory '.libs': File exists gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c svg_attribute.c -fPIC -DPIC -o .libs/svg_attribute.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o svg_ascii.lo svg_ascii.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c svg_ascii.c -fPIC -DPIC -o .libs/svg_ascii.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libsvg-0.1.4/src' make[1]: *** [Makefile:304: all-recursive] Error 1 make: *** [Makefile:212: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Qsi2qY (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Qsi2qY (%build) I: [iurt_root_command] ERROR: chroot