Mojca Miklavec | 1 Apr 14:53 2011
Picon

[ROOT] Installation of 5.28.00b fails on 64-bit Mac OS X

Hello,

I'm having problem installing the latest root (5.28.00b).

A while ago I have successfully installed root v5.26.00 on my 64-bit
Mac OS X 10.6.7 (I'm using macports for other libraries and possible
dependencies, but not for root itself which I install from source,
independently).

When tried to install GATE (opengatecollaboration.org) it did compile,
but it "crashes" when I try to run it:

bash> Gate
dyld: Symbol not found: __ZN15G4UserRunAction11GenerateRunEv
 Referenced from: /path/to/gate/gate_v6.1/tmp/Darwin-g++/Gate/libGate.dylib
 Expected in: flat namespace
 in /path/to/gate/gate_v6.1/tmp/Darwin-g++/Gate/libGate.dylib

so I decided that it might make sense to at least try to install the
latest version of Root (I'm not sure if error in GATE has something to
do with ROOT or not). Due to some weird  <at> rpath-s in library
dependencies of Gate I decided to build Root to a "static location"
and did the following:

    cd /path/to/root
    tar xvzf root_v5.28.00b.source.tar.gz
    cd root
    ./configure macosx64 --prefix=$PWD
    make -j2

(Continue reading)

Fons Rademakers | 1 Apr 16:39 2011
Picon
Picon

Re: [ROOT] Installation of 5.28.00b fails on 64-bit Mac OS X

Hi,

  can you try to install without the --prefix option which is basically 
only needed for fixed location Linux unstalls. Just do:

./configure
make -j2

does that work for you? Sometimes you can get problems when the system 
picks up incompatible libpng, libtiff, etc from /opt/lib (libs from MacPorts).

Cheers, Fons.

On 01/04/2011 14:53, Mojca Miklavec wrote:
> Hello,
>
> I'm having problem installing the latest root (5.28.00b).
>
> A while ago I have successfully installed root v5.26.00 on my 64-bit
> Mac OS X 10.6.7 (I'm using macports for other libraries and possible
> dependencies, but not for root itself which I install from source,
> independently).
>
> When tried to install GATE (opengatecollaboration.org) it did compile,
> but it "crashes" when I try to run it:
>
> bash>  Gate
> dyld: Symbol not found: __ZN15G4UserRunAction11GenerateRunEv
>   Referenced from: /path/to/gate/gate_v6.1/tmp/Darwin-g++/Gate/libGate.dylib
>   Expected in: flat namespace
(Continue reading)

Mojca Miklavec | 1 Apr 16:58 2011
Picon

Re: [ROOT] Installation of 5.28.00b fails on 64-bit Mac OS X

On Fri, Apr 1, 2011 at 16:39, Fons Rademakers wrote:
> Hi,
>
>  can you try to install without the --prefix option which is basically only
> needed for fixed location Linux unstalls. Just do:
>
> ./configure
> make -j2
>
> does that work for you?

No, it doesn't. I get the following error (I did "make clean" before
running make.)

g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -m64 -D_REENTRANT -D_GNU_SOURCE -Wall
-D__macos__  -Wno-deprecated -O2 -DXrdDEBUG=0 -DHAVE_STRLCPY
-DHAVE_LIBZ -I. -I.. XrdOucTrace.cc -o ../../obj/XrdOucTrace.o
Compiling XrdOucUtils.cc
g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -m64 -D_REENTRANT -D_GNU_SOURCE -Wall
-D__macos__  -Wno-deprecated -O2 -DXrdDEBUG=0 -DHAVE_STRLCPY
-DHAVE_LIBZ -I. -I.. XrdOucUtils.cc -o ../../obj/XrdOucUtils.o
make[5]: *** No rule to make target `XrdOucFactoryBonjour.hh', needed
by `../../obj/XrdOucBonjour.o'.  Stop.
make[4]: *** [Darwinall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdOuc] Error 2
make[1]: *** [all] Error 2
*** Error condition reported by make (rc = 2):
(Continue reading)

