Opened 14 years ago

Closed 14 years ago

#2437 closed Bugs (fixed)

regex library build failure on FreeBSD machines

Reported by: pisymbol@… Owned by: John Maddock
Milestone: Boost 1.37.0 Component: regex
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

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.

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:

--- 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 @@

if $(gHAS_ICU) {

BOOST_REGEX_ICU_OPTS = "<target-os>freebsd:<include>/usr/local/include" ;

+ ICU_SEARCH_OPTS = "<target-os>freebsd:<search>/$(ICU_PATH)/lib" ;

BOOST_REGEX_ICU_OPTS += "<define>BOOST_HAS_ICU=1" ;

if $(ICU_PATH)

Change History (2)

comment:1 by Steven Watanabe, 14 years ago

Component: Building Boostregex
Owner: set to John Maddock

comment:2 by John Maddock, 14 years ago

Resolution: fixed
Status: newclosed

(In [50510]) Fixes #2437.

Note: See TracTickets for help on using tickets.