D: [iurt_root_command] chroot
Installing /home/pterjan/rpmbuild/SRPMS/freeimage-3.17.0-7.mga7.src.rpm
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.mrkB8e
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD
+ rm -rf FreeImage
+ /usr/bin/unzip -qq /home/pterjan/rpmbuild/SOURCES/FreeImage3170.zip
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd FreeImage
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/Disable-vendored-dependencies.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/Fix-encoding-of-fi-header.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/Fix-macro-redefinition-for-64-bit-integer-types.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/Use-system-dependencies.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/Fix-CVE-2015-0852.patch
+ /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/Fix-CVE-2016-5684.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/FreeImage-3.17.0-mga-makeinstall.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ rm -rf Source/LibJPEG Source/LibJXR Source/LibOpenJPEG Source/LibPNG Source/LibRawLite Source/LibTIFF4 Source/LibWebP Source/OpenEXR Source/ZLib
+ exit 0
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.t0Zgyx
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD
+ cd FreeImage
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC'
+ 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 -fPIC'
+ 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 -fPIC'
+ export FFLAGS
+ LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags'
+ export LDFLAGS
+ sh ./gensrclist.sh
+ /usr/bin/make -O -j8
/usr/bin/make -f Makefile.gnu 
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/ColorLookup.cpp -o Source/FreeImage/ColorLookup.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/DeprecationManager/Deprecated.cpp -o Source/DeprecationManager/Deprecated.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/Conversion16_565.cpp -o Source/FreeImage/Conversion16_565.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/DeprecationManager/DeprecationMgr.cpp -o Source/DeprecationManager/DeprecationMgr.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/Conversion.cpp -o Source/FreeImage/Conversion.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/Conversion16_555.cpp -o Source/FreeImage/Conversion16_555.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/CacheFile.cpp -o Source/FreeImage/CacheFile.o
Source/FreeImage/CacheFile.cpp: In member function 'Block* CacheFile::lockBlock(int)':
Source/FreeImage/CacheFile.cpp:144:10: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
     fread(m_current_block->data, BLOCK_SIZE, 1, m_file);
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/Conversion4.cpp -o Source/FreeImage/Conversion4.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/Conversion32.cpp -o Source/FreeImage/Conversion32.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/Conversion8.cpp -o Source/FreeImage/Conversion8.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/Conversion24.cpp -o Source/FreeImage/Conversion24.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/ConversionFloat.cpp -o Source/FreeImage/ConversionFloat.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/ConversionRGB16.cpp -o Source/FreeImage/ConversionRGB16.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -DOPJ_STATIC -DNO_LCMS -DDISABLE_PERF_MEASUREMENT -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/FreeImageC.c -o Source/FreeImage/FreeImageC.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/ConversionRGBA16.cpp -o Source/FreeImage/ConversionRGBA16.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/ConversionRGBF.cpp -o Source/FreeImage/ConversionRGBF.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/BitmapAccess.cpp -o Source/FreeImage/BitmapAccess.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/ConversionUINT16.cpp -o Source/FreeImage/ConversionUINT16.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/ConversionRGBAF.cpp -o Source/FreeImage/ConversionRGBAF.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/FreeImageIO.cpp -o Source/FreeImage/FreeImageIO.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/FreeImage.cpp -o Source/FreeImage/FreeImage.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/ConversionType.cpp -o Source/FreeImage/ConversionType.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/GetType.cpp -o Source/FreeImage/GetType.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/Halftoning.cpp -o Source/FreeImage/Halftoning.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/LFPQuantizer.cpp -o Source/FreeImage/LFPQuantizer.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/J2KHelper.cpp -o Source/FreeImage/J2KHelper.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/MemoryIO.cpp -o Source/FreeImage/MemoryIO.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/MNGHelper.cpp -o Source/FreeImage/MNGHelper.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/NNQuantizer.cpp -o Source/FreeImage/NNQuantizer.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PixelAccess.cpp -o Source/FreeImage/PixelAccess.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginCUT.cpp -o Source/FreeImage/PluginCUT.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PSDParser.cpp -o Source/FreeImage/PSDParser.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/MultiPage.cpp -o Source/FreeImage/MultiPage.o
Source/FreeImage/MultiPage.cpp: In function 'FIMULTIBITMAP* FreeImage_OpenMultiBitmap(FREE_IMAGE_FORMAT, const char*, BOOL, BOOL, BOOL, int)':
Source/FreeImage/MultiPage.cpp:254:10: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     std::auto_ptr<FreeImageIO> io (new FreeImageIO);
          ^~~~~~~~
