Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/python3-exiv2.spec'], chrootPath='/var/lib/mock/f40-build-2120680-50739/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/python3-exiv2.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689897600 Wrote: /builddir/build/SRPMS/python3-exiv2-0.9.3-11.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/python3-exiv2.spec'], chrootPath='/var/lib/mock/f40-build-2120680-50739/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/python3-exiv2.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689897600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.vwyrwS + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf py3exiv2-0.9.3 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/py3exiv2-0.9.3.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd py3exiv2-0.9.3 + rm -rf /builddir/build/BUILD/py3exiv2-0.9.3-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/py3exiv2-0.9.3-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.uhm7yk + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd py3exiv2-0.9.3 + sed -i 's|boost_python3|boost_python312|' setup.py + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' running build running build_py creating build creating build/lib.linux-riscv64-cpython-312 creating build/lib.linux-riscv64-cpython-312/pyexiv2 copying src/pyexiv2/exif.py -> build/lib.linux-riscv64-cpython-312/pyexiv2 copying src/pyexiv2/iptc.py -> build/lib.linux-riscv64-cpython-312/pyexiv2 copying src/pyexiv2/xmp.py -> build/lib.linux-riscv64-cpython-312/pyexiv2 copying src/pyexiv2/metadata.py -> build/lib.linux-riscv64-cpython-312/pyexiv2 copying src/pyexiv2/__init__.py -> build/lib.linux-riscv64-cpython-312/pyexiv2 copying src/pyexiv2/utils.py -> build/lib.linux-riscv64-cpython-312/pyexiv2 copying src/pyexiv2/preview.py -> build/lib.linux-riscv64-cpython-312/pyexiv2 running build_ext building 'libexiv2python' extension creating build/temp.linux-riscv64-cpython-312 creating build/temp.linux-riscv64-cpython-312/src gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -fexceptions -fexceptions -fexceptions -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fPIC -I/usr/include/python3.12 -c src/exiv2wrapper.cpp -o build/temp.linux-riscv64-cpython-312/src/exiv2wrapper.o -g cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ In file included from src/exiv2wrapper.cpp:27: src/exiv2wrapper.hpp:267:19: error: ‘AutoPtr’ in ‘class Exiv2::Image’ does not name a type 267 | Exiv2::Image::AutoPtr _image; | ^~~~~~~ src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::Image::_instantiate_image()’: src/exiv2wrapper.cpp:64:46: error: ‘kerSuccess’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerSuccess’? 64 | Exiv2::Error error = Exiv2::Error(Exiv2::kerSuccess); | ^~~~~~~~~~ In file included from /usr/include/exiv2/basicio.hpp:10, from /usr/include/exiv2/exiv2.hpp:8, from src/exiv2wrapper.hpp:32: /usr/include/exiv2/error.hpp:163:3: note: ‘Exiv2::ErrorCode::kerSuccess’ declared here 163 | kerSuccess = 0, | ^~~~~~~~~~ src/exiv2wrapper.cpp:77:13: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 77 | _image = Exiv2::ImageFactory::open(_data, _size); | ^~~~~~ | Image src/exiv2wrapper.cpp:81:13: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 81 | _image = Exiv2::ImageFactory::open(_filename); | ^~~~~~ | Image src/exiv2wrapper.cpp:93:22: error: no match for ‘operator==’ (operand types are ‘Exiv2::ErrorCode’ and ‘int’) 93 | if (error.code() == 0) | ~~~~~~~~~~~~ ^~ ~ | | | | | int | Exiv2::ErrorCode src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::Image::readMetadata()’: src/exiv2wrapper.cpp:150:46: error: ‘kerSuccess’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerSuccess’? 150 | Exiv2::Error error = Exiv2::Error(Exiv2::kerSuccess); | ^~~~~~~~~~ /usr/include/exiv2/error.hpp:163:3: note: ‘Exiv2::ErrorCode::kerSuccess’ declared here 163 | kerSuccess = 0, | ^~~~~~~~~~ src/exiv2wrapper.cpp:161:9: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 161 | _image->readMetadata(); | ^~~~~~ | Image src/exiv2wrapper.cpp:177:22: error: no match for ‘operator!=’ (operand types are ‘Exiv2::ErrorCode’ and ‘int’) 177 | if (error.code() != 0) | ~~~~~~~~~~~~ ^~ ~ | | | | | int | Exiv2::ErrorCode src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::Image::writeMetadata()’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:185:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 185 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:190:46: error: ‘kerSuccess’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerSuccess’? 190 | Exiv2::Error error = Exiv2::Error(Exiv2::kerSuccess); | ^~~~~~~~~~ /usr/include/exiv2/error.hpp:163:3: note: ‘Exiv2::ErrorCode::kerSuccess’ declared here 163 | kerSuccess = 0, | ^~~~~~~~~~ src/exiv2wrapper.cpp:201:9: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 201 | _image->writeMetadata(); | ^~~~~~ | Image src/exiv2wrapper.cpp:213:22: error: no match for ‘operator!=’ (operand types are ‘Exiv2::ErrorCode’ and ‘int’) 213 | if (error.code() != 0) | ~~~~~~~~~~~~ ^~ ~ | | | | | int | Exiv2::ErrorCode src/exiv2wrapper.cpp: In member function ‘unsigned int exiv2wrapper::Image::pixelWidth() const’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:221:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 221 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:222:12: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 222 | return _image->pixelWidth(); | ^~~~~~ | Image src/exiv2wrapper.cpp: In member function ‘unsigned int exiv2wrapper::Image::pixelHeight() const’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:227:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 227 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:228:12: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 228 | return _image->pixelHeight(); | ^~~~~~ | Image src/exiv2wrapper.cpp: In member function ‘std::string exiv2wrapper::Image::mimeType() const’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:233:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 233 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:234:12: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 234 | return _image->mimeType(); | ^~~~~~ | Image src/exiv2wrapper.cpp: In member function ‘boost::python::list exiv2wrapper::Image::exifKeys()’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:239:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 239 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘const exiv2wrapper::ExifTag exiv2wrapper::Image::getExifTag(std::string)’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:253:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 253 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:260:35: error: ‘kerInvalidKey’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerInvalidKey’? 260 | throw Exiv2::Error(Exiv2::kerInvalidKey, key); | ^~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:170:3: note: ‘Exiv2::ErrorCode::kerInvalidKey’ declared here 170 | kerInvalidKey, | ^~~~~~~~~~~~~ src/exiv2wrapper.cpp:268:56: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 268 | return ExifTag(key, &(*_exifData)[key], _exifData, _image->byteOrder()); | ^~~~~~ | Image src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::Image::deleteExifTag(std::string)’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:273:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 273 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:280:35: error: ‘kerInvalidKey’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerInvalidKey’? 280 | throw Exiv2::Error(Exiv2::kerInvalidKey, key); | ^~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:170:3: note: ‘Exiv2::ErrorCode::kerInvalidKey’ declared here 170 | kerInvalidKey, | ^~~~~~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘boost::python::list exiv2wrapper::Image::iptcKeys()’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:292:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 292 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘const exiv2wrapper::IptcTag exiv2wrapper::Image::getIptcTag(std::string)’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:311:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 311 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:318:35: error: ‘kerInvalidKey’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerInvalidKey’? 318 | throw Exiv2::Error(Exiv2::kerInvalidKey, key); | ^~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:170:3: note: ‘Exiv2::ErrorCode::kerInvalidKey’ declared here 170 | kerInvalidKey, | ^~~~~~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::Image::deleteIptcTag(std::string)’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:330:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 330 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:338:35: error: ‘kerInvalidKey’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerInvalidKey’? 338 | throw Exiv2::Error(Exiv2::kerInvalidKey, key); | ^~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:170:3: note: ‘Exiv2::ErrorCode::kerInvalidKey’ declared here 170 | kerInvalidKey, | ^~~~~~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘boost::python::list exiv2wrapper::Image::xmpKeys()’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:361:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 361 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘const exiv2wrapper::XmpTag exiv2wrapper::Image::getXmpTag(std::string)’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:375:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 375 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:382:35: error: ‘kerInvalidKey’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerInvalidKey’? 382 | throw Exiv2::Error(Exiv2::kerInvalidKey, key); | ^~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:170:3: note: ‘Exiv2::ErrorCode::kerInvalidKey’ declared here 170 | kerInvalidKey, | ^~~~~~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::Image::deleteXmpTag(std::string)’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:395:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 395 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:406:39: error: ‘kerInvalidKey’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerInvalidKey’? 406 | throw Exiv2::Error(Exiv2::kerInvalidKey, key); | ^~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:170:3: note: ‘Exiv2::ErrorCode::kerInvalidKey’ declared here 170 | kerInvalidKey, | ^~~~~~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘const std::string exiv2wrapper::Image::getComment() const’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:417:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 417 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:418:12: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 418 | return _image->comment(); | ^~~~~~ | Image src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::Image::setComment(const std::string&)’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:423:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 423 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:424:5: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 424 | _image->setComment(comment); | ^~~~~~ | Image src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::Image::clearComment()’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:429:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 429 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:430:5: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 430 | _image->clearComment(); | ^~~~~~ | Image src/exiv2wrapper.cpp: In member function ‘boost::python::list exiv2wrapper::Image::previews()’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:436:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 436 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:439:31: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 439 | Exiv2::PreviewManager pm(*_image); | ^~~~~~ | Image src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::Image::copyMetadata(exiv2wrapper::Image&, bool, bool, bool) const’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:453:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 453 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:458:39: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 458 | throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:468:15: error: ‘class exiv2wrapper::Image’ has no member named ‘_image’; did you mean ‘Image’? 468 | other._image->setExifData(*_exifData); | ^~~~~~ | Image src/exiv2wrapper.cpp:470:15: error: ‘class exiv2wrapper::Image’ has no member named ‘_image’; did you mean ‘Image’? 470 | other._image->setIptcData(*_iptcData); | ^~~~~~ | Image src/exiv2wrapper.cpp:472:15: error: ‘class exiv2wrapper::Image’ has no member named ‘_image’; did you mean ‘Image’? 472 | other._image->setXmpData(*_xmpData); | ^~~~~~ | Image src/exiv2wrapper.cpp: In member function ‘boost::python::api::object exiv2wrapper::Image::getDataBuffer() const’: src/exiv2wrapper.cpp:483:26: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 483 | Exiv2::BasicIo& io = _image->io(); | ^~~~~~ | Image src/exiv2wrapper.cpp: In member function ‘Exiv2::ByteOrder exiv2wrapper::Image::getByteOrder() const’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:533:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 533 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:534:12: error: ‘_image’ was not declared in this scope; did you mean ‘Image’? 534 | return _image->byteOrder(); | ^~~~~~ | Image src/exiv2wrapper.cpp: In member function ‘Exiv2::ExifThumb* exiv2wrapper::Image::_getExifThumbnail()’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:539:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 539 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::Image::writeExifThumbnailToFile(const std::string&)’: src/exiv2wrapper.cpp:559:35: warning: ignoring return value of ‘size_t Exiv2::ExifThumbC::writeFile(const std::string&) const’, declared with attribute ‘nodiscard’ [-Wunused-result] 559 | _getExifThumbnail()->writeFile(path); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/exiv2/image.hpp:11, from /usr/include/exiv2/bmffimage.hpp:9, from /usr/include/exiv2/exiv2.hpp:9: /usr/include/exiv2/exif.hpp:242:24: note: declared here 242 | [[nodiscard]] size_t writeFile(const std::string& path) const; | ^~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘boost::python::list exiv2wrapper::Image::getExifThumbnailData()’: src/exiv2wrapper.cpp:567:40: error: ‘struct Exiv2::DataBuf’ has no member named ‘size_’; did you mean ‘size’? 567 | for(unsigned int i = 0; i < buffer.size_; ++i) | ^~~~~ | size src/exiv2wrapper.cpp:569:37: error: ‘std::vector Exiv2::DataBuf::pData_’ is private within this context 569 | unsigned int datum = buffer.pData_[i]; | ^~~~~~ In file included from /usr/include/exiv2/basicio.hpp:11: /usr/include/exiv2/types.hpp:201:21: note: declared private here 201 | std::vector pData_; | ^~~~~~ src/exiv2wrapper.cpp: In member function ‘const std::string exiv2wrapper::Image::getIptcCharset() const’: src/exiv2wrapper.cpp:48:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 48 | if (!_dataRead) throw Exiv2::Error(Exiv2::kerErrorMessage, "metadata not read"); | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:593:5: note: in expansion of macro ‘CHECK_METADATA_READ’ 593 | CHECK_METADATA_READ | ^~~~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::ExifTag::setRawValue(const std::string&)’: src/exiv2wrapper.cpp:685:35: error: ‘kerInvalidDataset’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerInvalidDataset’? 685 | throw Exiv2::Error(Exiv2::kerInvalidDataset, message); | ^~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:168:3: note: ‘Exiv2::ErrorCode::kerInvalidDataset’ declared here 168 | kerInvalidDataset, | ^~~~~~~~~~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::ExifTag::setParentImage(exiv2wrapper::Image&)’: src/exiv2wrapper.cpp:705:19: error: ‘AutoPtr’ is not a member of ‘Exiv2::Value’ 705 | Exiv2::Value::AutoPtr value = _datum->getValue(); | ^~~~~~~ src/exiv2wrapper.cpp:708:22: error: ‘value’ was not declared in this scope; did you mean ‘boost::_bi::value’? 708 | _datum->setValue(value.get()); | ^~~~~ | boost::_bi::value In file included from /usr/include/boost/python/exception_translator.hpp:10, from /usr/include/boost/python.hpp:28, from src/exiv2wrapper.hpp:34: /usr/include/boost/bind/bind.hpp:97:25: note: ‘boost::_bi::value’ declared here 97 | template class value | ^~~~~ src/exiv2wrapper.cpp: In constructor ‘exiv2wrapper::IptcTag::IptcTag(const std::string&, Exiv2::IptcData*)’: src/exiv2wrapper.cpp:807:47: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 807 | throw Exiv2::Error(Exiv2::kerErrorMessage, mssg); | ^~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::IptcTag::setRawValues(const boost::python::list&)’: src/exiv2wrapper.cpp:835:39: error: ‘kerInvalidDataset’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerInvalidDataset’? 835 | throw Exiv2::Error(Exiv2::kerInvalidDataset, "Tag not repeatable"); | ^~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:168:3: note: ‘Exiv2::ErrorCode::kerInvalidDataset’ declared here 168 | kerInvalidDataset, | ^~~~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:861:43: error: ‘kerInvalidDataset’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerInvalidDataset’? 861 | throw Exiv2::Error(Exiv2::kerInvalidDataset, mssg); | ^~~~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:168:3: note: ‘Exiv2::ErrorCode::kerInvalidDataset’ declared here 168 | kerInvalidDataset, | ^~~~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:885:43: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 885 | throw Exiv2::Error(Exiv2::kerErrorMessage, mssg); | ^~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp:898:43: error: ‘kerErrorMessage’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerErrorMessage’? 898 | throw Exiv2::Error(Exiv2::kerErrorMessage, mssg); | ^~~~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:165:3: note: ‘Exiv2::ErrorCode::kerErrorMessage’ declared here 165 | kerErrorMessage, | ^~~~~~~~~~~~~~~ src/exiv2wrapper.cpp: In member function ‘void exiv2wrapper::XmpTag::setParentImage(exiv2wrapper::Image&)’: src/exiv2wrapper.cpp:1086:19: error: ‘AutoPtr’ is not a member of ‘Exiv2::Value’ 1086 | Exiv2::Value::AutoPtr value = _datum->getValue(); | ^~~~~~~ src/exiv2wrapper.cpp:1090:22: error: ‘value’ was not declared in this scope; did you mean ‘boost::_bi::value’? 1090 | _datum->setValue(value.get()); | ^~~~~ | boost::_bi::value /usr/include/boost/bind/bind.hpp:97:25: note: ‘boost::_bi::value’ declared here 97 | template class value | ^~~~~ src/exiv2wrapper.cpp: In member function ‘const boost::python::list exiv2wrapper::XmpTag::getArrayValue()’: src/exiv2wrapper.cpp:1136:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 1136 | for(int i = 0; i < xav->count(); ++i) | ~~^~~~~~~~~~~~~~ src/exiv2wrapper.cpp: In function ‘void exiv2wrapper::translateExiv2Error(const Exiv2::Error&)’: src/exiv2wrapper.cpp:1218:14: error: could not convert ‘1’ from ‘int’ to ‘Exiv2::ErrorCode’ 1218 | case 1: | ^ | | | int src/exiv2wrapper.cpp:1222:14: error: could not convert ‘2’ from ‘int’ to ‘Exiv2::ErrorCode’ 1222 | case 2: | ^ | | | int src/exiv2wrapper.cpp:1227:14: error: could not convert ‘3’ from ‘int’ to ‘Exiv2::ErrorCode’ 1227 | case 3: | ^ | | | int src/exiv2wrapper.cpp:1232:14: error: could not convert ‘4’ from ‘int’ to ‘Exiv2::ErrorCode’ 1232 | case 4: | ^ | | | int src/exiv2wrapper.cpp:1236:14: error: could not convert ‘5’ from ‘int’ to ‘Exiv2::ErrorCode’ 1236 | case 5: | ^ | | | int src/exiv2wrapper.cpp:1241:14: error: could not convert ‘6’ from ‘int’ to ‘Exiv2::ErrorCode’ 1241 | case 6: | ^ | | | int src/exiv2wrapper.cpp:1247:14: error: could not convert ‘7’ from ‘int’ to ‘Exiv2::ErrorCode’ 1247 | case 7: | ^ | | | int src/exiv2wrapper.cpp:1253:14: error: could not convert ‘8’ from ‘int’ to ‘Exiv2::ErrorCode’ 1253 | case 8: | ^ | | | int src/exiv2wrapper.cpp:1258:14: error: could not convert ‘9’ from ‘int’ to ‘Exiv2::ErrorCode’ 1258 | case 9: | ^ | | | int src/exiv2wrapper.cpp:1264:14: error: could not convert ‘10’ from ‘int’ to ‘Exiv2::ErrorCode’ 1264 | case 10: | ^~ | | | int src/exiv2wrapper.cpp:1270:14: error: could not convert ‘11’ from ‘int’ to ‘Exiv2::ErrorCode’ 1270 | case 11: | ^~ | | | int src/exiv2wrapper.cpp:1276:14: error: could not convert ‘12’ from ‘int’ to ‘Exiv2::ErrorCode’ 1276 | case 12: | ^~ | | | int src/exiv2wrapper.cpp:1282:14: error: could not convert ‘13’ from ‘int’ to ‘Exiv2::ErrorCode’ 1282 | case 13: | ^~ | | | int src/exiv2wrapper.cpp:1287:14: error: could not convert ‘14’ from ‘int’ to ‘Exiv2::ErrorCode’ 1287 | case 14: | ^~ | | | int src/exiv2wrapper.cpp:1292:14: error: could not convert ‘15’ from ‘int’ to ‘Exiv2::ErrorCode’ 1292 | case 15: | ^~ | | | int src/exiv2wrapper.cpp:1297:14: error: could not convert ‘17’ from ‘int’ to ‘Exiv2::ErrorCode’ 1297 | case 17: | ^~ | | | int src/exiv2wrapper.cpp:1303:14: error: could not convert ‘18’ from ‘int’ to ‘Exiv2::ErrorCode’ 1303 | case 18: | ^~ | | | int src/exiv2wrapper.cpp:1308:14: error: could not convert ‘19’ from ‘int’ to ‘Exiv2::ErrorCode’ 1308 | case 19: | ^~ | | | int src/exiv2wrapper.cpp:1313:14: error: could not convert ‘20’ from ‘int’ to ‘Exiv2::ErrorCode’ 1313 | case 20: | ^~ | | | int src/exiv2wrapper.cpp:1318:14: error: could not convert ‘21’ from ‘int’ to ‘Exiv2::ErrorCode’ 1318 | case 21: | ^~ | | | int src/exiv2wrapper.cpp:1323:14: error: could not convert ‘22’ from ‘int’ to ‘Exiv2::ErrorCode’ 1323 | case 22: | ^~ | | | int src/exiv2wrapper.cpp:1328:14: error: could not convert ‘23’ from ‘int’ to ‘Exiv2::ErrorCode’ 1328 | case 23: | ^~ | | | int src/exiv2wrapper.cpp:1334:14: error: could not convert ‘24’ from ‘int’ to ‘Exiv2::ErrorCode’ 1334 | case 24: | ^~ | | | int src/exiv2wrapper.cpp:1339:14: error: could not convert ‘25’ from ‘int’ to ‘Exiv2::ErrorCode’ 1339 | case 25: | ^~ | | | int src/exiv2wrapper.cpp:1344:14: error: could not convert ‘26’ from ‘int’ to ‘Exiv2::ErrorCode’ 1344 | case 26: | ^~ | | | int src/exiv2wrapper.cpp:1349:14: error: could not convert ‘27’ from ‘int’ to ‘Exiv2::ErrorCode’ 1349 | case 27: | ^~ | | | int src/exiv2wrapper.cpp:1355:14: error: could not convert ‘28’ from ‘int’ to ‘Exiv2::ErrorCode’ 1355 | case 28: | ^~ | | | int src/exiv2wrapper.cpp:1360:14: error: could not convert ‘29’ from ‘int’ to ‘Exiv2::ErrorCode’ 1360 | case 29: | ^~ | | | int src/exiv2wrapper.cpp:1365:14: error: could not convert ‘30’ from ‘int’ to ‘Exiv2::ErrorCode’ 1365 | case 30: | ^~ | | | int src/exiv2wrapper.cpp:1370:14: error: could not convert ‘31’ from ‘int’ to ‘Exiv2::ErrorCode’ 1370 | case 31: | ^~ | | | int src/exiv2wrapper.cpp:1376:14: error: could not convert ‘32’ from ‘int’ to ‘Exiv2::ErrorCode’ 1376 | case 32: | ^~ | | | int src/exiv2wrapper.cpp:1383:14: error: could not convert ‘33’ from ‘int’ to ‘Exiv2::ErrorCode’ 1383 | case 33: | ^~ | | | int src/exiv2wrapper.cpp:1388:14: error: could not convert ‘34’ from ‘int’ to ‘Exiv2::ErrorCode’ 1388 | case 34: | ^~ | | | int src/exiv2wrapper.cpp:1392:14: error: could not convert ‘35’ from ‘int’ to ‘Exiv2::ErrorCode’ 1392 | case 35: | ^~ | | | int src/exiv2wrapper.cpp:1398:14: error: could not convert ‘36’ from ‘int’ to ‘Exiv2::ErrorCode’ 1398 | case 36: | ^~ | | | int src/exiv2wrapper.cpp:1405:14: error: could not convert ‘37’ from ‘int’ to ‘Exiv2::ErrorCode’ 1405 | case 37: | ^~ | | | int src/exiv2wrapper.cpp:1412:14: error: could not convert ‘38’ from ‘int’ to ‘Exiv2::ErrorCode’ 1412 | case 38: | ^~ | | | int src/exiv2wrapper.cpp:1418:14: error: could not convert ‘39’ from ‘int’ to ‘Exiv2::ErrorCode’ 1418 | case 39: | ^~ | | | int src/exiv2wrapper.cpp:1424:14: error: could not convert ‘40’ from ‘int’ to ‘Exiv2::ErrorCode’ 1424 | case 40: | ^~ | | | int src/exiv2wrapper.cpp:1430:14: error: could not convert ‘41’ from ‘int’ to ‘Exiv2::ErrorCode’ 1430 | case 41: | ^~ | | | int src/exiv2wrapper.cpp:1437:14: error: could not convert ‘42’ from ‘int’ to ‘Exiv2::ErrorCode’ 1437 | case 42: | ^~ | | | int src/exiv2wrapper.cpp:1444:14: error: could not convert ‘43’ from ‘int’ to ‘Exiv2::ErrorCode’ 1444 | case 43: | ^~ | | | int src/exiv2wrapper.cpp:1450:14: error: could not convert ‘44’ from ‘int’ to ‘Exiv2::ErrorCode’ 1450 | case 44: | ^~ | | | int src/exiv2wrapper.cpp:1457:14: error: could not convert ‘45’ from ‘int’ to ‘Exiv2::ErrorCode’ 1457 | case 45: | ^~ | | | int src/exiv2wrapper.cpp:1464:14: error: could not convert ‘46’ from ‘int’ to ‘Exiv2::ErrorCode’ 1464 | case 46: | ^~ | | | int src/exiv2wrapper.cpp:1470:14: error: could not convert ‘47’ from ‘int’ to ‘Exiv2::ErrorCode’ 1470 | case 47: | ^~ | | | int src/exiv2wrapper.cpp:1477:14: error: could not convert ‘48’ from ‘int’ to ‘Exiv2::ErrorCode’ 1477 | case 48: | ^~ | | | int src/exiv2wrapper.cpp:1483:14: error: could not convert ‘49’ from ‘int’ to ‘Exiv2::ErrorCode’ 1483 | case 49: | ^~ | | | int src/exiv2wrapper.cpp:1490:14: error: could not convert ‘50’ from ‘int’ to ‘Exiv2::ErrorCode’ 1490 | case 50: | ^~ | | | int src/exiv2wrapper.cpp:1496:14: error: could not convert ‘51’ from ‘int’ to ‘Exiv2::ErrorCode’ 1496 | case 51: | ^~ | | | int src/exiv2wrapper.cpp:1503:14: error: could not convert ‘52’ from ‘int’ to ‘Exiv2::ErrorCode’ 1503 | case 52: | ^~ | | | int src/exiv2wrapper.cpp:1508:14: error: could not convert ‘53’ from ‘int’ to ‘Exiv2::ErrorCode’ 1508 | case 53: | ^~ | | | int src/exiv2wrapper.cpp:1512:14: error: could not convert ‘54’ from ‘int’ to ‘Exiv2::ErrorCode’ 1512 | case 54: | ^~ | | | int src/exiv2wrapper.cpp:1516:14: error: could not convert ‘55’ from ‘int’ to ‘Exiv2::ErrorCode’ 1516 | case 55: | ^~ | | | int src/exiv2wrapper.cpp:1520:14: error: could not convert ‘56’ from ‘int’ to ‘Exiv2::ErrorCode’ 1520 | case 56: | ^~ | | | int src/exiv2wrapper.cpp:1525:14: error: could not convert ‘57’ from ‘int’ to ‘Exiv2::ErrorCode’ 1525 | case 57: | ^~ | | | int src/exiv2wrapper.cpp:1530:14: error: could not convert ‘58’ from ‘int’ to ‘Exiv2::ErrorCode’ 1530 | case 58: | ^~ | | | int src/exiv2wrapper.cpp:1534:14: error: could not convert ‘59’ from ‘int’ to ‘Exiv2::ErrorCode’ 1534 | case 59: | ^~ | | | int src/exiv2wrapper.cpp:1538:14: error: could not convert ‘60’ from ‘int’ to ‘Exiv2::ErrorCode’ 1538 | case 60: | ^~ | | | int src/exiv2wrapper.cpp: In function ‘void exiv2wrapper::registerXmpNs(const std::string&, const std::string&)’: src/exiv2wrapper.cpp:1893:35: error: ‘kerInvalidKey’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerInvalidKey’? 1893 | throw Exiv2::Error(Exiv2::kerInvalidKey, mssg); | ^~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:170:3: note: ‘Exiv2::ErrorCode::kerInvalidKey’ declared here 170 | kerInvalidKey, | ^~~~~~~~~~~~~ src/exiv2wrapper.cpp: In function ‘void exiv2wrapper::unregisterXmpNs(const std::string&)’: src/exiv2wrapper.cpp:1910:37: warning: unused variable ‘info’ [-Wunused-variable] 1910 | const Exiv2::XmpNsInfo* info = Exiv2::XmpProperties::nsInfo(prefix); | ^~~~ src/exiv2wrapper.cpp:1922:39: error: ‘kerInvalidKey’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerInvalidKey’? 1922 | throw Exiv2::Error(Exiv2::kerInvalidKey, mssg); | ^~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:170:3: note: ‘Exiv2::ErrorCode::kerInvalidKey’ declared here 170 | kerInvalidKey, | ^~~~~~~~~~~~~ src/exiv2wrapper.cpp:1935:35: error: ‘kerInvalidKey’ is not a member of ‘Exiv2’; did you mean ‘Exiv2::ErrorCode::kerInvalidKey’? 1935 | throw Exiv2::Error(Exiv2::kerInvalidKey, mssg); | ^~~~~~~~~~~~~ /usr/include/exiv2/error.hpp:170:3: note: ‘Exiv2::ErrorCode::kerInvalidKey’ declared here 170 | kerInvalidKey, | ^~~~~~~~~~~~~ error: command '/usr/bin/gcc' failed with exit code 1 error: Bad exit status from /var/tmp/rpm-tmp.uhm7yk (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.uhm7yk (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/python3-exiv2.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/python3-exiv2.spec