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
test: unittest_hostname compile error on freebsd #13739
Conversation
src/test/common/test_hostname.cc
Outdated
#include <iostream> | ||
#include <string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might want to remove #include <string>
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but std::string is used in line 35
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, do you mean that I shouldn't reorder #include <string>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's duplicated with the #include
at line:30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry. fixed it
Seems that clang linker could not find boost::regex. |
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
0d95e2b
to
efe027d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compile oke and executes on Clang/FreeBSD
@wjwithagen thanks! |
Signed-off-by: liuchang0812 liuchang0812@gmail.com
@wjwithagen I have no FreeBSD environment, mind taking a look? It's compiled successfully by clang. thanks!