Boost logo

Boost-Build :

Subject: Re: [Boost-build] Porting Boost 1.52.0 to OpenBSD "Duplicate name of actual target"
From: Lars Viklund (zao_at_[hidden])
Date: 2012-11-18 13:54:15

On Fri, Nov 16, 2012 at 01:27:42PM -0600, Amit Kulkarni wrote:
> Hello,
> I am trying to update the OpenBSD port, and I keep running into this
> problem. Can somebody please guess where the problem is? I read
> which
> discusses this "Duplicate name of actual target".

Your underlying cause is that the default choice for the --layout=
option is "system" on Unixy systems.

This option determines the amount of extra decoration that library
filenames are given, like -mt for threading=multi, -s for
runtime-link=static, and so on.

What you're asking is for two variants to be built, threading=single and
threading=multi, both which result in the exact same library filename
under your current choice of --layout.

You've got two possible solutions here:

a) use a fancier --layout flag, like versioned, but beware of all the
changes in library naming and include directory nesting that will cause;

b) stop using threading=single, unless you really know you need to
provide it.

As I can't really see any case where you'd have a ST runtime with all
the unusability that implies, I'd strongly recommend the b) solution.

> The Makefile used for compilation is at
> I get this error when I select threading=single,multi. If only
> threading=multi is selected, the compile is fine. Please which Jamfile
> or .jam should I fix to get this to produce both single and multi
> threaded libs? Any other things which are needed to diagnose please
> let me know and I will gladly post them.

Lars Viklund | zao_at_[hidden]

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at