In file included from /usr/include/c++/8.2.1/memory:80,
                 from Source/Utilities.h:53,
                 from Source/CacheFile.h:28,
                 from Source/FreeImage/MultiPage.cpp:33:
/usr/include/c++/8.2.1/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
Source/FreeImage/MultiPage.cpp:265:10: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     std::auto_ptr<FIMULTIBITMAP> bitmap (new FIMULTIBITMAP);
          ^~~~~~~~
In file included from /usr/include/c++/8.2.1/memory:80,
                 from Source/Utilities.h:53,
                 from Source/CacheFile.h:28,
                 from Source/FreeImage/MultiPage.cpp:33:
/usr/include/c++/8.2.1/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
Source/FreeImage/MultiPage.cpp:266:10: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     std::auto_ptr<MULTIBITMAPHEADER> header (new MULTIBITMAPHEADER);
          ^~~~~~~~
In file included from /usr/include/c++/8.2.1/memory:80,
                 from Source/Utilities.h:53,
                 from Source/CacheFile.h:28,
                 from Source/FreeImage/MultiPage.cpp:33:
/usr/include/c++/8.2.1/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
Source/FreeImage/MultiPage.cpp:299:11: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
      std::auto_ptr<CacheFile> cache_file (new CacheFile(cache_name, keep_cache_in_memory));
           ^~~~~~~~
In file included from /usr/include/c++/8.2.1/memory:80,
                 from Source/Utilities.h:53,
                 from Source/CacheFile.h:28,
                 from Source/FreeImage/MultiPage.cpp:33:
/usr/include/c++/8.2.1/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
Source/FreeImage/MultiPage.cpp: In function 'FIMULTIBITMAP* FreeImage_OpenMultiBitmapFromHandle(FREE_IMAGE_FORMAT, FreeImageIO*, fi_handle, int)':
Source/FreeImage/MultiPage.cpp:339:11: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
      std::auto_ptr<FIMULTIBITMAP> bitmap (new FIMULTIBITMAP);
           ^~~~~~~~
In file included from /usr/include/c++/8.2.1/memory:80,
                 from Source/Utilities.h:53,
                 from Source/CacheFile.h:28,
                 from Source/FreeImage/MultiPage.cpp:33:
/usr/include/c++/8.2.1/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
Source/FreeImage/MultiPage.cpp:340:11: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
      std::auto_ptr<MULTIBITMAPHEADER> header (new MULTIBITMAPHEADER);
           ^~~~~~~~
In file included from /usr/include/c++/8.2.1/memory:80,
                 from Source/Utilities.h:53,
                 from Source/CacheFile.h:28,
                 from Source/FreeImage/MultiPage.cpp:33:
/usr/include/c++/8.2.1/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
Source/FreeImage/MultiPage.cpp:341:11: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
      std::auto_ptr<FreeImageIO> tmp_io (new FreeImageIO (*io));
           ^~~~~~~~
In file included from /usr/include/c++/8.2.1/memory:80,
                 from Source/Utilities.h:53,
                 from Source/CacheFile.h:28,
                 from Source/FreeImage/MultiPage.cpp:33:
/usr/include/c++/8.2.1/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
Source/FreeImage/MultiPage.cpp:367:12: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
       std::auto_ptr<CacheFile> cache_file (new CacheFile("", TRUE));
            ^~~~~~~~
