Hello-
I just built Root4 with Python enabled in Mac OSX 10.3. The build seems to have been completely successful (no errors or other problems) and I can run root, make plots, etc. All seems normal.
However I cannot successfully import ROOT in a Python script – i.e., “from ROOT import gROOT” fails. The error message shown below seems to indicate that I have not linked against all the needed libraries. What did I miss and how can I correct this?
Incidentally I was just trying to run the trivial example from the root.cern.ch/root/HowtoPyROOT.html page (“Running PyROOT from Python Interpreter”) when this failure occured.
Python 2.3.2 (#2, Oct 26 2003, 16:42:41)
[GCC 3.1 20020420 (prerelease)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
import ROOT
Traceback (most recent call last):
File “”, line 1, in ?
File “/Users/jima/root/lib/ROOT.py”, line 26, in ?
from libPyROOT import *
ImportError: Failure linking new module: : dyld: /Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/Contents/MacOS/python Undefined symbols:
_G__add_compiledheader
_G__add_setup_func
_G__call_setup_funcs
_G__check_setup_version
_G__defined_typename
_G__get_linked_tagnum
_G__getaryconstruct
_G__getgvp
_G__getsizep2memfunc
_G__getstructoffset
_G__int
_G__isanybase
_G__lastifuncposition
_G__letint
_G__memfunc_setup
_G__memvar_setup
_G__remove_setup_func
_G__resetglobalenv
_G__resetifuncposition
_G__res