Opened 10 years ago
Last modified 10 years ago
#43825 closed defect
Undefined symbols for architecture x86_64 — at Initial Version
Reported by: | peter.skands@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | root5 |
Description
I'm using macports with the newest root port and gcc 4.8:
root5 @5.34.18_0+cocoa+gcc48+graphviz+gsl+minuit2+opengl+roofit+soversion+ssl+tmva+xml
"port install root5" works fine, and so does most running and linking of the included executables/libraries. But when linking the ROOT libraries to compile an executable that manipulates ROOT graphs, I get the following specific errors:
Undefined symbols for architecture x86_64:
"TAttMarker::SaveMarkerAttributes(std::basic_ostream<char, std::char_traits<char> >&, char const*, int, int, int)" "TGraphAsymmErrors::SavePrimitive(std::basic_ostream<char, std::char_traits<char> >&, char const*)" "TAttFill::SaveFillAttributes(std::basic_ostream<char, std::char_traits<char> >&, char const*, int, int)" "TAttLine::SaveLineAttributes(std::basic_ostream<char, std::char_traits<char> >&, char const*, int, int, int)"
ld: symbol(s) not found for architecture x86_64
Note: the ROOT libraries I am linking are the following:
-L/opt/local/lib/root5 -lCore -lCint -lGpad -lGraf -lHist -lMathCore -lMatrix -lRIO -lThread
I've been having this problem ever since I upgraded to OSX Mavericks, some months ago, and am posting it here since it looks like the 64-bit libraries installed by this port may be missing a few compiled functions defined in the headers. So far I haven't found any discussion of this particular issue elsewhere. My apologies if this is simply due to some stupidity on my part or an intrinsic ROOT problem, not specific to macports. Note that the code I compile successfully links a lot of other ROOT functionality; it is just these 4 functions that fail at link time.