ROOT 5.02 compilation under MacOS X 10.4.2 / Fink

Greetings,
it may be a particularity of my MacOS X / Fink installation, but I’ve been having trouble to compile ROOT 5.02 from source.

The error is in the asimage module, namely the compilation of libafterimage :

In file included from asfont.c:74:
asfont.h:192: error: parse error before 'FT_Face'
[...] and a lot of related errors

It seems that this can be backtraced to the Makefile of libafterimage generated during the compilation of ROOT :

macro INCS_EXTRA of file $ROOTINSTALLDIR/asimage/src/libAfterImage/Makefile (line 94 on my computer) :

INCS_EXTRA = -I/sw/include -I/sw/include -I/sw/include -I../../../freetype/src/freetype-2.1.9/include
I don’t know why the /sw/include directory is present three times, however the problem lies in the fact that it is written before …/…/…/freetype/src/freetype-2.1.9/include directory. As the headers of libfreetype1 are present in /sw/include, the headers of libfreetype2 don’t get included and ultimately causes the error.
Inverting the order of these two directories in the Makefile allows the compilation to proceed fine.

As I said, this problem might only happen on my particular configuration.

When I build ROOT 5.10.00 from source in Fink on OS X 10.4.6 with xcode 2.2.1, I get the same problem. The error output as the following. Hope to find a fix patch here.

