Details
Description
Specifying an unbundled dependency can cause the build to pick up a wrong Boost version. Assuming we have e.g., both protobuf and Boost installed in PREFIX, configuring with --with-protobuf=PREFIX causes the build to pick up the Boost version from PREFIX instead of using the bundled one.
This appears to be due to how we specify Boost include paths. Boost paths are added with -isystem to suppress warnings; the protobuf include path, on the other hand, would be added with -I. GCC and for compatibility clang first search all paths specified with -I left-to-right before looking at paths given with -isystem, see the GCC documenation.
Attachments
Attachments
Issue Links
- blocks
-
MESOS-7642 Consider unbundling protobuf dependency
- Open
- breaks
-
MESOS-7699 "stdlib.h: No such file or directory" when building with GCC 6 (Debian stable freshly released)
- Resolved
- is duplicated by
-
MESOS-7717 Compile Problem on coreos build in libprocess
- Resolved
- is required by
-
MESOS-7717 Compile Problem on coreos build in libprocess
- Resolved