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

Build failed on FreeBSD w/ clang 10 #7456

Closed
gaod opened this issue Jan 28, 2021 · 2 comments · Fixed by #7592
Closed

Build failed on FreeBSD w/ clang 10 #7456

gaod opened this issue Jan 28, 2021 · 2 comments · Fixed by #7592
Assignees

Comments

@gaod
Copy link

gaod commented Jan 28, 2021

At the latest release 8.1.1, while enabling WCCP on FreeBSD 12.2 with built-in clang 10.0.1:

ld: error: undefined symbol: wccp::detail::cache::CacheData::idAddr() const
>>> referenced by WccpMsg.cc:1029
>>>               WccpMsg.o:(wccp::CacheViewComp::fill(wccp::MsgBuffer&, wccp::detail::cache::GroupData const&)) in archive wccp/libwccp.a
>>> referenced by WccpMsg.cc:1625
>>>               WccpMsg.o:(wccp::detail::Assignment::fill(wccp::detail::cache::GroupData&, unsigned int)) in archive wccp/libwccp.a
c++: error: linker command failed with exit code 1 (use -v to see invocation)

But it can pass on FreeBSD 12.2 with gcc 9.3.

@maskit
Copy link
Member

maskit commented Jan 29, 2021

Confirmed that the link error happens on master as well. Not really a workaround but it links successfully if I run configure with --enable-debug.

@maskit maskit added the Build label Jan 29, 2021
@maskit
Copy link
Member

maskit commented Jan 29, 2021

Removing inline solves the issue, but I'm not sure if we want to do it.

inline uint32_t
detail::cache::CacheData::idAddr() const
{
return m_id.getAddr();
}

@SolidWallOfCode Can you take a look?

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

Successfully merging a pull request may close this issue.

4 participants