Boost C++ Libraries: Ticket #2437: regex library build failure on FreeBSD machines https://svn.boost.org/trac10/ticket/2437 <p> In boost/libs/regex/build/Jamfile.v2, if ICU is installed in /usr/local/include we fail to set the BOOST_REGEX_ICU_OPTS and ICU_SEARCH_OPTS which breaks the build. The above code is assuming gcc will look at /usr/local/include and /usr/local/lib as during compilation which is NOT true at least on FreeBSD. </p> <p> I've suggested to remove the /usr/local/include but it seems this may break some Linux builds. Instead the following patch will allow regex lib to build properly: </p> <p> --- Jamfile.v2 2008-10-26 12:28:06.000000000 -0400 +++ Jamfile.v2.patch 2008-10-26 12:26:57.000000000 -0400 @@ -185,6 +185,7 @@ </p> <blockquote> <p> if $(gHAS_ICU) { </p> <blockquote> <p> BOOST_REGEX_ICU_OPTS = "&lt;target-os&gt;freebsd:&lt;include&gt;/usr/local/include" ; </p> </blockquote> </blockquote> <p> + ICU_SEARCH_OPTS = "&lt;target-os&gt;freebsd:&lt;search&gt;/$(ICU_PATH)/lib" ; </p> <blockquote> <p> BOOST_REGEX_ICU_OPTS += "&lt;define&gt;BOOST_HAS_ICU=1" ; </p> </blockquote> <p> </p> <blockquote> <p> if $(ICU_PATH) </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2437 Trac 1.4.3 Steven Watanabe Thu, 08 Jan 2009 03:33:36 GMT component changed; owner set https://svn.boost.org/trac10/ticket/2437#comment:1 https://svn.boost.org/trac10/ticket/2437#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">regex</span> </li> </ul> Ticket John Maddock Thu, 08 Jan 2009 09:58:48 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2437#comment:2 https://svn.boost.org/trac10/ticket/2437#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/50510" title="Fixes #2437.">[50510]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2437" title="#2437: Bugs: regex library build failure on FreeBSD machines (closed: fixed)">#2437</a>. </p> Ticket