Another build error building with exiv2 from Debian Buster
Hi
After #35 (closed) was closed, I still get a new build error
ninja: Entering directory `build'
[1/11] Compiling C++ object 'gexiv2/1a6c516@@gexiv2@sha/gexiv2-metadata.cpp.o'.
FAILED: gexiv2/1a6c516@@gexiv2@sha/gexiv2-metadata.cpp.o
c++ -Igexiv2/1a6c516@@gexiv2@sha -Igexiv2 -I../gexiv2 -Igexiv2/.. -I../gexiv2/.. -I/opt/include/glib-2.0 -I/opt/lib/i386-linux-gnu/glib-2.0/include -I/opt/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c++11 -Os -Wno-error -fPIC -pthread -MD -MQ 'gexiv2/1a6c516@@gexiv2@sha/gexiv2-metadata.cpp.o' -MF 'gexiv2/1a6c516@@gexiv2@sha/gexiv2-metadata.cpp.o.d' -o 'gexiv2/1a6c516@@gexiv2@sha/gexiv2-metadata.cpp.o' -c ../gexiv2/gexiv2-metadata.cpp
../gexiv2/gexiv2-metadata.cpp: In member function ‘virtual long int {anonymous}::GioIo::read(Exiv2::byte*, long int)’:
../gexiv2/gexiv2-metadata.cpp:87:33: error: no matching function for call to ‘Exiv2::BasicError<char>::BasicError(int)’
throw Exiv2::Error(2);
^
In file included from /opt/include/exiv2/iptc.hpp:34,
from /opt/include/exiv2/bmpimage.hpp:33,
from /opt/include/exiv2/exiv2.hpp:35,
from ../gexiv2/gexiv2-metadata-private.h:14,
from ../gexiv2/gexiv2-metadata.cpp:12:
/opt/include/exiv2/error.hpp:280:9: note: candidate: ‘template<class A, class B, class C> Exiv2::BasicError<charT>::BasicError(Exiv2::ErrorCode, const A&, const B&, const C&)’
BasicError(ErrorCode code, const A& arg1, const B& arg2, const C& arg3);
^~~~~~~~~~
/opt/include/exiv2/error.hpp:280:9: note: template argument deduction/substitution failed:
../gexiv2/gexiv2-metadata.cpp:87:33: note: candidate expects 4 arguments, 1 provided
throw Exiv2::Error(2);
^
In file included from /opt/include/exiv2/iptc.hpp:34,
from /opt/include/exiv2/bmpimage.hpp:33,
from /opt/include/exiv2/exiv2.hpp:35,
from ../gexiv2/gexiv2-metadata-private.h:14,
from ../gexiv2/gexiv2-metadata.cpp:12:
/opt/include/exiv2/error.hpp:276:9: note: candidate: ‘template<class A, class B> Exiv2::BasicError<charT>::BasicError(Exiv2::ErrorCode, const A&, const B&)’
BasicError(ErrorCode code, const A& arg1, const B& arg2);
^~~~~~~~~~
/opt/include/exiv2/error.hpp:276:9: note: template argument deduction/substitution failed:
../gexiv2/gexiv2-metadata.cpp:87:33: note: candidate expects 3 arguments, 1 provided
throw Exiv2::Error(2);
^
In file included from /opt/include/exiv2/iptc.hpp:34,
from /opt/include/exiv2/bmpimage.hpp:33,
from /opt/include/exiv2/exiv2.hpp:35,
from ../gexiv2/gexiv2-metadata-private.h:14,
from ../gexiv2/gexiv2-metadata.cpp:12:
/opt/include/exiv2/error.hpp:272:9: note: candidate: ‘template<class A> Exiv2::BasicError<charT>::BasicError(Exiv2::ErrorCode, const A&)’
BasicError(ErrorCode code, const A& arg1);
^~~~~~~~~~
/opt/include/exiv2/error.hpp:272:9: note: template argument deduction/substitution failed:
../gexiv2/gexiv2-metadata.cpp:87:33: note: candidate expects 2 arguments, 1 provided
throw Exiv2::Error(2);
^
In file included from /opt/include/exiv2/iptc.hpp:34,
from /opt/include/exiv2/bmpimage.hpp:33,
from /opt/include/exiv2/exiv2.hpp:35,
from ../gexiv2/gexiv2-metadata-private.h:14,
from ../gexiv2/gexiv2-metadata.cpp:12:
/opt/include/exiv2/error.hpp:336:5: note: candidate: ‘Exiv2::BasicError<charT>::BasicError(Exiv2::ErrorCode) [with charT = char]’ <near match>
BasicError<charT>::BasicError(ErrorCode code)
^~~~~~~~~~~~~~~~~
/opt/include/exiv2/error.hpp:336:5: note: conversion of argument 1 would be ill-formed:
../gexiv2/gexiv2-metadata.cpp:87:33: error: invalid conversion from ‘int’ to ‘Exiv2::ErrorCode’ [-fpermissive]
throw Exiv2::Error(2);
^
In file included from /opt/include/exiv2/iptc.hpp:34,
from /opt/include/exiv2/bmpimage.hpp:33,
from /opt/include/exiv2/exiv2.hpp:35,
from ../gexiv2/gexiv2-metadata-private.h:14,
from ../gexiv2/gexiv2-metadata.cpp:12:
/opt/include/exiv2/error.hpp:263:11: note: candidate: ‘Exiv2::BasicError<char>::BasicError(const Exiv2::BasicError<char>&)’
class BasicError : public AnyError {
^~~~~~~~~~
/opt/include/exiv2/error.hpp:263:11: note: no known conversion for argument 1 from ‘int’ to ‘const Exiv2::BasicError<char>&’
../gexiv2/gexiv2-metadata.cpp: In function ‘gboolean gexiv2_metadata_from_stream(GExiv2Metadata*, GInputStream*, GError**)’:
../gexiv2/gexiv2-metadata.cpp:391:25: error: ‘AutoPtr’ is not a member of ‘Exiv2::BasicIo’
Exiv2::BasicIo::AutoPtr gio_ptr (new GioIo (stream));
^~~~~~~
../gexiv2/gexiv2-metadata.cpp:392:56: error: ‘gio_ptr’ was not declared in this scope
self->priv->image = Exiv2::ImageFactory::open (gio_ptr);
^~~~~~~
../gexiv2/gexiv2-metadata.cpp:392:56: note: suggested alternative: ‘gintptr’
self->priv->image = Exiv2::ImageFactory::open (gio_ptr);
^~~~~~~
gintptr
ninja: build stopped: subcommand failed.
PackageInstallSource finished in 0 seconds with result 1
Thanks