Cannot compile root on macosx tiger

Hi guys

I have a a new operating system, tiger 10.4.2, that I want to use ROOT on. I get an error at the compilation stage which has me foxed.

I unpack root v4.02.00 into a directory
I set the ROOTSYS envirnoment variable
I run configre

When I make however it complains because it cannot find any of the dependancy files and craps out.

Example line from makefile output

Makefile:374: cint/src/auxu.d: No such file or directory

It has the same line for every single file as far as I can tell.

It then tries to make the depandcy files I think and has the following output

gcc -O2 -pipe -W -Wall -Wno-long-double -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -DINCLUDEDIR="/usr/include" -DOBJSUFFIX=".o" -o build/rmkdepend/main.o -c build/rmkdepend/main.c
build/rmkdepend/main.c:56: error: conflicting types for 'fchmod’
build/rmkdepend/main.c:56: note: an argument type that has a default promotion can’t match an empty parameter name list declaration
/usr/include/sys/stat.h:341: error: previous declaration of ‘fchmod’ was here
make: *** [build/rmkdepend/main.o] Error 1

I am a bit surprised because the file is a system file for Tiger, yet other people have been able to compile for tiger and have not complained about this problem.

Any help or suggestions would be appreciated.


I download root always from cvs to my PowerBook with 10.4.2.
Here are my steps:

cvs login
cvs -z3 checkout root
cd root
export ROOTSYS=/Users/christian/ROOT/root
export PATH=$ROOTSYS/bin:$PATH

This works for me all the time.

I assume that you have installed Apple’s X11.

Good luck

Sorry, it should be:

./configure macosx


Thanks Christian

I discovered the following:

ROOT v4.02.00 will not compile.
ROOT v4.04.00 will compile, but I had to disable asimage in the configure and build the freetype module manually to get it to do so. I do not know what the asimage stuff is all about, so if disabling it is bad I am ina mess.

Thanks for your comments, they were useful. I am usingthe cvs copy of 5 to get that going as I type.


With the cvs version I have no problems: both asimage and freetype will
be built automatically. BTW, asimage is only necessary for images, see
e.g. macro galaxy_image.C

Good luck