radareorg / r2retdec

RetDec plugin for Radare2
https://retdec.com/
MIT License
125 stars 24 forks source link

Compliation errors: ‘r_core_annotated_code_print’ was not declared in this scope #30

Closed larsw closed 2 years ago

larsw commented 3 years ago

Ubuntu 20.04

cmake output:

-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Check for working C compiler: /usr/bin/gcc-10
-- Check for working C compiler: /usr/bin/gcc-10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++-10
-- Check for working CXX compiler: /usr/bin/g++-10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting build type to 'Release' as none was specified.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for one of the modules 'r_core'
-- Found Radare2: Radare2::libr  
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.5", minimum required is "3.4") 
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Capstone: using remote Capstone revision.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- LLVM: using remote LLVM revision.
-- YARA: using remote YARA revision.
-- YaraMod: using remote YaraMod revision.
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found suitable version "1.1.1f", minimum required is "1.0.1")  
-- -- Library stdc++fs NOT FOUND -> linking utils without stdc++fs library
-- Library stdc++fs NOT FOUND -> linking core_retdec without stdc++fs library
-- Configuring done
-- Generating done
/retdec-r2plugin/src/r2plugin/console/decompiler.cpp: In static member function ‘static bool retdec::r2plugin::DecompilerConsole::decompileCurrent(const string&, const retdec::r2plugin::R2Database&)’:
/retdec-r2plugin/src/r2plugin/console/decompiler.cpp:91:2: error: ‘r_core_annotated_code_print’ was not declared in this scope; did you mean ‘r_annotated_code_free’?
   91 |  r_core_annotated_code_print(code, nullptr);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |  r_annotated_code_free
/retdec-r2plugin/src/r2plugin/console/decompiler.cpp: In static member function ‘static bool retdec::r2plugin::DecompilerConsole::decompileWithOffsetsCurrent(const string&, const retdec::r2plugin::R2Database&)’:
/retdec-r2plugin/src/r2plugin/console/decompiler.cpp:104:2: error: ‘r_core_annotated_code_print’ was not declared in this scope; did you mean ‘r_annotated_code_free’?
  104 |  r_core_annotated_code_print(code, offsets);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |  r_annotated_code_free
/retdec-r2plugin/src/r2plugin/console/decompiler.cpp: In static member function ‘static bool retdec::r2plugin::DecompilerConsole::decompileJsonCurrent(const string&, const retdec::r2plugin::R2Database&)’:
/retdec-r2plugin/src/r2plugin/console/decompiler.cpp:119:2: error: ‘r_core_annotated_code_print_json’ was not declared in this scope
  119 |  r_core_annotated_code_print_json(code);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/retdec-r2plugin/src/r2plugin/console/decompiler.cpp: In static member function ‘static bool retdec::r2plugin::DecompilerConsole::decompileCommentCurrent(const string&, const retdec::r2plugin::R2Database&)’:
/retdec-r2plugin/src/r2plugin/console/decompiler.cpp:131:2: error: ‘r_core_annotated_code_print_comment_cmds’ was not declared in this scope
  131 |  r_core_annotated_code_print_comment_cmds(code);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/r2plugin/CMakeFiles/core_retdec.dir/build.make:141: src/r2plugin/CMakeFiles/core_retdec.dir/console/decompiler.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2429: src/r2plugin/CMakeFiles/core_retdec.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
trufae commented 2 years ago

i just merged the pr i did 2 years ago fixing this.