error: no matching function for call to ‘tihmstar::exception::exception(int&, const char*&, const char*&)'
TheProgramableTurtle opened this issue · 1 comments
TheProgramableTurtle commented
On commit 43f2c1a
, the following is produced:
In file included from patchfinder64.cpp:14:
In file included from ../include/liboffsetfinder64/patchfinder64.hpp:22:
../include/liboffsetfinder64/OFexception.hpp:18:76: error: no matching constructor for initialization of 'tihmstar::exception'
OFexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^ ~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/exception.hpp:23:9: note: candidate constructor not viable: requires single argument 'cpy', but 3 arguments were provided
exception(const exception &cpy); //copy constructor
^
/usr/local/include/libgeneral/exception.hpp:22:9: note: candidate constructor not viable: requires at least 5 arguments, but 3 were provided
exception(const char *commit_count_str, const char *commit_sha_str, int line, const char *filename, const char *err ...);
^
patchfinder64.cpp:31:17: warning: implicit conversion of NULL constant to 'offsetfinder64::loc_t' (aka 'unsigned long') [-Wnull-conversion]
_entrypoint(NULL),
~^~~~
0
patchfinder64.cpp:32:11: warning: implicit conversion of NULL constant to 'offsetfinder64::loc_t' (aka 'unsigned long') [-Wnull-conversion]
_base(NULL)
~^~~~
0
patchfinder64.cpp:220:5: error: no matching constructor for initialization of 'tihmstar::OFexception'
reterror("call reference not found");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:88:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/liboffsetfinder64/OFexception.hpp:18:9: note: candidate constructor not viable: no known conversion from 'const char [4]' to 'int' for 1st argument
OFexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class OFexception : public tihmstar::exception{
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
patchfinder64.cpp:231:17: error: no matching constructor for initialization of 'tihmstar::OFexception'
retassure(limit < 0, "search limit reached");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:85:67: note: expanded from macro 'retassure'
# define retassure(cond, errstr ...) do{ if ((cond) == 0) throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__,__FILE__,errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/liboffsetfinder64/OFexception.hpp:18:9: note: candidate constructor not viable: no known conversion from 'const char [4]' to 'int' for 1st argument
OFexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class OFexception : public tihmstar::exception{
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
patchfinder64.cpp:242:16: error: no matching constructor for initialization of 'tihmstar::OFexception'
retassure(limit > 0, "search limit reached");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:85:67: note: expanded from macro 'retassure'
# define retassure(cond, errstr ...) do{ if ((cond) == 0) throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__,__FILE__,errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/liboffsetfinder64/OFexception.hpp:18:9: note: candidate constructor not viable: no known conversion from 'const char [4]' to 'int' for 1st argument
OFexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class OFexception : public tihmstar::exception{
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
patchfinder64.cpp:250:5: error: no matching constructor for initialization of 'tihmstar::OFexception'
reterror("branchref not found");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:88:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/liboffsetfinder64/OFexception.hpp:18:9: note: candidate constructor not viable: no known conversion from 'const char [4]' to 'int' for 1st argument
OFexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class OFexception : public tihmstar::exception{
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
patchfinder64.cpp:303:21: error: no matching constructor for initialization of 'tihmstar::OFexception'
reterror("[4K] bad level=%d",level);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:88:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/liboffsetfinder64/OFexception.hpp:18:9: note: candidate constructor not viable: no known conversion from 'const char [4]' to 'int' for 1st argument
OFexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 6 were provided
class OFexception : public tihmstar::exception{
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 6 were provided
patchfinder64.cpp:317:21: error: no matching constructor for initialization of 'tihmstar::OFexception'
reterror("[16K] bad level=%d",level);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:88:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/liboffsetfinder64/OFexception.hpp:18:9: note: candidate constructor not viable: no known conversion from 'const char [4]' to 'int' for 1st argument
OFexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 6 were provided
class OFexception : public tihmstar::exception{
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 6 were provided
patchfinder64.cpp:329:21: error: no matching constructor for initialization of 'tihmstar::OFexception'
reterror("[64K] bad level=%d",level);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:88:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/liboffsetfinder64/OFexception.hpp:18:9: note: candidate constructor not viable: no known conversion from 'const char [4]' to 'int' for 1st argument
OFexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 6 were provided
class OFexception : public tihmstar::exception{
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 6 were provided
patchfinder64.cpp:333:13: error: no matching constructor for initialization of 'tihmstar::OFexception'
reterror("bad pagesize");
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:88:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/liboffsetfinder64/OFexception.hpp:18:9: note: candidate constructor not viable: no known conversion from 'const char [4]' to 'int' for 1st argument
OFexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class OFexception : public tihmstar::exception{
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
patchfinder64.cpp:350:21: error: no matching constructor for initialization of 'tihmstar::OFexception'
reterror("[4K] bad level=%d",level);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:88:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/liboffsetfinder64/OFexception.hpp:18:9: note: candidate constructor not viable: no known conversion from 'const char [4]' to 'int' for 1st argument
OFexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 6 were provided
class OFexception : public tihmstar::exception{
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 6 were provided
patchfinder64.cpp:364:21: error: no matching constructor for initialization of 'tihmstar::OFexception'
reterror("[16K] bad level=%d",level);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:88:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/liboffsetfinder64/OFexception.hpp:18:9: note: candidate constructor not viable: no known conversion from 'const char [4]' to 'int' for 1st argument
OFexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 6 were provided
class OFexception : public tihmstar::exception{
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 6 were provided
patchfinder64.cpp:376:21: error: no matching constructor for initialization of 'tihmstar::OFexception'
reterror("[64K] bad level=%d",level);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:88:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/liboffsetfinder64/OFexception.hpp:18:9: note: candidate constructor not viable: no known conversion from 'const char [4]' to 'int' for 1st argument
OFexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 6 were provided
class OFexception : public tihmstar::exception{
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 6 were provided
patchfinder64.cpp:380:13: error: no matching constructor for initialization of 'tihmstar::OFexception'
reterror("bad pagesize");
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:88:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/liboffsetfinder64/OFexception.hpp:18:9: note: candidate constructor not viable: no known conversion from 'const char [4]' to 'int' for 1st argument
OFexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class OFexception : public tihmstar::exception{
^
../include/liboffsetfinder64/OFexception.hpp:16:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
2 warnings and 13 errors generated.
All subsequent commits produce
In file included from ../include/liboffsetfinder64/patchfinder64.hpp:22,
from patchfinder64.cpp:14:
../include/liboffsetfinder64/OFexception.hpp: In constructor ‘tihmstar::load_command_not_found::load_command_not_found(const char*, const char*, int, const char*, int)’:
../include/liboffsetfinder64/OFexception.hpp:38:113: sorry, unimplemented: passing arguments to ellipsis of inherited constructor ‘tihmstar::OFexception::OFexception(const char*, const char*, int, const char*, const char*, ...) [inherited from tihmstar::exception]’
38 | : OFexception(commit_count_str,commit_sha_str,line,filename, "failed to find cmd: %s",cmd), _cmd(cmd) {};
| ^
In file included from ../include/liboffsetfinder64/patchfinder64.hpp:22,
from patchfinder64.cpp:14:
../include/liboffsetfinder64/OFexception.hpp:17:26: note: declared here
17 | using exception::exception;
| ^~~~~~~~~
patchfinder64.cpp: In constructor ‘tihmstar::offsetfinder64::patchfinder64::patchfinder64(bool)’:
patchfinder64.cpp:31:17: warning: converting to non-pointer type ‘tihmstar::offsetfinder64::loc_t’ {aka ‘long unsigned int’} from NULL [-Wconversion-null]
31 | _entrypoint(NULL),
| ^~~~
patchfinder64.cpp:32:11: warning: converting to non-pointer type ‘tihmstar::offsetfinder64::loc_t’ {aka ‘long unsigned int’} from NULL [-Wconversion-null]
32 | _base(NULL)
| ^~~~
In file included from patchfinder64.cpp:11:
patchfinder64.cpp: In member function ‘uint64_t tihmstar::offsetfinder64::patchfinder64::pte_vma_to_index(uint32_t, uint8_t, uint64_t)’:
patchfinder64.cpp:303:21: sorry, unimplemented: passing arguments to ellipsis of inherited constructor ‘tihmstar::OFexception::OFexception(const char*, const char*, int, const char*, const char*, ...) [inherited from tihmstar::exception]’
303 | reterror("[4K] bad level=%d",level);
| ^~~~~~~~
In file included from ../include/liboffsetfinder64/patchfinder64.hpp:22,
from patchfinder64.cpp:14:
../include/liboffsetfinder64/OFexception.hpp:17:26: note: declared here
17 | using exception::exception;
| ^~~~~~~~~
In file included from patchfinder64.cpp:11:
patchfinder64.cpp:317:21: sorry, unimplemented: passing arguments to ellipsis of inherited constructor ‘tihmstar::OFexception::OFexception(const char*, const char*, int, const char*, const char*, ...) [inherited from tihmstar::exception]’
317 | reterror("[16K] bad level=%d",level);
| ^~~~~~~~
In file included from ../include/liboffsetfinder64/patchfinder64.hpp:22,
from patchfinder64.cpp:14:
../include/liboffsetfinder64/OFexception.hpp:17:26: note: declared here
17 | using exception::exception;
| ^~~~~~~~~
In file included from patchfinder64.cpp:11:
patchfinder64.cpp:329:21: sorry, unimplemented: passing arguments to ellipsis of inherited constructor ‘tihmstar::OFexception::OFexception(const char*, const char*, int, const char*, const char*, ...) [inherited from tihmstar::exception]’
329 | reterror("[64K] bad level=%d",level);
| ^~~~~~~~
In file included from ../include/liboffsetfinder64/patchfinder64.hpp:22,
from patchfinder64.cpp:14:
../include/liboffsetfinder64/OFexception.hpp:17:26: note: declared here
17 | using exception::exception;
| ^~~~~~~~~
In file included from patchfinder64.cpp:11:
patchfinder64.cpp: In member function ‘uint64_t tihmstar::offsetfinder64::patchfinder64::pte_index_to_vma(uint32_t, uint8_t, uint64_t)’:
patchfinder64.cpp:350:21: sorry, unimplemented: passing arguments to ellipsis of inherited constructor ‘tihmstar::OFexception::OFexception(const char*, const char*, int, const char*, const char*, ...) [inherited from tihmstar::exception]’
350 | reterror("[4K] bad level=%d",level);
| ^~~~~~~~
In file included from ../include/liboffsetfinder64/patchfinder64.hpp:22,
from patchfinder64.cpp:14:
../include/liboffsetfinder64/OFexception.hpp:17:26: note: declared here
17 | using exception::exception;
| ^~~~~~~~~
In file included from patchfinder64.cpp:11:
patchfinder64.cpp:364:21: sorry, unimplemented: passing arguments to ellipsis of inherited constructor ‘tihmstar::OFexception::OFexception(const char*, const char*, int, const char*, const char*, ...) [inherited from tihmstar::exception]’
364 | reterror("[16K] bad level=%d",level);
| ^~~~~~~~
In file included from ../include/liboffsetfinder64/patchfinder64.hpp:22,
from patchfinder64.cpp:14:
../include/liboffsetfinder64/OFexception.hpp:17:26: note: declared here
17 | using exception::exception;
| ^~~~~~~~~
In file included from patchfinder64.cpp:11:
patchfinder64.cpp:376:21: sorry, unimplemented: passing arguments to ellipsis of inherited constructor ‘tihmstar::OFexception::OFexception(const char*, const char*, int, const char*, const char*, ...) [inherited from tihmstar::exception]’
376 | reterror("[64K] bad level=%d",level);
| ^~~~~~~~
In file included from ../include/liboffsetfinder64/patchfinder64.hpp:22,
from patchfinder64.cpp:14:
../include/liboffsetfinder64/OFexception.hpp:17:26: note: declared here
17 | using exception::exception;
| ^~~~~~~~~
patchfinder64.cpp: In member function ‘uint64_t tihmstar::offsetfinder64::patchfinder64::pte_vma_to_index(uint32_t, uint8_t, uint64_t)’:
patchfinder64.cpp:335:1: warning: control reaches end of non-void function [-Wreturn-type]
335 | }
| ^
patchfinder64.cpp: In member function ‘uint64_t tihmstar::offsetfinder64::patchfinder64::pte_index_to_vma(uint32_t, uint8_t, uint64_t)’:
patchfinder64.cpp:382:1: warning: control reaches end of non-void function [-Wreturn-type]
382 | }
|
Is there a version of liboffsetfinder64 that is usable?
mcurran-exploit commented
I have the same issue with origin/master tree and auracle git version... latest archlinux (amd64/x86_64)