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 missing port_undef #20052

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

wilstoff
Copy link

unparser.cc, arenaz_sampler_test.cc, and message_module.cc included port_def.inc but forgot to include the undef file. This can cause some issues on which absl macros are defined:

In file included from
/opt/protobuf-29/include/google/protobuf/arena.h:36: In file included from
/opt/protobuf-29/include/google/protobuf/arena_align.h:63: /opt/protobuf-29/include/google/protobuf/port_def.inc:542:5: error: function-like macro 'ABSL_HAVE_FEATURE' is not defined #if ABSL_HAVE_FEATURE(address_sanitizer)

unparser.cc, arenaz_sampler_test.cc, and message_module.cc included
port_def.inc but forgot to include the undef file.  This can cause
some issues on which absl macros are defined:

In file included from
/opt/protobuf-29/include/google/protobuf/arena.h:36:
In file included from
/opt/protobuf-29/include/google/protobuf/arena_align.h:63:
/opt/protobuf-29/include/google/protobuf/port_def.inc:542:5: error:
function-like macro 'ABSL_HAVE_FEATURE' is not defined
\#if ABSL_HAVE_FEATURE(address_sanitizer)
@wilstoff wilstoff requested a review from a team as a code owner January 20, 2025 16:00
@wilstoff wilstoff requested review from zhangskz and removed request for a team January 20, 2025 16:00
Copy link

google-cla bot commented Jan 20, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@mkruskal-google mkruskal-google added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 22, 2025
@mkruskal-google
Copy link
Member

Please sign the CLA

@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 22, 2025
@mkruskal-google mkruskal-google added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 22, 2025
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 22, 2025
@@ -347,3 +347,5 @@ PyMODINIT_FUNC PyInit__message() {

return m;
}

#include "google/protobuf/port_undef.inc
Copy link
Member

Choose a reason for hiding this comment

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

Missing end-quote here

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