Error building TMVA 4.0.1 on Mac OS X 10.6.3

I tried building TMVA on my macbook in the following way, and got an error:

$ svn co https://tmva.svn.sourceforge.net/svnroot/tmva/tags/V04-00-01/TMVA TMVA-4.0.1 ... $ cd TMVA-4.0.1/src/ $ make Building Volume.d ... Done Building VariableTransformBase.d ... Done ... Compiling Volume.cxx ... Done Generating dictionary TMVA_Dict.C Compiling dictionary TMVA_Dict.C Building shared library ../lib/libTMVA.dylib ... ld: can't use -undefined warning or suppress with -twolevel_namespace collect2: ld returned 1 exit status make: *** [../lib/libTMVA.dylib] Error 1
What can I do to fix this?

Hi,

Note that you may have an easier time using the release of TMVA included with the release of ROOT you have. For example the trunk of ROOT has a newer release of TMVA (4.0.4).

Cheers,
Philippe.