Opened 10 years ago

Last modified 10 years ago

#43825 closed defect

Undefined symbols for architecture x86_64 — at Version 1

Reported by: peter.skands@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mattiafrancescomoro@…, jonesc@…
Port: root5

Description (last modified by neverpanic (Clemens Lang))

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.

Change History (1)

comment:1 Changed 10 years ago by neverpanic (Clemens Lang)

Cc: mattiafrancescomoro@… jonesc@… added
Description: modified (diff)

I think this is a C++ runtime library problem. Which compiler do you use to link your program? Which standard library is used? Which standard library is used by the root libs?

Please remember to preview your post and use WikiFormatting when posting in trac. Also make sure to Cc the maintainer, if any.

Note: See TracTickets for help on using tickets.