Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Android build link errors of log module #862

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xykong
Copy link

@xykong xykong commented Sep 24, 2020

Fix the following build errors:

[100%] Linking CXX shared library libmarsstn.so
/Users/xykong/workspace/github/mars/mars/log/../boost/iostreams/device/mapped_file.hpp:295: error: undefined reference to 'mars_boost::iostreams::mapped_file_source::is_open() const'
/Users/xykong/workspace/github/mars/mars/log/../boost/iostreams/device/mapped_file.hpp:298: error: undefined reference to 'mars_boost::iostreams::mapped_file_source::operator!() const'
/Users/xykong/workspace/github/mars/mars/log/../boost/iostreams/device/mapped_file.hpp:299: error: undefined reference to 'mars_boost::iostreams::mapped_file_source::flags() const'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:235: error: undefined reference to 'PtrBuffer::Ptr()'
/Users/xykong/workspace/github/mars/mars/log/../boost/iostreams/device/mapped_file.hpp:466: error: undefined reference to 'mars_boost::iostreams::mapped_file_source::data() const'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:232: error: undefined reference to 'CloseMmapFile(mars_boost::iostreams::mapped_file&)'
/Users/xykong/workspace/github/mars/mars/log/../boost/iostreams/device/mapped_file.hpp:243: error: undefined reference to 'mars_boost::iostreams::mapped_file_source::mapped_file_source()'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:275: error: undefined reference to 'OpenMmapFile(char const*, unsigned int, mars_boost::iostreams::mapped_file&)'
/Users/xykong/workspace/github/mars/mars/log/../boost/iostreams/device/mapped_file.hpp:299: error: undefined reference to 'mars_boost::iostreams::mapped_file_source::flags() const'
/Users/xykong/workspace/github/mars/mars/log/../boost/iostreams/device/mapped_file.hpp:299: error: undefined reference to 'mars_boost::iostreams::mapped_file_source::flags() const'
/Users/xykong/workspace/github/mars/mars/log/../boost/iostreams/device/mapped_file.hpp:466: error: undefined reference to 'mars_boost::iostreams::mapped_file_source::data() const'
/Users/xykong/workspace/github/mars/mars/log/../boost/iostreams/device/mapped_file.hpp:466: error: undefined reference to 'mars_boost::iostreams::mapped_file_source::data() const'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:292: error: undefined reference to 'PtrBuffer::Ptr()'
/Users/xykong/workspace/github/mars/mars/log/../boost/iostreams/device/mapped_file.hpp:295: error: undefined reference to 'mars_boost::iostreams::mapped_file_source::is_open() const'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:293: error: undefined reference to 'CloseMmapFile(mars_boost::iostreams::mapped_file&)'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:158: error: undefined reference to 'PtrBuffer::PtrBuffer(void*, unsigned int, unsigned int)'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:165: error: undefined reference to 'PtrBuffer::~PtrBuffer()'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:866: error: undefined reference to 'PtrBuffer::PtrBuffer(void*, unsigned int, unsigned int)'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:870: error: undefined reference to 'PtrBuffer::Ptr()'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:870: error: undefined reference to 'PtrBuffer::Length() const'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:873: error: undefined reference to 'PtrBuffer::~PtrBuffer()'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:881: error: undefined reference to 'PtrBuffer::PtrBuffer(void*, unsigned int, unsigned int)'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:884: error: undefined reference to 'PtrBuffer::Length() const'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:885: error: undefined reference to 'PtrBuffer::Length() const'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:886: error: undefined reference to 'PtrBuffer::Length(long, unsigned int)'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:889: error: undefined reference to 'PtrBuffer::Ptr()'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:889: error: undefined reference to 'PtrBuffer::Length() const'
/Users/xykong/workspace/github/mars/mars/log/src/appender.cc:894: error: undefined reference to 'PtrBuffer::~PtrBuffer()'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:55: error: undefined reference to 'PtrBuffer::MaxLength() const'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:73: error: undefined reference to 'ExtractFileName'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:102: error: undefined reference to 'PtrBuffer::PosPtr()'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:59: error: undefined reference to 'PtrBuffer::MaxLength() const'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:60: error: undefined reference to 'PtrBuffer::PosPtr()'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:61: error: undefined reference to 'PtrBuffer::Pos() const'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:61: error: undefined reference to 'PtrBuffer::Length(long, unsigned int)'
/Users/xykong/workspace/github/mars/mars/log/../../mars/comm/ptrbuffer.h:45: error: undefined reference to 'PtrBuffer::Write(void const*, unsigned int)'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:108: error: undefined reference to 'PtrBuffer::Pos() const'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:108: error: undefined reference to 'PtrBuffer::Length(long, unsigned int)'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:117: error: undefined reference to 'PtrBuffer::MaxLength() const'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:117: error: undefined reference to 'PtrBuffer::MaxLength() const'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:121: error: undefined reference to 'PtrBuffer::Write(void const*, unsigned int)'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:128: error: undefined reference to 'PtrBuffer::PosPtr()'
/Users/xykong/workspace/github/mars/mars/log/src/formater.cc:128: error: undefined reference to 'PtrBuffer::Write(void const*, unsigned int)'
/Users/xykong/workspace/github/mars/mars/log/src/log_base_buffer.cc:184: error: undefined reference to 'PtrBuffer::PtrBuffer()'
/Users/xykong/workspace/github/mars/mars/log/src/log_base_buffer.cc:187: error: undefined reference to 'PtrBuffer::Attach(void*, unsigned int)'
/Users/xykong/workspace/github/mars/mars/log/src/log_base_buffer.cc:287: error: undefined reference to 'PtrBuffer::Length(long, unsigned int)'
/Users/xykong/workspace/github/mars/mars/log/src/log_base_buffer.cc:193: error: undefined reference to 'PtrBuffer::~PtrBuffer()'
/Users/xykong/workspace/github/mars/mars/log/src/log_base_buffer.cc:234: error: undefined reference to 'PtrBuffer::PosPtr()'
/Users/xykong/workspace/github/mars/mars/log/src/log_base_buffer.cc:240: error: undefined reference to 'PtrBuffer::Write(void const*, unsigned int)'
/Users/xykong/workspace/github/mars/mars/log/src/log_base_buffer.cc:250: error: undefined reference to 'PtrBuffer::Write(void const*, unsigned int, long)'
/Users/xykong/workspace/github/mars/mars/log/jni/ConsoleLog.cc:31: error: undefined reference to 'ExtractFileName'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libmarsstn.so] Error 1
make[1]: *** [CMakeFiles/marsstn.dir/all] Error 2
make: *** [all] Error 2
!!!!!!!!!!!!!!!!!!build fail!!!!!!!!!!!!!!!!!!!!

@tencent-adm
Copy link

tencent-adm commented Sep 24, 2020

CLA assistant check
All committers have signed the CLA.

@ghost
Copy link

ghost commented Oct 20, 2021

How to solve xlog file garbled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants