Skip to content

Conversation

@xhochy
Copy link
Member

@xhochy xhochy commented Feb 21, 2021

Renames our alias to afpb to not clash with protobuf's definition.

Original error:

../src/arrow/flight/server.cc:63:11: error: redefinition of 'pb' as an alias for a different namespace
namespace pb = arrow::flight::protocol;
          ^
/Users/uwe/mambaforge/conda-bld/arrow-cpp-ext_1613940663852/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/include/google/protobuf/port.h:44:11: note: previously defined as an alias for 'protobuf_future_namespace_placeholder'
namespace pb = ::protobuf_future_namespace_placeholder;
          ^
1 error generated.

@github-actions
Copy link

@xhochy
Copy link
Member Author

xhochy commented Feb 21, 2021

@github-actions autotune

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if you put the "namespace pb" alias inside the arrow namespace below?
There is no reason to believe that top-level afpb won't conflict with another library.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that worked. CI is green again.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that worked. CI is green again.

@xhochy xhochy force-pushed the ARROW-11724 branch 2 times, most recently from 2742204 to 5ef559b Compare February 22, 2021 16:37
@xhochy xhochy closed this Feb 22, 2021
@xhochy xhochy reopened this Feb 22, 2021
Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, thank you @xhochy

@pitrou pitrou closed this in 06c795c Feb 23, 2021
@xhochy xhochy deleted the ARROW-11724 branch February 23, 2021 09:52
@ianmcook
Copy link
Member

ianmcook commented Apr 27, 2021

The Homebrew formula patch that this PR obviates the need for is removed in Homebrew/homebrew-core#76060

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants