chronoxor / CppServer

Ultra fast and low latency asynchronous socket server & client C++ library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
MIT License
1.43k stars 284 forks source link

build error #79

Open Herinbul opened 1 year ago

Herinbul commented 1 year ago

error: macro "bfd_section_vma" requires 2 arguments, but only 1 given bfd_vma vma = bfd_section_vma(section); ^ /home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:174:61: error: macro "bfd_section_size" requires 2 arguments, but only 1 given bfd_size_type secsize = bfd_section_size(section); ^ /home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp: In constructor ‘CppCommon::StackTrace::StackTrace(int)’: /home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:167:18: error: ‘bfd_section_flags’ was not declared in this scope if ((bfd_section_flags(section) & SEC_ALLOC) == 0) ^~~~~ /home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:167:18: note: suggested alternative: ‘bfd_set_section_flags’ if ((bfd_section_flags(section) & SEC_ALLOC) == 0) ^~~~~ bfd_set_section_flags /home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:170:27: error: ‘bfd_section_vma’ was not declared in this scope bfd_vma vma = bfd_section_vma(section); ^~~~~~~ /home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:170:27: note: suggested alternative: ‘bfd_scan_vma’ bfd_vma vma = bfd_section_vma(section); ^~~~~~~ bfd_scan_vma /home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:174:37: error: ‘bfd_section_size’ was not declared in this scope bfd_size_type secsize = bfd_section_size(section); ^~~~ /home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:174:37: note: suggested alternative: ‘bfd_set_gp_size’ bfd_size_type secsize = bfd_section_size(section); ^~~~ bfd_set_gp_size [ 33%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/stack_trace_manager.cpp.o modules/CppCommon/CMakeFiles/cppcommon.dir/build.make:453: recipe for target 'modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/stack_trace.cpp.o' failed make[2]: [modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/stack_trace.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... CMakeFiles/Makefile2:1971: recipe for target 'modules/CppCommon/CMakeFiles/cppcommon.dir/all' failed make[1]: [modules/CppCommon/CMakeFiles/cppcommon.dir/all] Error 2 Makefile:145: recipe for target 'all' failed make: [all] Error 2

sumitsarkar1 commented 1 year ago

@Herinbul have you solved it ?

wang21825227 commented 7 months ago

@Herinbul Have you solved it? I have the same problem.