[MacPorts] #57601: ROOT6 headers broken

MacPorts noreply at macports.org
Wed Nov 14 12:07:07 UTC 2018


#57601: ROOT6 headers broken
--------------------+--------------------
 Reporter:  lpgaff  |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.5.4
 Keywords:          |       Port:  root6
--------------------+--------------------
 I am compiling my own code against the ROOT libraries and when it comes to
 building the dictionaries it fails with the error:


 {{{
 In file included from TreeBuilderDictionary.cc:12:
 /opt/local/libexec/root6/include/root/RConfig.h:22:10: fatal error:
 '../RVersion.h' file not found
 #include "../RVersion.h"
          ^~~~~~~~~~~~~~~
 1 error generated.
 make[1]: *** [TreeBuilderDictionary.o] Error 1
 make: *** [TreeBuilder] Error 2
 }}}


 The file at /opt/local/libexec/root6/include/root/RConfig.h is actually a
 link to the real file at
 /opt/local/libexec/root6/include/root/ROOT/RConfig.h. Hence, the include
 you see for RVersion.h goes up one directory. However, clang seems to take
 the location of the linked file, not the real file, so RConfig.h cannot be
 found.

 I can "fix" this by changing #include "../RVersion.h" to #include
 "RVersion.h" in the file
 /opt/local/libexec/root6/include/root/ROOT/RConfig.h, but this seems to be
 unsatisfactory.

 Can anybody find a better fix, or explain the reason that the compiler
 doesn't resolve the static link to RConfig.h, or infact why a static link
 is required at all?

 Cheers,
 Liam

-- 
Ticket URL: <https://trac.macports.org/ticket/57601>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list