X11 problem with root in MAC 10.7.2

Hi,

No it won’t compile:

Running /Users/markhodgkinson/root_v34_Source/cint/ROOT/configcint.mk
Making cint/cint/inc/configcint.h
bin/rmkdepend -R -fcint/cint/src/g__cfunc.d -Y -w 1000 – -m64 -pipe -W -Wall -fsigned-char -fno-common -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__ROOT -DG__REDIRECTIO -DG__OSFDLL -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -I/Users/markhodgkinson/root_v34_Source/cint/cint/inc -I/Users/markhodgkinson/root_v34_Source/cint/cint/src -I/Users/markhodgkinson/root_v34_Source/cint/cint/src/dict -pthread -I. – /Users/markhodgkinson/root_v34_Source/cint/cint/src/g__cfunc.c
clang -O2 -m64 -pipe -W -Wall -fsigned-char -fno-common -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__ROOT -DG__REDIRECTIO -DG__OSFDLL -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -I/Users/markhodgkinson/root_v34_Source/cint/cint/inc -I/Users/markhodgkinson/root_v34_Source/cint/cint/src -I/Users/markhodgkinson/root_v34_Source/cint/cint/src/dict -pthread -I. -o cint/cint/src/g__cfunc.o -c /Users/markhodgkinson/root_v34_Source/cint/cint/src/g__cfunc.c
In file included from /Users/markhodgkinson/root_v34_Source/cint/cint/src/g__cfunc.c:38:
In file included from /Users/markhodgkinson/root_v34_Source/cint/cint/src/common.h:43:
In file included from include/G__ci.h:1621:
include/G__ci_fproto.h:19:19: error: token is not a valid binary operator in a preprocessor subexpression

if __has_warning("-Wreturn-type-c-linkage")

Should I do something in addition to ./configure before running make?

Cheers,

Mark

I just saw that problem with 5.34 as well. This post ([url]Issue compiling trunk in Mac OS X instructs you to update Xcode. I did, and now I’m doing fine with 5.34. Your X11 issues may pop up again, though.

Hi,

hmm I went into Xcode preferences and downloads tab. Clicking “check and install now” it installs some library updates.

Opening a terminal though I still have clang++ 3.0, and get the same errors as before compiling ROOT. Do you know what else I need to do?

Cheers,

Mark

Check which clang++ you’re using, is it the new Xcode one in /usr/bin?

mark-hodgkinsons-macbook:~ markhodgkinson$ which clang++
/usr/bin/clang++

For xcode I can see some stuff:

mark-hodgkinsons-macbook:~ markhodgkinson$ ls /usr/bin/xc
xcman xcode-select xcodebuild xcodeindex xcrun

but these do not look new:

mark-hodgkinsons-macbook:~ markhodgkinson$ ls -lt /usr/bin/xcodebuild
-rwxr-xr-x 1 root wheel 1086 7 Feb 11:07 /usr/bin/xcodebuild

mark-hodgkinsons-macbook:~ markhodgkinson$ ls -lt /usr/bin/xcodeindex
-rwxr-xr-x 1 root wheel 1086 3 Nov 2011 /usr/bin/xcodeindex

so whatever was installed either does not have the name Xcode* in this area or lives somewhere else?

Cheers,

Mark

Hi Mark,

this are shell scripts that probably did not change between xcode releases.

Cheers, Fons.

Hi,

Thanks for the many suggestions everyone.

Eventually I found out why my TBrowser was freezing - my antivirus software (Sophos) was thrashing the disk which really degraded performance, apparently enough I could not use a TBrowser for long. Adjusting the settings to avoid scanning certain folders which cause the problem in latest OS X appears to not just fixed this, but hugely improved my macbooks performance all around :slight_smile:

Cheers,

Mark