Re: SetTitleSize() and SetLabelSize()

From: OKUMURA, Akira <oxon_at_icrr.u-tokyo.ac.jp>
Date: Wed, 25 May 2005 02:40:36 +0900


Dear Fons,

XrdNet.cc compiles now.
But I encountered a new error.
The latest version from CVS on OS X 10.3.9.



Making sfs component...
cd src/XrdSfs;\
make all ARCH=ppc_darwin_70 --no-print-directory Compiling XrdSfsNative.cc
g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -Wall -D__macos__ -O3 -undefined dynamic_lookup -multiply_defined suppress -DXrdDEBUG=0 -I. -I.. -o ../../obj/XrdSfsNative.o XrdSfsNative.cc In file included from XrdSfsNative.cc:33: ../XrdSfs/XrdSfsAio.hh: In constructor `XrdSfsAio::XrdSfsAio()': ../XrdSfs/XrdSfsAio.hh:64: error: 'union sigval' has no member named 'sival_ptr

    '

make[5]: *** [../../obj/XrdSfsNative.o] Error 1
make[4]: *** [Darwinall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdSfs] Error 2
make[1]: *** [all] Error 2

make: *** [xrootd/src/xrootd/lib/libXrdSec.so] Error 2

OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
Institute for Cosmic Ray Research, University of Tokyo 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan Tel/Fax : +81 4-7136-3153
Skype : okumura.akira

On 2005/05/25, at 0:41, Fons Rademakers wrote:

> Hi Akira,
>
> I've made a fix in xrootd, can you try the cvs head on 10.3.9 and
> let me know if xrootd compiles.
>
> Cheers, Fons.
>
> OKUMURA, Akira wrote:
>> Dear Rene and ROOT team,
>> I have tried compiling various versions on Mac OS X 10.3.9 w/ gcc 3.3.
>> 4.02 or later were not compiled.
>> 4.00.08 => OK
>> 4.02.00 => NG
>> 4.04.02 => NG
>> 5.01.01 => NG
>> The attached are the error message of them.
>> Sincerely,
>> OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
>> Institute for Cosmic Ray Research, University of Tokyo
>> 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan
>> Tel/Fax : +81 4-7136-3153
>> Skype : okumura.akira
>> ----------------------------------------------------------------------
>> --
>> g++ -O -bundle -undefined dynamic_lookup -o lib/libPyROOT.so
>> pyroot/src/ClassMethodHolder.o pyroot/src/ConstructorDispatcher.o
>> pyroot/src/MemoryRegulator.o pyroot/src/MethodDispatcher.o
>> pyroot/src/MethodHolder.o pyroot/src/ObjectHolder.o
>> pyroot/src/PropertyHolder.o pyroot/src/PyBufferFactory.o
>> pyroot/src/Pythonize.o pyroot/src/RootModule.o
>> pyroot/src/RootWrapper.o pyroot/src/TPyClassGenerator.o
>> pyroot/src/TPyReturn.o pyroot/src/TPython.o pyroot/src/Utility.o
>> pyroot/src/G__PyROOT.o -L/sw/lib -ldl -Wl,-u,_G__cpp_setupG__Hist
>> -Wl,-u,_G__cpp_setupG__Graf1 -Wl,-u,_G__cpp_setupG__G3D
>> -Wl,-u,_G__cpp_setupG__GPad -Wl,-u,_G__cpp_setupG__Tree
>> -Wl,-u,_G__cpp_setupG__Matrix -Llib -lCore -lCint -lHist -lGraf
>> -lGraf3d -lGpad -lTree -lMatrix
>> /System/Library/Frameworks/Python.framework/Versions/2.3/Python
>> ld: warning can't open dynamic library:
>> ../root4.00.08.src//lib/libfreetype.dylib (checking for undefined
>> symbols may be affected) (No such file or directory, errno = 2)
>> ld: Undefined symbols:
>> _FT_Done_Face referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_Done_FreeType referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_Done_Glyph referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_Get_Char_Index referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_Get_Glyph referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_Get_Kerning referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_Glyph_Get_CBox referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_Glyph_Transform referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_Init_FreeType referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_Library_Version referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_Load_Glyph referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_New_Face referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_Set_Char_Size referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_Set_Charmap referenced from libGraf expected to be defined in
>> ../root4.00.08.src//lib/libfreetype.dylib
>> _FT_Vector_Transform referenced from libGraf expected to be defined
>> in ../root4.00.08.src//lib/libfreetype.dylib
>> make: *** [lib/libPyROOT.dylib] Error 1
>> ----------------------------------------------------------------------
>> --
>> Compiling XrdNet.cc
>> g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
>> -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -Wall -D__macos__
>> -O3 -undefined dynamic_lookup -multiply_defined suppress
>> -DXrdDEBUG=0 -I. -I.. XrdNet.cc -o ../../obj/XrdNet.o
>> XrdNet.cc: In member function `int XrdNet::Accept(XrdNetPeer&, int,
>> int)':
>> XrdNet.cc:82: error: `POLLRDNORM' undeclared (first use this function)
>> XrdNet.cc:82: error: (Each undeclared identifier is reported only
>> once for each
>> function it appears in.)
>> XrdNet.cc:82: error: `POLLRDBAND' undeclared (first use this function)
>> make[5]: *** [../../obj/XrdNet.o] Error 1
>> make[4]: *** [Darwinall] Error 2
>> make[3]: *** [all] Error 2
>> make[2]: *** [XrdNet] Error 2
>> make[1]: *** [all] Error 2
>> make: *** [xrootd/src/xrootd/lib/libXrdSec.so] Error 2
>> ----------------------------------------------------------------------
>> --
>> Compiling XrdNet.cc
>> g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
>> -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -Wall -D__macos__
>> -O3 -undefined dynamic_lookup -multiply_defined suppress
>> -DXrdDEBUG=0 -I. -I.. XrdNet.cc -o ../../obj/XrdNet.o
>> XrdNet.cc: In member function `int XrdNet::Accept(XrdNetPeer&, int,
>> int)':
>> XrdNet.cc:82: error: `POLLRDNORM' undeclared (first use this function)
>> XrdNet.cc:82: error: (Each undeclared identifier is reported only
>> once for each
>> function it appears in.)
>> XrdNet.cc:82: error: `POLLRDBAND' undeclared (first use this function)
>> make[5]: *** [../../obj/XrdNet.o] Error 1
>> make[4]: *** [Darwinall] Error 2
>> make[3]: *** [all] Error 2
>> make[2]: *** [XrdNet] Error 2
>> make[1]: *** [all] Error 2
>> make: *** [xrootd/src/xrootd/lib/libXrdSec.so] Error 2
>> ----------------------------------------------------------------------
>> --
>> On 2005/05/22, at 23:33, OKUMURA, Akira wrote:
>>> Dear Rene,
>>>
>>> Thank you for releasing the new version.
>>>
>>> Then I got the new version using CVS.
>>> However a compiling error occurred during make.
>>>
>>> Compiling XrdNet.cc
>>> g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
>>> -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -Wall -D__macos__
>>> -O3 -undefined dynamic_lookup -multiply_defined suppress
>>> -DXrdDEBUG=0 -I. -I.. XrdNet.cc -o ../../obj/XrdNet.o
>>> XrdNet.cc: In member function `int XrdNet::Accept(XrdNetPeer&, int,
>>> int)':
>>> XrdNet.cc:82: error: `POLLRDNORM' undeclared (first use this
>>> function)
>>> XrdNet.cc:82: error: (Each undeclared identifier is reported only
>>> once for each
>>> function it appears in.)
>>> XrdNet.cc:82: error: `POLLRDBAND' undeclared (first use this
>>> function)
>>> make[5]: *** [../../obj/XrdNet.o] Error 1
>>> make[4]: *** [Darwinall] Error 2
>>> make[3]: *** [all] Error 2
>>> make[2]: *** [XrdNet] Error 2
>>> make[1]: *** [all] Error 2
>>> make: *** [xrootd/src/xrootd/lib/libXrdSec.so] Error 2
>>>
>>> I just typed,
>>> % cd /usr/local/root
>>> % ./configure macosx
>>> % make
>>> on Mac OS X 10.3.9.
>>>
>>> The same version was compiled successfully on RH 7.3 with gcc 2.96.
>>> What is the reason of this error?
>>>
>>> Sincerely,
>>>
>>> OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
>>> Institute for Cosmic Ray Research, University of Tokyo
>>> 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan
>>> Tel/Fax : +81 4-7136-3153
>>> Skype : okumura.akira
>>>
>>> On 2005/05/20, at 16:00, Rene Brun wrote:
>>>
>>>> OK I understand the issue now.
>>>> You are filling a histogram with automatic binning and you have
>>>> only one entry. When the histogram buffer is is emptied, the axis
>>>> attributes
>>>> are reset. I have fixed this problem in the development version in
>>>> CVS.
>>>> With your version you can circumvent the problem by calling
>>>> hist->BufferEmpty(1);
>>>> before setting the axis attributes.
>>>>
>>>> Rene Brun
>>>>
>>>> On Fri, 20 May 2005, OKUMURA, Akira wrote:
>>>>
>>>>> Dear Rene,
>>>>>
>>>>>> Could you explain what is the problem ?
>>>>>
>>>>> The problem is that title size and label size can not be changed.
>>>>>
>>>>>> TH1D* hist = new TH1D("", "", 40, 0, 0);
>>>>>
>>>>> => NG
>>>>>
>>>>>> TH1D* hist = new TH1D("", "", 40, 0, 1);
>>>>>
>>>>> => GOOD # upper-edge is 1
>>>>>
>>>>>> Please indicate which version of ROOT
>>>>>
>>>>> Version 4.04/02 4 May 2005 on Mac OS X 10.3.9 w/ gcc 3.3
>>>>> and
>>>>> Version 4.02/00 16 December 2004 on RH 7.3 w/ gcc 2.96
>>>>>
>>>>> I apologize to my short explanation.
>>>>>
>>>>> Sincerely,
>>>>>
>>>>> OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
>>>>> Institute for Cosmic Ray Research, University of Tokyo
>>>>> 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan
>>>>> Tel/Fax : +81 4-7136-3153
>>>>> Skype : okumura.akira
>>>>>
>>>>> On 2005/05/20, at 4:30, Rene Brun wrote:
>>>>>
>>>>>> Could you explain what is the problem ?
>>>>>> Please indicate which version of ROOT
>>>>>> Rene Brun
>>>>>> On Fri, 20 May 2005, OKUMURA, Akira wrote:
>>>>>>
>>>>>>> Dear ROOTers,
>>>>>>> Please try the attached test program.
>>>>>>> SetTitleSize() and SetLabelSize() do not work.
>>>>>>> But , for example, SetTitle() and CenterTitle() work properly.
>>>>>>> This problem happens only when I use same values for low-edge
>>>>>>> and high-edge.
>>>>>>> Is there any way to solve this problem?
>>>>>>> I would like to use same values for the edges because I am not
>>>>>>> sure the range of experiment data values.
>>>>>>> void test()
>>>>>>> {
>>>>>>> TCanvas* can = new TCanvas;
>>>>>>> TH1D* hist = new TH1D("", "", 40, 0, 0);
>>>>>>> hist->Fill(1, 1);
>>>>>>> hist->GetXaxis()->SetTitle("X");
>>>>>>> hist->GetYaxis()->SetTitle("Y");
>>>>>>> hist->GetXaxis()->CenterTitle();
>>>>>>> hist->GetYaxis()->CenterTitle();
>>>>>>> hist->GetXaxis()->SetTitleSize(0.05);
>>>>>>> hist->GetYaxis()->SetTitleSize(0.05);
>>>>>>> hist->GetXaxis()->SetLabelSize(0.05);
>>>>>>> hist->GetYaxis()->SetLabelSize(0.05);
>>>>>>> hist->Draw();
>>>>>>> }
>>>>>>> OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
>>>>>>> Institute for Cosmic Ray Research, University of Tokyo
>>>>>>> 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan
>>>>>>> Tel/Fax : +81 4-7136-3153
>>>>>>> Skype : okumura.akira
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>
> --
> Org: CERN, European Laboratory for Particle Physics.
> Mail: 1211 Geneve 23, Switzerland
> E-Mail: Fons.Rademakers_at_cern.ch Phone: +41 22 7679248
> WWW: http://www.rademakers.org/fons/ Fax: +41 22 7679480
>
>
Received on Tue May 24 2005 - 19:40:51 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:08 MET