Boost logo

Boost-Build :

From: Jürgen Hunold (hunold_at_[hidden])
Date: 2004-06-08 05:44:27


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Volodya !

On Tuesday 08 June 2004 07:58, Vladimir Prus wrote:
> Hi Jürgen,

> I believe I've fixed this problem just now.

Thanks.

But now I get the following message:

cd e:\develop\RailSys\
bjam msvc
XXX
e:/libraries/boost_cvs/tools/build/v2/build\virtual-target.jam:797: in
virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target: <p..\..
\libraries\flexlm\v9.2\i86_n3>lmgr_md.lib
previous virtual target { %.no-action-lmgr_md.STATIC_LIB }
another virtual target { %.no-action-lmgr_md.STATIC_LIB }

[full output attached]

This has been bothering me on linux for some time, but I didn't take the
time to write a bug report.

What happens here is the usage of MacroVisions FlexLm.

I have declared

# Build library-target for flexlm
lib flexlm : : <file>$(FLEXLM_ROOT)/i86_n3/lmgr_md.lib ;
alias flex : $(FLEXLM_ROOT)/i86_n3/lm_new.obj flexlm ;

and in
: requirements
# Uses Flexlm
<include>$(FLEXLM_ROOT)/machind
<library>/RailSys//flex
: usage-requirements
<include>$(FLEXLM_ROOT)/machind
<library>/RailSys//flex

This triggers 2 things:
1) First, this warning of duplicate target, because each library links
against flexlm (and the lm_new.obj file containing the encryption keys)
and then the exe is linked against flexlm, too.
Or my 3 spezial files which must be compiled with <optimizion>off
trigger this. I'm not quite sure about that.

2) The resulting link action for the exe target contains 1 occurence of
the flexlm library and lm_new.obj for _each_ V2-generated library.
This kills gcc because it can't link the same .o file twice and link.exe
at leads spills out a warning.

When you need a test case, I'll try to contruct one, but this migth
take some time

Yours,

Jürgen

- --
* Dipl.-Math. Jürgen Hunold ! Institut für Verkehrswesen, Eisenbahnbau
* voice: ++49 511 762-2529 ! und -betrieb, Universität Hannover
* fax : ++49 511 762-3001 ! Appelstrasse 9a, D-30167 Hannover
* hunold_at_[hidden] ! www.ive.uni-hannover.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAxZiLljbJ/LLrxrYRAhSQAKDRWa48dbDYM2Axe7jDFW9uY/8aCACbBv2J
Ow4aYs+a2n91xHm7w0NdK+4=
=G1lb
-----END PGP SIGNATURE-----
 --Boundary-00=_LiZxAsUymi7O2Ke Content-Type: text/plain;
charset="utf-8";
name="boost.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="boost.txt"

cd e:\develop\RailSys\
bjam msvc
XXX
e:/libraries/boost_cvs/tools/build/v2/build\virtual-target.jam:797: in virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target: <p..\..\libraries\flexlm\v9.2\i86_n3>lmgr_md.lib
previous virtual target { %.no-action-lmgr_md.STATIC_LIB }
another virtual target { %.no-action-lmgr_md.STATIC_LIB }
e:/libraries/boost_cvs/tools/build/v2/build\virtual-target.jam:175: in actualize-no-scanner from module object(file-target)@3
e:/libraries/boost_cvs/tools/build/v2/build\virtual-target.jam:110: in object(file-target)@3.actualize from module object(file-target)@3
e:/libraries/boost_cvs/tools/build/v2\build-system.jam:169: in load from module build-system
e:\libraries\boost_cvs\tools\build\v2\kernel\modules.jam:259: in import from module modules
e:\libraries\boost_cvs\tools\build\v2\kernel\bootstrap.jam:120: in boost-build from module
e:\develop\boost-build.jam:1: in module scope from module

Compilation exited abnormally with code 1 at Tue Jun 08 12:32:52
 --Boundary-00=_LiZxAsUymi7O2Ke--


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk