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

2024.11.11.00: Build fails: call to 'clearenv' is ambiguous #2337

Open
yurivict opened this issue Nov 12, 2024 · 1 comment
Open

2024.11.11.00: Build fails: call to 'clearenv' is ambiguous #2337

yurivict opened this issue Nov 12, 2024 · 1 comment

Comments

@yurivict
Copy link
Contributor

/wrkdirs/usr/ports/devel/folly/work/folly-2024.11.11.00/folly/system/EnvUtil.cpp:50:15: error: call to 'clearenv' is ambiguous
   50 |   PCHECK(0 == clearenv());
      |               ^~~~~~~~
/usr/local/include/glog/logging.h:897:52: note: expanded from macro 'PCHECK'
  897 |   PLOG_IF(FATAL, GOOGLE_PREDICT_BRANCH_NOT_TAKEN(!(condition))) \
      |                                                    ^~~~~~~~~
/usr/local/include/glog/logging.h:170:66: note: expanded from macro 'GOOGLE_PREDICT_BRANCH_NOT_TAKEN'
  170 | #    define GOOGLE_PREDICT_BRANCH_NOT_TAKEN(x) (__builtin_expect(x, 0))
      |                                                                  ^
/usr/local/include/glog/logging.h:889:9: note: expanded from macro 'PLOG_IF'
  889 |       !(condition)                   \
      |         ^~~~~~~~~
/usr/include/stdlib.h:285:6: note: candidate function
  285 | int      clearenv(void);
      |          ^
/wrkdirs/usr/ports/devel/folly/work/folly-2024.11.11.00/folly/portability/Stdlib.h:61:5: note: candidate function
   61 | int clearenv();
      |     ^ 
12 warnings and 1 error generated.

clang-18
FreeBSD 14.1

@yurivict
Copy link
Contributor Author

Fix: #2338

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

No branches or pull requests

1 participant