Mojca Miklavec | 1 Apr 17:26 2011
Picon

Re: [ROOT] Installation of 5.28.00b fails on 64-bit Mac OS X

On top of that, I have now found
    http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=11520
but there is no confirmed solution.

I'll nevertheless try to build the trunk to see if anything helps.

Mojca

Gerardo Ganis | 1 Apr 17:50 2011
Picon
Picon

Re: [ROOT] Installation of 5.28.00b fails on 64-bit Mac OS X

On 4/1/11 5:26 PM, Mojca Miklavec wrote:
> On top of that, I have now found
>      http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=11520
> but there is no confirmed solution.
>
> I'll nevertheless try to build the trunk to see if anything helps.
>
> Mojca
>
Please, post the log from xrootd-configure as suggested in the forum 
thread which you refer to.

Gerri

--

-- 
+--------------------------------------------------------------------------+
   Gerardo GANIS    CERN, PH Dept, SFT group, CH 1211 Geneve 23
                    room: 32-RC-017, tel: +41 22 7676439
                    email: gerardo.ganis <at> cern.ch, fax: +41 22 7669133
+--------------------------------------------------------------------------+

Mojca Miklavec | 1 Apr 18:37 2011
Picon

Re: [ROOT] Installation of 5.28.00b fails on 64-bit Mac OS X

On Fri, Apr 1, 2011 at 17:50, Gerardo Ganis <gerardo.ganis <at> cern.ch> wrote:
> On 4/1/11 5:26 PM, Mojca Miklavec wrote:
>>
>> On top of that, I have now found
>>     http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=11520
>> but there is no confirmed solution.
>>
>> I'll nevertheless try to build the trunk to see if anything helps.
>>
>> Mojca
>>
> Please, post the log from xrootd-configure as suggested in the forum thread
> which you refer to.

I tried to attach the log, but the mail gets rejected by cern.ch
servers. However, there is no error in that file at all. If I just run
"gmake -j2" after running that, I still get the same error:

> g++ -dynamiclib -single_module -undefined dynamic_lookup -install_name  <at> rpath/libRGL.so -O2 -m64
-mmacosx-version-min=10.6 -o lib/libRGL.so graf3d/gl/src/TF2GL.o graf3d/gl/src/TGLText.o
graf3d/gl/src/TGLLogicalShape.o graf3d/gl/src/TGLManipSet.o
graf3d/gl/src/TGLSurfacePainter.o graf3d/gl/src/TGLPlotPainter.o graf3d/gl/src/TGLPlot3D.o
graf3d/gl/src/TArcBall.o graf3d/gl/src/TGLLockable.o graf3d/gl/src/TGLCylinder.o
graf3d/gl/src/TGLPolyMarker.o graf3d/gl/src/TGLH2PolyPainter.o
graf3d/gl/src/TGLParametricEquationGL.o graf3d/gl/src/gl2ps.o
graf3d/gl/src/TGL5DDataSetEditor.o graf3d/gl/src/TGLTransManip.o
graf3d/gl/src/TGLAutoRotator.o graf3d/gl/src/TGLLightSetEditor.o
graf3d/gl/src/TGLSceneInfo.o graf3d/gl/src/TGLCameraGuide.o graf3d/gl/src/TGLPlotCamera.o
graf3d/gl/src/TGLBoundingBox.o graf3d/gl/src/TX11GL.o graf3d/gl/src/TGLOverlayButton.o
graf3d/gl/src/TGLStopwatch.o graf3d/gl/src/TGLFormat.o graf3d/gl/src/TGLSelectRecord.o
(Continue reading)

Mojca Miklavec | 1 Apr 18:49 2011
Picon

Re: [ROOT] Installation of 5.28.00b fails on 64-bit Mac OS X

(last part of previour message)

