Boost logo

Boost Testing :

Subject: Re: [Boost-testing] iconv library on Sandia-Darwin
From: Belcourt, Kenneth (kbelco_at_[hidden])
Date: 2011-07-26 14:33:21


On Jul 26, 2011, at 12:19 PM, Artyom Beilis wrote:

> --- On Tue, 7/26/11, Belcourt, Kenneth <kbelco_at_[hidden]> wrote:
>
>> From: Belcourt, Kenneth <kbelco_at_[hidden]>
>>
>>> with g++ test.cpp -liconv
>>
>> Yes, this works with default g++ on Snow Leopard (4.2.1).
>>
>> It does indeed fail with the compiler I use for nightly
>> testing (/opt/local/bin/g++-mp-4.4). This compiler
>> generates a different symbol that the installed compiler.
>
> That means that you have multiple versions of iconv or at
> least iconv.h installed.
>
> - GNU iconv uses libiconv_open symbol
> - Mac OS X iconv that I think comes with 10.6.x uses iconv_open.
>
> Now I think one of the possible ways to resolve it is to specify
> include directories.
>
> g++-what-ever-versions -I /path/to/iconv/include -L /path/to/iconv/lib -liconv
>
> If one of the /path/to/iconv works you should provide
> an option to bjam -sICONV_PATH=/path/to/iconv so the build
> system would use the correct one.

Okay, I just added -sICONV_PATH=/opt/local as it seems this version of iconv works okay if both the include and library from this directory are used. I added this option to the Sandia-darwin-4.4 and 4.4_0x builds. Let's see how they do tonight.

Thanks for your patience Artyom.

-- Noel


Boost-testing list run by mbergal at meta-comm.com