facebook / facebook/folly

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

Open
#2,337 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
30.5k
Forks
5.9k
PR merge metrics
No merged PRs in 30d

Description

```
/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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.