Re: [Fwd: ROOT& CASTOR2]

From: ganis <gerardo.ganis_at_cern.ch>
Date: Thu, 21 Jan 2010 08:29:27 +0100

    Dear Francesca,

    Could you explain exactly how you want to use CASTOR into a ROOT application?

    If you want to open files via TFile::Open("castor:/castor/...") or TFile::Open("rfio:/castor/..."),

    which is the advised way, you do not need to link with the shift libraries but just to

    make sure that those libraries are in the LD_LIBRARY_PATH when you run:

   $ source
/afs/cern.ch/sw/lcg/external/root/5.17.04/slc4_ia32_gcc34/root/bin/thisroot.sh

   $ export
LD_LIBRARY_PATH=/afs/cern.ch/sw/lcg/external/castor/2.1.1-9/slc4_ia32_gcc34/usr/lib:$LD_LIBRARY_PATH  

    Gerri Ganis

francesca.belloni_at_ts.infn.it wrote:
> Hi.
> I'm trying to use ROOT with CASTOR2, but when I when compiling one
> routine, the following error message appears:
>
>
> -------
> /afs/cern.ch/sw/lcg/external/root/5.17.04/slc4_ia32_gcc34/root/lib/libRCastor.so:
> undefined reference to `rfio_HsmIf_reqtoput'
> collect2: ld returned 1 exit status
> -------
>
>
> The Makefile starts with
>
> CC=g++
> CFLAGS=-Wall -m32 -O2
> INCLUDE=-I/usr/lib
> ROOTFLAGS=-lRFIO -O -fPIC -lRCastor
> VARIAFLAGS=-L/usr/lib -lshift -lnsl -lcrypt -ldl -lm
>
>
> The gcc version is gcc (GCC) 3.4.6
>
> What is wrong, please?
>
> Thanks,
> best regards,
> Francesca Belloni
>
>
>

-- 
+--------------------------------------------------------------------------+
  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
+--------------------------------------------------------------------------+
Received on Thu Jan 21 2010 - 08:45:50 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 21 2010 - 11:50:01 CET