Dear Root Talk,
I used Fink in order to install cernlib2005 and cernlib2005-dev. Yet when I compile ROOT 5.12 h2root is not created, even though the output from .configure is
Enabled support for asimage, astiff, builtin_afterimage, builtin_freetype, builtin_pcre, builtin_zlib, cern, cintex, exceptions, krb5, ldap, mathcore, odbc, opengl, pch, python, reflex, shared, ssl, thread, xml, xrootd.
I followed the other two posts about this problem (here and here ) but to no avail.
Any thoughts?
Mac OS X 10.4.7 (PPC)
pcanal
July 19, 2006, 6:05pm
2
Is there any error messages?
Philippe
Thanks for the prompt reply.
Not that I can see, perhaps I missed something though…
I have attached the entire output of the compilation.
Compilation.txt (22.9 KB)
pcanal
July 19, 2006, 6:35pm
4
What is the result ofgrep BUILDHBOOK config/Makefile.config
andgmake bin/h2root
Cheers,
Philippe.
Superior:root_512$ grep BUILDHBOOK config/Makefile.config
BUILDHBOOK := yes
Superior:root_512$ gnumake bin/h2root
g++ -O2 -bind_at_load -o bin/h2root main/src/h2root.o
-Llib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix
-L/sw/./lib -L/sw/./lib -lpacklib -lkernlib
-L/sw/lib/gcc4/lib -lgfortran -lgfortranbegin -L/sw/lib -lg2c -lm -lpthread -ldl
/usr/bin/ld: warning -L: directory name (/sw/lib/gcc4/lib) does not exist
/usr/bin/ld: can’t locate file for: -lgfortran
collect2: ld returned 1 exit status
I am fixing the problem right now about the missing directory. I didn’t realize one needed to also install gcc4 for Fink even though Darwin already has it.
Hopefully this will solve the problem
Thanks
Couple of hours later…
It worked!
Although I now get this error message:
h2root myHistogram.hbook
(25811) malloc: *** Deallocation of a pointer not malloced: 0xa4ab2d8c; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
…
repeats several hundred times
…
TFile** myHistogram.root HBOOK file: myHistogram.hbook converted to ROOT
TFile* myHistogram.root HBOOK file: myHistogram.hbook converted to ROOT
KEY: TH1F h1;1 MC reco abs mtm difference
KEY: TH1F h2;1 Reco track momentum
KEY: TH1F h4;1 TagInspector Status
KEY: TH1F h3;1 Tracks per Event
The root file is created and it looks fine.
Here is where you can download the hbook.
Thanks for the help
pcanal
July 20, 2006, 8:42pm
7
humm … I can not reproduce the problem (on linux). I do not have access to a macos with cernlib … but I suspect some sort of build incompatibility
Philippe
Hmm…
At least the root file is created in the end.
I am guessing this is just a typo
$root
FreeType Engine v2.1.9 used to render TrueType fonts.
Compiled on 20 July 2006 for macosx with thread support.
CINT/ROOT C/C++ Interpreter version 5.16.13, June 8, 2006
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
I clicked on the 5.12 link!