[code]
*** Building asimage/src/libAfterImage/libAfterImage.a…
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ANSI C… none needed
checking whether ln -s works… yes
checking build system type… powerpc-apple-darwin8.6.0
checking host system type… powerpc-apple-darwin8.6.0
checking for a BSD-compatible install… /usr/bin/install -c
checking for ranlib… ranlib
checking for rm… /bin/rm
checking for mv… /bin/mv
checking for cp… /bin/cp
checking for mkdir… /bin/mkdir
checking for perl… /usr/bin/perl
checking for find… /usr/bin/find
checking for xargs… /usr/bin/xargs
checking for ldconfig… ldconfig
checking for MMX support… no
checking how to run the C preprocessor… gcc -E
checking for X… libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname… yes
checking for connect… yes
checking for remove… yes
checking for shmat… yes
checking for IceConnectionNumber in -lICE… yes
checking for XOpenDisplay in -lX11… yes
checking whether byte ordering is bigendian… yes
checking for inline… inline
checking for egrep… grep -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking for long long… yes
checking whether time.h and sys/time.h may both be included… yes
checking sys/wait.h usability… yes
checking sys/wait.h presence… yes
checking for sys/wait.h… yes
checking sys/time.h usability… yes
checking sys/time.h presence… yes
checking for sys/time.h… yes
checking malloc.h usability… no
checking malloc.h presence… no
checking for malloc.h… no
checking for stdlib.h… (cached) yes
checking for unistd.h… (cached) yes
checking stddef.h usability… yes
checking stddef.h presence… yes
checking for stddef.h… yes
checking stdarg.h usability… yes
checking stdarg.h presence… yes
checking for stdarg.h… yes
checking errno.h usability… yes
checking errno.h presence… yes
checking for errno.h… yes
checking for XShapeCombineMask in -lXext… yes
checking jpeglib.h usability… yes
checking jpeglib.h presence… yes
checking for jpeglib.h… yes
checking for unsigned char… yes
checking for unsigned short… yes
checking for an ANSI C-conforming const… yes
checking whether char is unsigned… no
checking zlib.h usability… yes
checking zlib.h presence… yes
checking for zlib.h… yes
checking png.h usability… yes
checking png.h presence… yes
checking for png.h… yes
checking for png_get_sRGB in png.h… yes
checking using built-in UNGIF library… yes
checking tiffio.h usability… yes
checking tiffio.h presence… yes
checking for tiffio.h… yes
checking headers required by TTF support… -I/usr/X11R6/include/freetype2
checking ft2build.h usability… yes
checking ft2build.h presence… no
configure: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: ft2build.h: proceeding with the compiler’s result
checking for ft2build.h… yes
checking freetype/freetype.h … yes
checking libAfterBase headers… disabled
checking for dirent.h that defines DIR… yes
checking for library containing opendir… none required
checking sys/dirent.h usability… yes
checking sys/dirent.h presence… yes
checking for sys/dirent.h… yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating afterbase.h
config.status: creating afterimage-libs
config.status: creating afterimage-config
config.status: creating config.h
gcc -O3 -DNO_DEBUG_OUTPUT -fPIC -I/sw/include -I/sw/include -I/sw/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -c libungif/dgif_lib.c -o libungif/dgif_lib.o
gcc -O3 -DNO_DEBUG_OUTPUT -fPIC -I/sw/include -I/sw/include -I/sw/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -c libungif/egif_lib.c -o libungif/egif_lib.o
gcc -O3 -DNO_DEBUG_OUTPUT -fPIC -I/sw/include -I/sw/include -I/sw/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -c libungif/gifalloc.c -o libungif/gifalloc.o
gcc -O3 -DNO_DEBUG_OUTPUT -fPIC -I/sw/include -I/sw/include -I/sw/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -c libungif/gif_err.c -o libungif/gif_err.o
gcc -O3 -DNO_DEBUG_OUTPUT -fPIC -I/sw/include -I/sw/include -I/sw/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -c afterbase.c -o afterbase.ogcc -O3 -DNO_DEBUG_OUTPUT -fPIC -I/sw/include -I/sw/include -I/sw/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -c asimage.c -o asimage.o
gcc -O3 -DNO_DEBUG_OUTPUT -fPIC -I/sw/include -I/sw/include -I/sw/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -c ascmap.c -o ascmap.o
gcc -O3 -DNO_DEBUG_OUTPUT -fPIC -I/sw/include -I/sw/include -I/sw/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -c asfont.c -o asfont.o
In file included from asfont.c:74:
asfont.h:192: error: parse error before 'FT_Face’
asfont.h:192: warning: no semicolon at end of struct or union
asfont.h:200: error: parse error before ‘}’ token
asfont.h:200: warning: data definition has no type or storage class
asfont.h:229: error: parse error before 'FT_Library’
asfont.h:229: warning: no semicolon at end of struct or union
asfont.h:233: warning: data definition has no type or storage class
asfont.h:440: error: parse error before ‘’ token
asfont.h:577: error: parse error before '
’ token
asfont.h:578: error: parse error before ‘’ token
asfont.c:95: error: parse error before '
’ token
asfont.c:96: error: parse error before 'ASFontManager’
asfont.c:97: error: conflicting types for 'create_font_manager’
asfont.h:332: error: previous declaration of ‘create_font_manager’ was here
asfont.c: In function ‘create_font_manager’:
asfont.c:98: error: ‘fontman’ undeclared (first use in this function)
asfont.c:98: error: (Each undeclared identifier is reported only once
asfont.c:98: error: for each function it appears in.)
asfont.c:98: error: ‘reusable_memory’ undeclared (first use in this function)
asfont.c:105: error: ‘font_path’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:122: error: parse error before ‘’ token
asfont.c: In function ‘destroy_font_manager’:
asfont.c:123: error: number of arguments doesn’t match prototype
asfont.h:333: error: prototype declaration
asfont.c:124: error: ‘fontman’ undeclared (first use in this function)
asfont.c:136: error: ‘reusable’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:144: error: parse error before '
’ token
asfont.c:147: error: parse error before 'ASFont’
asfont.c:151: error: parse error before ‘’ token
asfont.c:152: error: parse error before '
’ token
asfont.c: In function ‘open_freetype_font_int’:
asfont.c:154: error: ‘font’ undeclared (first use in this function)
asfont.c:156: error: ‘fontman’ undeclared (first use in this function)
asfont.c:159: error: ‘FT_Face’ undeclared (first use in this function)
asfont.c:159: error: parse error before 'face’
asfont.c:161: error: ‘font_string’ undeclared (first use in this function)
asfont.c:171: error: ‘face_no’ undeclared (first use in this function)
asfont.c:183: error: ‘face’ undeclared (first use in this function)
asfont.c:208: error: ‘flags’ undeclared (first use in this function)
asfont.c:211: error: ‘size’ undeclared (first use in this function)
asfont.c:216: error: ‘verbose’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:227: error: parse error before ‘’ token
asfont.c:228: error: parse error before '
’ token
asfont.c:229: error: conflicting types for 'open_freetype_font’
asfont.h:437: error: previous declaration of ‘open_freetype_font’ was here
asfont.c: In function ‘open_freetype_font’:
asfont.c:230: error: ‘fontman’ undeclared (first use in this function)
asfont.c:230: error: ‘font_string’ undeclared (first use in this function)
asfont.c:230: error: ‘face_no’ undeclared (first use in this function)
asfont.c:230: error: ‘size’ undeclared (first use in this function)
asfont.c:230: error: ‘verbose’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:233: error: parse error before ‘’ token
asfont.c:234: error: parse error before '
’ token
asfont.c: In function ‘open_X11_font_int’:
asfont.c:236: error: ‘font’ undeclared (first use in this function)
asfont.c:246: error: ‘fontman’ undeclared (first use in this function)
asfont.c:248: error: ‘font_string’ undeclared (first use in this function)
asfont.c:257: error: ‘flags’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:264: error: parse error before ‘’ token
asfont.c:265: error: parse error before '
’ token
asfont.c:266: error: conflicting types for 'open_X11_font’
asfont.h:438: error: previous declaration of ‘open_X11_font’ was here
asfont.c: In function ‘open_X11_font’:
asfont.c:267: error: ‘fontman’ undeclared (first use in this function)
asfont.c:267: error: ‘font_string’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:270: error: parse error before ‘’ token
asfont.c:271: error: parse error before '
’ token
asfont.c:272: error: conflicting types for 'get_asfont’
asfont.h:439: error: previous declaration of ‘get_asfont’ was here
asfont.c: In function ‘get_asfont’:
asfont.c:273: error: ‘font’ undeclared (first use in this function)
asfont.c:275: error: ‘type_and_flags’ undeclared (first use in this function)
asfont.c:276: error: ‘face_no’ undeclared (first use in this function)
asfont.c:278: error: ‘size’ undeclared (first use in this function)
asfont.c:281: error: ‘fontman’ undeclared (first use in this function)
asfont.c:281: error: ‘font_string’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:325: error: parse error before ‘’ token
asfont.c:326: error: parse error before '
’ token
asfont.c:327: error: conflicting types for 'dup_asfont’
asfont.h:440: error: previous declaration of ‘dup_asfont’ was here
asfont.c: In function ‘dup_asfont’:
asfont.c:328: error: ‘font’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:336: error: parse error before ‘’ token
asfont.c: In function ‘release_font’:
asfont.c:337: error: number of arguments doesn’t match prototype
asfont.h:441: error: prototype declaration
asfont.c:339: error: ‘font’ undeclared (first use in this function)
asfont.c:345: error: ‘fontman’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:393: error: parse error before '
’ token
asfont.c: In function ‘destroy_font’:
asfont.c:395: error: ‘font’ undeclared (first use in this function)
asfont.c: In function ‘asfont_destroy’:
asfont.c:431: error: parse error before ‘)’ token
asfont.c:434: error: parse error before ‘)’ token
asfont.c: At top level:
asfont.c:724: error: parse error before 'ASFont’
asfont.c: In function ‘load_X11_glyph_range’:
asfont.c:730: error: ‘byte1’ undeclared (first use in this function)
asfont.c:730: error: ‘min_byte2’ undeclared (first use in this function)
asfont.c:732: error: ‘xfs’ undeclared (first use in this function)
asfont.c:737: error: ‘max_byte2’ undeclared (first use in this function)
asfont.c:737: error: ‘char_offset’ undeclared (first use in this function)
asfont.c:761: error: ‘gc’ undeclared (first use in this function)
asfont.c:813: error: ‘font’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:875: error: parse error before ‘’ token
asfont.c: In function ‘make_X11_default_glyph’:
asfont.c:883: error: ‘xfs’ undeclared (first use in this function)
asfont.c:900: error: ‘font’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:913: error: parse error before 'ASFont’
asfont.c: In function ‘load_X11_glyphs’:
asfont.c:916: error: ‘font’ undeclared (first use in this function)
asfont.c:916: error: ‘xfs’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:992: error: parse error before '
’ token
asfont.c: In function ‘load_glyph_freetype’:
asfont.c:994: error: nested functions are not on MacOSX
asfont.c:994: error: syntax error before 'face’
asfont.c:998: error: ‘font’ undeclared (first use in this function)
asfont.c:1015: error: ‘face’ undeclared (first use in this function)
asfont.c:1016: error: ‘glyph’ undeclared (first use in this function)
asfont.c:1016: error: ‘FT_LOAD_DEFAULT’ undeclared (first use in this function)
asfont.c:1019: error: ‘ft_render_mode_normal’ undeclared (first use in this function)
asfont.c:1024: error: ‘FT_Bitmap’ undeclared (first use in this function)
asfont.c:1024: error: ‘bmap’ undeclared (first use in this function)
asfont.c:1029: error: ‘asg’ undeclared (first use in this function)
asfont.c:1032: error: ‘uc’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1119: error: parse error before 'FT_Face’
asfont.c: In function ‘split_freetype_glyph_range’:
asfont.c:1123: error: ‘min_char’ undeclared (first use in this function)
asfont.c:1123: error: ‘max_char’ undeclared (first use in this function)
asfont.c:1126: error: ‘face’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1142: error: parse error before ‘’ token
asfont.c: In function ‘load_freetype_locale_glyph’:
asfont.c:1145: error: ‘font’ undeclared (first use in this function)
asfont.c:1145: error: ‘uc’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1171: error: parse error before 'ASFont’
asfont.c: In function ‘load_freetype_locale_glyphs’:
asfont.c:1173: error: ‘min_char’ undeclared (first use in this function)
asfont.c:1175: error: ‘font’ undeclared (first use in this function)
asfont.c:1177: error: ‘max_char’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1187: error: parse error before '
’ token
asfont.c: In function ‘load_freetype_glyphs’:
asfont.c:1195: error: ‘font’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1250: error: parse error before 'ASFont’
asfont.c: In function ‘get_unicode_glyph’:
asfont.c:1255: error: ‘font’ undeclared (first use in this function)
asfont.c:1259: error: ‘uc’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1281: error: parse error before 'ASFont’
asfont.c: In function ‘get_character_glyph’:
asfont.c:1283: error: ‘c’ undeclared (first use in this function)
asfont.c:1283: error: ‘font’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1349: error: parse error before 'ASFont’
asfont.c: In function ‘get_utf8_glyph’:
asfont.c:1351: error: ‘utf8’ undeclared (first use in this function)
asfont.c:1352: error: ‘font’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1477: error: parse error before 'ASFont’
asfont.c: In function ‘fill_text_glyph_map_Char’:
asfont.c:1477: error: ‘text’ undeclared (first use in this function)
asfont.c:1477: error: ‘map’ undeclared (first use in this function)
asfont.c:1477: error: ‘space_size’ undeclared (first use in this function)
asfont.c:1477: error: ‘attr’ undeclared (first use in this function)
asfont.c:1477: error: ‘font’ undeclared (first use in this function)
asfont.c:1477: error: ‘offset_3d_x’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1478: error: parse error before 'ASFont’
asfont.c: In function ‘fill_text_glyph_map_Unicode’:
asfont.c:1478: error: ‘text’ undeclared (first use in this function)
asfont.c:1478: error: ‘map’ undeclared (first use in this function)
asfont.c:1478: error: ‘space_size’ undeclared (first use in this function)
asfont.c:1478: error: ‘attr’ undeclared (first use in this function)
asfont.c:1478: error: ‘font’ undeclared (first use in this function)
asfont.c:1478: error: ‘offset_3d_x’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1480: error: parse error before 'ASFont’
asfont.c: In function ‘fill_text_glyph_map_UTF8’:
asfont.c:1480: error: ‘text’ undeclared (first use in this function)
asfont.c:1480: error: ‘map’ undeclared (first use in this function)
asfont.c:1480: error: ‘space_size’ undeclared (first use in this function)
asfont.c:1480: error: ‘attr’ undeclared (first use in this function)
asfont.c:1480: error: ‘font’ undeclared (first use in this function)
asfont.c:1480: error: ‘offset_3d_x’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1495: error: parse error before 'ASFont’
asfont.c: In function ‘get_text_glyph_map’:
asfont.c:1501: error: ‘attr’ undeclared (first use in this function)
asfont.c:1503: error: ‘text’ undeclared (first use in this function)
asfont.c:1503: error: ‘font’ undeclared (first use in this function)
asfont.c:1503: error: ‘map’ undeclared (first use in this function)
asfont.c:1515: error: ‘length’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1588: error: parse error before 'ASFont’
asfont.c: In function ‘get_text_size_internal’:
asfont.c:1597: error: ‘attr’ undeclared (first use in this function)
asfont.c:1598: error: ‘src_text’ undeclared (first use in this function)
asfont.c:1598: error: ‘font’ undeclared (first use in this function)
asfont.c:1615: error: ‘length’ undeclared (first use in this function)
asfont.c:1615: error: ‘x_positions’ undeclared (first use in this function)
asfont.c:1637: error: ‘width’ undeclared (first use in this function)
asfont.c:1639: error: ‘height’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1645: error: parse error before 'ASFont’
asfont.c: In function ‘get_text_size’:
asfont.c:1646: error: number of arguments doesn’t match prototype
asfont.h:534: error: prototype declaration
asfont.c:1648: error: ‘type’ undeclared (first use in this function)
asfont.c:1651: error: ‘src_text’ undeclared (first use in this function)
asfont.c:1651: error: ‘font’ undeclared (first use in this function)
asfont.c:1651: error: ‘width’ undeclared (first use in this function)
asfont.c:1651: error: ‘height’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1655: error: parse error before 'ASFont’
asfont.c: In function ‘get_unicode_text_size’:
asfont.c:1656: error: number of arguments doesn’t match prototype
asfont.h:540: error: prototype declaration
asfont.c:1658: error: ‘type’ undeclared (first use in this function)
asfont.c:1659: error: ‘src_text’ undeclared (first use in this function)
asfont.c:1659: error: ‘font’ undeclared (first use in this function)
asfont.c:1659: error: ‘width’ undeclared (first use in this function)
asfont.c:1659: error: ‘height’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1663: error: parse error before 'ASFont’
asfont.c: In function ‘get_utf8_text_size’:
asfont.c:1664: error: number of arguments doesn’t match prototype
asfont.h:537: error: prototype declaration
asfont.c:1666: error: ‘type’ undeclared (first use in this function)
asfont.c:1667: error: ‘src_text’ undeclared (first use in this function)
asfont.c:1667: error: ‘font’ undeclared (first use in this function)
asfont.c:1667: error: ‘width’ undeclared (first use in this function)
asfont.c:1667: error: ‘height’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1671: error: parse error before 'ASFont’
asfont.c: In function ‘get_fancy_text_size’:
asfont.c:1672: error: number of arguments doesn’t match prototype
asfont.h:546: error: prototype declaration
asfont.c:1674: error: ‘attr’ undeclared (first use in this function)
asfont.c:1685: error: ‘src_text’ undeclared (first use in this function)
asfont.c:1685: error: ‘font’ undeclared (first use in this function)
asfont.c:1685: error: ‘width’ undeclared (first use in this function)
asfont.c:1685: error: ‘height’ undeclared (first use in this function)
asfont.c:1685: error: ‘length’ undeclared (first use in this function)
asfont.c:1685: error: ‘x_positions’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1771: error: parse error before 'ASFont’
asfont.c: In function ‘draw_text_internal’:
asfont.c:1785: error: ‘text’ undeclared (first use in this function)
asfont.c:1785: error: ‘font’ undeclared (first use in this function)
asfont.c:1785: error: ‘attr’ undeclared (first use in this function)
asfont.c:1785: error: ‘length’ undeclared (first use in this function)
asfont.c:1798: error: ‘compression’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:1990: error: parse error before 'ASFont’
asfont.c: In function ‘draw_text’:
asfont.c:1991: error: number of arguments doesn’t match prototype
asfont.h:516: error: prototype declaration
asfont.c:1993: error: ‘type’ undeclared (first use in this function)
asfont.c:1996: error: ‘text’ undeclared (first use in this function)
asfont.c:1996: error: ‘font’ undeclared (first use in this function)
asfont.c:1996: error: ‘compression’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:2000: error: parse error before 'ASFont’
asfont.c: In function ‘draw_unicode_text’:
asfont.c:2001: error: number of arguments doesn’t match prototype
asfont.h:522: error: prototype declaration
asfont.c:2003: error: ‘type’ undeclared (first use in this function)
asfont.c:2004: error: ‘text’ undeclared (first use in this function)
asfont.c:2004: error: ‘font’ undeclared (first use in this function)
asfont.c:2004: error: ‘compression’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:2008: error: parse error before 'ASFont’
asfont.c: In function ‘draw_utf8_text’:
asfont.c:2009: error: number of arguments doesn’t match prototype
asfont.h:519: error: prototype declaration
asfont.c:2011: error: ‘type’ undeclared (first use in this function)
asfont.c:2012: error: ‘text’ undeclared (first use in this function)
asfont.c:2012: error: ‘font’ undeclared (first use in this function)
asfont.c:2012: error: ‘compression’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:2016: error: parse error before 'ASFont’
asfont.c: In function ‘draw_fancy_text’:
asfont.c:2017: error: number of arguments doesn’t match prototype
asfont.h:530: error: prototype declaration
asfont.c:2019: error: ‘attr’ undeclared (first use in this function)
asfont.c:2030: error: ‘text’ undeclared (first use in this function)
asfont.c:2030: error: ‘font’ undeclared (first use in this function)
asfont.c:2030: error: ‘compression’ undeclared (first use in this function)
asfont.c:2030: error: ‘length’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:2033: error: parse error before ‘’ token
asfont.c: In function ‘get_asfont_glyph_spacing’:
asfont.c:2035: error: ‘font’ undeclared (first use in this function)
asfont.c:2037: error: ‘x’ undeclared (first use in this function)
asfont.c:2039: error: ‘y’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:2046: error: parse error before '
’ token
asfont.c: In function ‘set_asfont_glyph_spacing’:
asfont.c:2048: error: ‘font’ undeclared (first use in this function)
asfont.c:2050: error: ‘x’ undeclared (first use in this function)
asfont.c:2051: error: ‘y’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:2058: error: parse error before 'ASFont’
asfont.c: In function ‘print_asfont’:
asfont.c:2059: error: number of arguments doesn’t match prototype
asfont.h:468: error: prototype declaration
asfont.c:2060: error: ‘font’ undeclared (first use in this function)
asfont.c:2062: error: ‘stream’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:2076: error: parse error before 'ASFont’
asfont.c: In function ‘print_asglyph’:
asfont.c:2077: error: number of arguments doesn’t match prototype
asfont.h:469: error: prototype declaration
asfont.c:2078: error: ‘font’ undeclared (first use in this function)
asfont.c:2081: error: ‘c’ undeclared (first use in this function)
asfont.c:2085: error: ‘stream’ undeclared (first use in this function)
asfont.c: At top level:
asfont.c:2120: error: parse error before 'ASFont’
make[1]: *** [asfont.o] Error 1
make: *** [asimage/src/libAfterImage/libAfterImage.a] Error 2

execution of make failed, exit code 2

Removing build lock…
/sw/bin/dpkg-lockwait -r fink-buildlock-root5-cernlib-5.10.00a-51
(Reading database … 95838 files and directories currently installed.)
Removing fink-buildlock-root5-cernlib-5.10.00a-51 …
Failed: phase compiling: root5-cernlib-5.10.00a-51 failed


[/code][/code]

Which version are you installing?
Could you try with the CVS head?

Rene

[quote=“brun”]Which version are you installing?
Could you try with the CVS head?

Rene[/quote]

5.10.00
I just use “fink install root5-shlibs” to install the root. It should be the one included in fink.
Anyway, it is OK to use “apt-get install root5-shlibs” in OS X 10.4.6 with fink.