# Library problem when making TMVA in Mac OS X

**URL:** <https://root-forum.cern.ch/t/library-problem-when-making-tmva-in-mac-os-x/14126>\
**Category:** TMVA\
**Created:** [April 11, 2012, 9:55pm UTC](https://root-forum.cern.ch/t/library-problem-when-making-tmva-in-mac-os-x/14126 "2012-04-11T21:55:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nonnormalizable](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/nonnormalizable/32/11271_2.png) [@Nonnormalizable](https://root-forum.cern.ch/u/Nonnormalizable)\
**Post date:** [April 11, 2012, 9:55pm UTC](https://root-forum.cern.ch/t/library-problem-when-making-tmva-in-mac-os-x/14126/1 "2012-04-11T21:55:26Z")

</div>

Hello,

I’m trying to build TMVA in Mac OS X 10.7.3 according to the [how to](http://tmva.sourceforge.net/howto.shtml) with an installation of root 5.32/01 that I build from source. It gives the error

```auto
Building shared library lib/libTMVA.dylib ... ld: duplicate symbol TMVA::Configurable::Class_Name() in obj/TMVA_Dict1.o and obj/G__TMVA1.o for architecture x86_64
collect2: ld returned 1 exit status
make: *** [lib/libTMVA.dylib] Error 1
```

I guess this might be related to [this bug report](http://sourceforge.net/tracker/?func=detail&aid=3151825&group_id=152074&atid=783563), but adding “$(shell root-config --ldflags)” (which resolves to -m64) to that line in the Makefile has no effect for me. I’ve also tried sourcing the [setup.sh](http://setup.sh) file in tmva/test, but no luck.

Any help appreciated!

---

<div class="post-metadata">

**Author:** ![Nonnormalizable](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/nonnormalizable/32/11271_2.png) [@Nonnormalizable](https://root-forum.cern.ch/u/Nonnormalizable)\
**Post date:** [April 17, 2012, 9:36pm UTC](https://root-forum.cern.ch/t/library-problem-when-making-tmva-in-mac-os-x/14126/2 "2012-04-17T21:36:23Z")

</div>

[url=https://root-forum.cern.ch/t/tmva-and-building-on-a-mac/14134/4 resolution.[/url]
