Re: problem compiling macros

From: Gerardo Ganis <gerardo.ganis_at_cern.ch>
Date: Thu, 8 Mar 2012 16:05:04 +0100

    Dear Melinda,

    Some of the headers required by TXNetFile starting with 5.32 are not exported. I am fixing this.

    However, what is the reason you need to include directly TAlienFile (and therefore TXNetFile)?

    All what you need should be available in TFile.h .     Just open the file with the static 'TFile *TFile::Open(...)' pre-pending the protocol 'alien:' to

    your alien path (that is 'alien:/alien/...').     Note that this way of doing works also with previous ROOT versions, so is a general solution.

    Cheers, Gerri

On 3/8/12 11:32 AM, Melinda Siciliano wrote:
> Dear all,
>
> I updated my root version to the trunk on a Ubuntu 10.04. I have the
> same problem with ROOT v5-32-01 on SLC5. When I try to compile a macro
> in which the class TAliEnFile is included I obtain the following message:
>
> Info in <TUnixSystem::ACLiC>: creating shared library
> /home/msicilia/work/alisoft/alice/aliroot/trunk/src/ITS/macrosSDD/ReadQASDD_C.so
> cc1plus: note: obsolete option -I- used, please use -iquote instead
> In file included from
> /home/msicilia/work/alisoft/alice/root/trunk/include/TAlienFile.h:35,
> from
> /home/msicilia/work/alisoft/alice/aliroot/trunk/src/ITS/macrosSDD/ReadQASDD.C:4,
> from /tmp/rootcint_o8tTzl.h:3,
> from /tmp/cO8S7H_cint.cxx:1:
> /home/msicilia/work/alisoft/alice/root/trunk/include/TXNetFile.h:57:25: error:
> XrdSysToOuc.h: File o directory non esistente
> Error: external preprocessing failed. :0:
> !!!Removing
> /home/msicilia/work/alisoft/alice/aliroot/trunk/src/ITS/macrosSDD/ReadQASDD_C_ACLiC_dict.cxx
> /home/msicilia/work/alisoft/alice/aliroot/trunk/src/ITS/macrosSDD/ReadQASDD_C_ACLiC_dict.h
> !!!
> Error: /home/msicilia/work/alisoft/alice/root/trunk/bin/rootcint:
> error loading headers...
> Error in <ACLiC>: Dictionary generation failed!
> Info in <ACLiC>: Invoking compiler to check macro's validity
> cc1plus: note: obsolete option -I- used, please use -iquote instead
> In file included from
> /home/msicilia/work/alisoft/alice/root/trunk/include/TAlienFile.h:35,
> from
> /home/msicilia/work/alisoft/alice/aliroot/trunk/src/ITS/macrosSDD/ReadQASDD.C:4:
> /home/msicilia/work/alisoft/alice/root/trunk/include/TXNetFile.h:57:25: error:
> XrdSysToOuc.h: File o directory non esistente
>
>
> The cfg I used is
>
> #!/bin/sh
>
> ALIEN_ROOT=$GSHELL_ROOT
>
>
> ./configure \
> --with-pythia6-uscore=SINGLE \
> --with-alien-incdir=${ALICE_ROOT}/include \
> --with-alien-libdir=${ALICE_ROOT}/lib \
> --with-monalisa-incdir=${ALICE_ROOT}/include \
> --with-monalisa-libdir=${ALICE_ROOT}/lib \
> --with-xrootd=${ALICE_ROOT} \
> --with-f77=gfortran \
> --enable-minuit2 \
> --enable-roofit \
> --enable-soversion \
> --disable-bonjour
>
> Any suggestion?
>
> Cheers,
>
> Melinda
Received on Thu Mar 08 2012 - 16:05:09 CET

This archive was generated by hypermail 2.2.0 : Thu Mar 08 2012 - 23:50:01 CET