In file included from /usr/include/c++/8.2.1/memory:80,
                 from Source/Utilities.h:53,
                 from Source/CacheFile.h:28,
                 from Source/FreeImage/MultiPage.cpp:33:
/usr/include/c++/8.2.1/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginDDS.cpp -o Source/FreeImage/PluginDDS.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginBMP.cpp -o Source/FreeImage/PluginBMP.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/Plugin.cpp -o Source/FreeImage/Plugin.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginG3.cpp -o Source/FreeImage/PluginG3.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginHDR.cpp -o Source/FreeImage/PluginHDR.o
Source/FreeImage/PluginHDR.cpp: In function 'BOOL Save(FreeImageIO*, FIBITMAP*, fi_handle, int, int, void*)':
Source/FreeImage/PluginHDR.cpp:278:18: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=]
  sprintf(buffer, "%s\n", info->comment);
                  ^~~~~~
In file included from /usr/include/stdio.h:873,
                 from Source/Utilities.h:35,
                 from Source/FreeImage/PluginHDR.cpp:23:
/usr/include/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 2 and 257 bytes into a destination of size 256
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginICO.cpp -o Source/FreeImage/PluginICO.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginEXR.cpp -o Source/FreeImage/PluginEXR.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginJ2K.cpp -o Source/FreeImage/PluginJ2K.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginIFF.cpp -o Source/FreeImage/PluginIFF.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginJNG.cpp -o Source/FreeImage/PluginJNG.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginGIF.cpp -o Source/FreeImage/PluginGIF.o
Source/FreeImage/PluginGIF.cpp: In function 'FIBITMAP* Load(FreeImageIO*, fi_handle, int, int, void*)':
Source/FreeImage/PluginGIF.cpp:1030:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
     sprintf(buf, "Comment%d", idx);
                  ^~~~~~~~~~~  ~~~
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginJP2.cpp -o Source/FreeImage/PluginJP2.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginJPEG.cpp -o Source/FreeImage/PluginJPEG.o
Source/FreeImage/PluginJPEG.cpp:506:1: error: 'BOOL jpeg_read_icc_profile(j_decompress_ptr, JOCTET**, unsigned int*)' was declared 'extern' and later 'static' [-fpermissive]
 jpeg_read_icc_profile(j_decompress_ptr cinfo, JOCTET **icc_data_ptr, unsigned *icc_data_len) {
 ^~~~~~~~~~~~~~~~~~~~~
In file included from Source/FreeImage/PluginJPEG.cpp:39:
/usr/include/jpeglib.h:1066:17: note: previous declaration of 'boolean jpeg_read_icc_profile(j_decompress_ptr, JOCTET**, unsigned int*)'
 EXTERN(boolean) jpeg_read_icc_profile(j_decompress_ptr cinfo,
                 ^~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile.gnu:63: Source/FreeImage/PluginJPEG.o] Error 1
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: *** Waiting for unfinished jobs....
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginPCD.cpp -o Source/FreeImage/PluginPCD.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginKOALA.cpp -o Source/FreeImage/PluginKOALA.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginPFM.cpp -o Source/FreeImage/PluginPFM.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginMNG.cpp -o Source/FreeImage/PluginMNG.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginPCX.cpp -o Source/FreeImage/PluginPCX.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginJXR.cpp -o Source/FreeImage/PluginJXR.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -ISource -ISource/DeprecationManager -ISource/FreeImage -ISource/FreeImageLib -ISource/FreeImageToolkit -ISource/Metadata -I/usr/include/jxrlib -I/usr/include/openjpeg-2.3 -I/usr/include/libpng16 -I/usr/include/libraw -I/usr/include/OpenEXR -I/usr/include/libdrm   -c Source/FreeImage/PluginPICT.cpp -o Source/FreeImage/PluginPICT.o
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/FreeImage'
make: *** [Makefile:21: default] Error 2
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.t0Zgyx (%build)


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