Mac OS X 10.9 / macport - compile issue

Dear Rooters,

I tried to get root 5.34.14 compiled under Mac OS X 10.9 / macport 2.2.1.

I called configure: ‘./configure --enable-minuit2’, which runs through fine. Afterwards I called ‘make’ and after a while I get the following error message

clang++ -O2 -m64 -pipe -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude    -stdlib=libc++  -pthread -I/opt/local/include/freetype2 -o graf2d/graf/src/TMathText.o -c /opt/cern/root-5.34.14/graf2d/graf/src/TMathText.cxx
In file included from /opt/cern/root-5.34.14/graf2d/graf/src/TMathText.cxx:15:
include/TTF.h:51:4: error: unknown type name 'FT_Glyph'; did you mean 'FTGlyph'?
   FT_Glyph   fImage; // glyph image
   ^~~~~~~~
   FTGlyph
include/ftglyph.h:25:19: note: 'FTGlyph' declared here
class FTGL_EXPORT FTGlyph
                  ^
In file included from /opt/cern/root-5.34.14/graf2d/graf/src/TMathText.cxx:15:
include/TTF.h:51:15: error: field type 'FTGlyph' is an abstract class
   FT_Glyph   fImage; // glyph image
              ^
include/ftglyph.h:49:32: note: unimplemented pure virtual method 'Render' in
      'FTGlyph'
        virtual const FTPoint& Render( const FTPoint& pen) = 0;
                               ^
2 errors generated.
make: *** [graf2d/graf/src/TMathText.o] Error 1

What do I miss?

You missed nothing. That’s an annoying change in the directory structure of in freetype 2.5.2 (which is the default for Macport) combined with the fact that on Mac the file names are not case sensitive. I am trying to find a solution.

The only way to bypass it now is to install root with the local freetype by doing:

configure --enable-builtin-freetype

This is now fixed (in 5.34 and trunk) by not exposing the figl include files in $ROOTSYS/include.