Opened 14 years ago
Closed 14 years ago
#2084 closed Bugs (fixed)
Boost trunk will not build on a NetBSD machine.
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | Boost 1.36.0 | Component: | config |
Version: | Boost Development Trunk | Severity: | Showstopper |
Keywords: | NetBSD installation | Cc: |
Description
There are at least two problems with boost-trunk that prevent it from building on a NetBSD machine. One (libdl need not be linked against) is already documented in ticket #2029, which still applies to the trunk. A patch for the other is attached. Like modern FreeBSD, NetBSD has support for wide characters.
Attachments (2)
Change History (6)
by , 14 years ago
comment:1 by , 14 years ago
Component: | build → config |
---|---|
Owner: | changed from | to
comment:2 by , 14 years ago
Status: | new → assigned |
---|
Hi there, do you know which NetBSD version introduced wide character support - in particular from which value of NetBSD does the change apply?
Thanks, John Maddock.
by , 14 years ago
Correct patch for bsd.hpp to account for the NetBSD version of gcc and a necessary (for now) macro definition.
comment:3 by , 14 years ago
I have added a new patch that works at least on a NetBSD/i386 system, but should work on others as well. The value of NetBSD is simply a boolean flag and is 1 for any NetBSD system. Thus, it cannot be used to detect the version of NetBSD. In this case, the issue is not about the version of NetBSD, but about the version of gcc. As far as I can tell from the gnu website, gcc 2.95.3 (which is the earliest one they describe) has wide character support, so I have chosen that as the condition. That version was imported into NetBSD many years ago, so it probably doesn't matter in practice that the conditional is more specific than just NetBSD.
More importantly, the boolean expression in the original patch was mistaken and this one adds a critical macro definition that unfortunately is not provided by the NetBSD version of gcc but is required to provide a std::swprintf declaration (required by Boost).
I believe this to be ready to commit, together with ticket:2029.
patch boost/config/platform/bsd.hpp for NetBSD wchar support