H2root and libHbook does not compile on MoacOSX 10.5

Dear,

I need to install root 5.18 (I do not have choice for the version of root) with h2root and the libHbook.

When I configure the install of root with

I got the message

...
Checking for libpacklib_noshift, libpacklib, packmd, or packlib ... /SCIENCE/CERNLIB/2006/lib
Checking for libkernlib_noshift, libkernlib, kernmd, or kernlib ... /SCIENCE/CERNLIB/2006/lib
Checking for rfio in /SCIENCE/CERNLIB/2006/lib/libpacklib.a ... no
...
Enabled support for asimage, astiff, builtin_afterimage, builtin_ftgl, builtin_freetype, builtin_pcre, builtin_zlib, cern, cint7, cintex, exceptions, explicitlink, fftw3, gdml, g4root, krb5, ldap, mathcore, mathmore, mysql, odbc, opengl, pythia6, python, reflex, roofit, minuit2, shared, soversion, ssl, table, unuran, xft, xml.

But the h2root binary and the libHbook does not build. Note that gcc does not crash while building root. After doing a “make install”, I can use root without any problem (except that I can not use libHbook or h2root).

I searched into the forum and find some information. Therefore I tryed

Which return

And I also tryed

Then I got the error message

[code]bin/rmkdepend -R -fbase/src/TROOT.d -Y -w 1000 – -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -DR__HAVE_CONFIG -D__DARWIN_UNIX03=1 -D_REENTRANT -pthread -D__cplusplus – base/src/TROOT.cxxg++ -O2 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -DR__HAVE_CONFIG -D__DARWIN_UNIX03=1 -D_REENTRANT -pthread -o base/src/TROOT.o -c base/src/TROOT.cxxg++ -O2 -dynamiclib -single_module -undefined dynamic_lookup -install_name /SCIENCE/ROOT/v5.18/lib/libCore.5.dylib -o lib/libCore.5.18.dylib base/src/InitGui.o base/src/ManualBase4.o base/src/Match.o base/src/String.o base/src/Stringio.o base/src/TApplication.o base/src/TApplicationImp.o base/src/TAtt3D.o base/src/TAttAxis.o base/src/TAttBBox.o base/src/TAttFill.o base/src/TAttLine.o base/src/TAttMarker.o base/src/TAttPad.o base/src/TAttText.o base/src/TBenchmark.o base/src/TBrowser.o base/src/TBrowserImp.o base/src/TBuffer.o base/src/TBuffer3D.o base/src/TCanvasImp.o base/src/TColor.o base/src/TContextMenu.o base/src/TContextMenuImp.o base/src/TControlBarImp.o base/src/TDatime.o base/src/TDirectory.o base/src/TEnv.o base/src/TError.o base/src/TException.o base/src/TExec.o base/src/TFileCollection.o base/src/TFileInfo.o base/src/TFolder.o base/src/TGuiFactory.o base/src/TInetAddress.o base/src/TInspectorImp.o base/src/TMD5.o base/src/TMacro.o base/src/TMathBase.o base/src/TMemberInspector.o base/src/TMessageHandler.o base/src/TNamed.o base/src/TObjString.o base/src/TObject.o base/src/TObjectSpy.o base/src/TPRegexp.o base/src/TParameter.o base/src/TPluginManager.o base/src/TProcessID.o base/src/TProcessUUID.o base/src/TQCommand.o base/src/TQConnection.o base/src/TQObject.o base/src/TROOT.o base/src/TRef.o base/src/TRefCnt.o base/src/TRegexp.o base/src/TRemoteObject.o base/src/TStopwatch.o base/src/TStorage.o base/src/TString.o base/src/TStringLong.o base/src/TStyle.o base/src/TSysEvtHandler.o base/src/TSystem.o base/src/TSystemDirectory.o base/src/TSystemFile.o base/src/TTask.o base/src/TTime.o base/src/TTimeStamp.o base/src/TTimer.o base/src/TUUID.o base/src/TUri.o base/src/TUrl.o base/src/TVirtualFFT.o base/src/TVirtualFitter.o base/src/TVirtualGL.o base/src/TVirtualMonitoring.o base/src/TVirtualMutex.o base/src/TVirtualPS.o base/src/TVirtualPad.o base/src/TVirtualPadEditor.o base/src/TVirtualPerfStats.o base/src/TVirtualViewer3D.o base/src/TVirtualX.o cont/src/TArray.o cont/src/TArrayC.o cont/src/TArrayD.o cont/src/TArrayF.o cont/src/TArrayI.o cont/src/TArrayL.o cont/src/TArrayL64.o cont/src/TArrayS.o cont/src/TBits.o cont/src/TBtree.o cont/src/TClassTable.o cont/src/TClonesArray.o cont/src/TCollection.o cont/src/TExMap.o cont/src/THashList.o cont/src/THashTable.o cont/src/TIterator.o cont/src/TList.o cont/src/TMap.o cont/src/TObjArray.o cont/src/TObjectTable.o cont/src/TOrdCollection.o cont/src/TRefArray.o cont/src/TRefTable.o cont/src/TSeqCollection.o cont/src/TSortedList.o meta/src/TBaseClass.o meta/src/TCint.o meta/src/TClass.o meta/src/TClassGenerator.o meta/src/TClassMenuItem.o meta/src/TClassRef.o meta/src/TDataMember.o meta/src/TDataType.o meta/src/TDictionary.o meta/src/TFunction.o meta/src/TGenericClassInfo.o meta/src/TGlobal.o meta/src/TInterpreter.o meta/src/TIsAProxy.o meta/src/TMethod.o meta/src/TMethodArg.o meta/src/TMethodCall.o meta/src/TRealData.o meta/src/TStreamerElement.o meta/src/TToggle.o meta/src/TToggleGroup.o meta/src/TVirtualStreamerInfo.o unix/src/TUnixSystem.o zip/src/ZDeflate.o zip/src/ZInflate.o zip/src/adler32.o zip/src/compress.o zip/src/crc32.o zip/src/deflate.o zip/src/gzio.o zip/src/infback.o zip/src/inffast.o zip/src/inflate.o zip/src/inftrees.o zip/src/trees.o zip/src/uncompr.o zip/src/zutil.o clib/src/Demangle.o clib/src/Getline.o clib/src/attach.o clib/src/detach.o clib/src/getpagesize.o clib/src/keys.o clib/src/mcalloc.o clib/src/mfree.o clib/src/mmalloc.o clib/src/mmapsup.o clib/src/mmcheck.o clib/src/mmemalign.o clib/src/mmstats.o clib/src/mmtrace.o clib/src/mrealloc.o clib/src/mvalloc.o clib/src/sbrksup.o clib/src/snprintf.o metautils/src/TClassEdit.o math/src/TComplex.o math/src/TMath.o math/src/TRandom.o math/src/TRandom1.o math/src/TRandom2.o math/src/TRandom3.o base/src/G__Base1.o base/src/G__Base2.o base/src/G__Base3.o cont/src/G__Cont.o meta/src/G__Meta.o unix/src/G__Unix.o clib/src/G__Clib.o metautils/src/G__MetaUtils.o math/src/G__Math.o -ldl lib/libpcre.a -Llib -lCint -compatibility_version 5 -current_version 5.18.00
ln -fs libCore.5.18.dylib lib/libCore.so
==> lib/libCore.5.18.dylib done
g++ -O2 -bind_at_load -o bin/h2root main/src/h2root.o
-Llib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix
-L/SCIENCE/CERNLIB/2006/lib -L/SCIENCE/CERNLIB/2006/lib -lpacklib -lkernlib
/usr/local/FSF/g77/bin/…/lib/gcc/i686-apple-darwin8.8.1/3.4.0/…/…/…/libfrtbegin.a /usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.4.0/…/…/…/libgfortran.dylib /usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.4.0/libgfortranbegin.a -lm -pthread -ldl
ld warning: duplicate dylib /usr/lib/libgcc_s.1.dylib
ld warning: alignment lost in merging tentative definition slate
Undefined symbols:
hntvar2”, referenced from:
convert_cwn(int) in h2root.o
convert_cwn(int) in h2root.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [bin/h2root] Error 1

[/code]

For the latest error message, I did not find any help in the forum. That why I write this topic.

Looking into the tree of the root source file, it seems that the hbook source has not been build. (I do not see any .o file into the hbook/src directory, where the hntvar2 file is located)

Did someone already have this problem and managed to solve it ?
[/code][/quote]

h2root was only included in the tar ball distributions for macosx with versions 5.21.04 and newer.

Rene

[quote=“brun”]h2root was only included in the tar ball distributions for macosx with versions 5.21.04 and newer.
[/quote]

Is that the same with libHbook ?
Because I do not really need of h2root, it is mainly the libHbook library I need.

How do I install this library ?

when h2root is present, libHbook is also present.
Note that the libHbook library is only a set of C++ classes to read
directly hbook histograms without converting then via h2root. It is not teh full hbook package.

Rene