Skip to content

Build failed on FreeBSD w/ clang 10 #7456

Closed

Description

@gaod

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.

Activity

  1. maskit commented on Jan 29, 2021

    @maskit
    Member

    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.

  2. added
    Build
    on Jan 29, 2021
  3. maskit commented on Jan 29, 2021

    @maskit
    Member

    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

Metadata

Metadata

Assignees

Labels

BuildFreeBSD

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions