Opened 10 years ago

Closed 10 years ago

#7847 closed Bugs (fixed)

BUG: on linux, the non-standard <wait.h> is included, breaking build with musl libc

Reported by: anonymous Owned by: Vladimir Prus
Milestone: To Be Determined Component: build
Version: Boost 1.52.0 Severity: Showstopper
Keywords: Cc:

Description

wait.h is not linux-specific, but GLIBC specific. here's the patch that makes it work. without this patch, it is not possible to build boost on any non-glibc linux platform.

--- boost_1_52_0.org/tools/build/v2/engine/execunix.c 2013-01-04 09:45:43.165000002 +0000 +++ boost_1_52_0/tools/build/v2/engine/execunix.c 2013-01-04 09:46:20.095000004 +0000 @@ -18,7 +18,7 @@

#include <sys/times.h> #include <sys/wait.h>

-#if defined(sun) +#if defined(sun)
defined(sun) defined(linux)
defined(sun) defined(GLIBC)

#include <wait.h>

#endif

Attachments (1)

boost-execinfo.patch (388 bytes ) - added by anonymous 10 years ago.
patch

Download all attachments as: .zip

Change History (4)

by anonymous, 10 years ago

Attachment: boost-execinfo.patch added

patch

comment:1 by anonymous, 10 years ago

sorry, the inline patch got messed up. i attached it as a file.

comment:2 by viboes, 10 years ago

Component: Building Boostbuild
Owner: set to Vladimir Prus

comment:3 by Vladimir Prus, 10 years ago

Resolution: fixed
Status: newclosed

(In [82549]) Don't include wait.h on Linux.

The function we use are all supposed to be in sys/wait.h

Fixes #7847.

Note: See TracTickets for help on using tickets.