graf3d/gl/src/TGLTH3Composition.o graf3d/gl/src/TGLSAViewer.o
graf3d/gl/src/TGLViewer.o graf3d/gl/src/G__GL.o -ldl /opt/local/lib
-lftgl -Llib -lGLEW -L/opt/local/lib -lGLU -dylib_file
/usr/X11R6/lib/libGL.dylib:/usr/X11R6/lib/libGL.dylib -L/opt/local/lib
-lX11 -lm
> ld: in /opt/local/lib, can't map file, errno=22
> collect2: ld returned 1 exit status

After some googling I stumbled across the following sentence:
    errno 22 is "invalid argument", at least on the x86 architecture,
so passing a directory when it expects a file would seem to be a
likely cause.

Then I realized that the string contains
    -ldl /opt/local/lib
where /opt/local/lib is a lonely directory. First of all it is already
included earlier in the command, but even if it was not, it should
have been written as -L/opt/local/lib, not hanging in the air. If I
add -L in front of /opt/local/lib then the last command works.

Where could that error come from?

Mojca

Mojca Miklavec | 1 Apr 19:03 2011
Picon

Re: [ROOT] Installation of 5.28.00b fails on 64-bit Mac OS X

On Fri, Apr 1, 2011 at 18:49, Mojca Miklavec  wrote:
> (last part of previour message)
>
> graf3d/gl/src/TGLTH3Composition.o graf3d/gl/src/TGLSAViewer.o
> graf3d/gl/src/TGLViewer.o graf3d/gl/src/G__GL.o -ldl /opt/local/lib
> -lftgl -Llib -lGLEW -L/opt/local/lib -lGLU -dylib_file
> /usr/X11R6/lib/libGL.dylib:/usr/X11R6/lib/libGL.dylib -L/opt/local/lib
> -lX11 -lm
>> ld: in /opt/local/lib, can't map file, errno=22
>> collect2: ld returned 1 exit status
>
> After some googling I stumbled across the following sentence:
>    errno 22 is "invalid argument", at least on the x86 architecture,
> so passing a directory when it expects a file would seem to be a
> likely cause.
>
> Then I realized that the string contains
>    -ldl /opt/local/lib
> where /opt/local/lib is a lonely directory. First of all it is already
> included earlier in the command, but even if it was not, it should
> have been written as -L/opt/local/lib, not hanging in the air. If I
> add -L in front of /opt/local/lib then the last command works.
>
> Where could that error come from?

I just wanted to add that I continued with "gmake -j2" and the
compilation went fine from that point on, except that it generated the
same error once again:

g++ -dynamiclib -single_module -undefined dynamic_lookup -install_name
(Continue reading)

Dmitry Kotov | 3 Apr 13:52 2011
Picon

[ROOT] SetLogz

Hey guys,

In my macro I'm trying to perfom SetLogz() over my canvas with TH2D on it and it says:
Error in <THistPainter::TableInit>: log scale is requested but maximum is less or equal 0

But when i do it directly by clicking on the canvas - everything works fine.

Could you please tell me how do i make it work from my macro? Maybe add some parameter to SetLogz().

Thanks,
Dmitry

Olivier Couet | 4 Apr 09:03 2011
Picon
Picon

Re: [ROOT] SetLogz

Can you provide the histogram you have this problem with ?

From: Dmitry Kotov <dmitriy.kotov <at> gmail.com>
Date: Sun, 3 Apr 2011 07:52:06 -0400
To: <roottalk <at> root.cern.ch>
Subject: [ROOT] SetLogz

Hey guys,

In my macro I'm trying to perfom SetLogz() over my canvas with TH2D on it and it says:
Error in <THistPainter::TableInit>: log scale is requested but maximum is less or equal 0

But when i do it directly by clicking on the canvas - everything works fine.

Could you please tell me how do i make it work from my macro? Maybe add some parameter to SetLogz().

Thanks,
Dmitry

Gmane