Problem with par file

I’ve this problem with a par file called utils. Sometimes it appens, but only randomly. At the end of EnablePackage:

reloading /gpfs/storage_4/users/home/turra/.proof/packages/utils/./PROOF-INF/SETUP.C  0
reloading stdio.h  0
reloading stdfunc.dll  0
reloading /gpfs/storage_4/users/home/proof/root/lib/libPhysics.so  0
reloading /gpfs/storage_4/users/home/proof/root/lib/libXMLParser.so  0
reloading /gpfs/storage_4/users/home/turra/.proof/packages/utils/./libPhotonID.so  0
reloading /gpfs/storage_4/users/home/turra/.proof/packages/utils/./libGRL.so  0
Warning in <TClassTable::Add>: class vector<Root::TLumiBlockRange,allocator<Root::TLumiBlockRange> >::iterator already in TClassTable
Warning in <TClassTable::Add>: class map<int,Root::TGoodRun,less<int>,allocator<pair<const int,Root::TGoodRun> > >::iterator already in TClassTable
Warning in <TClassTable::Add>: class vector<Root::TGoodRun,allocator<Root::TGoodRun> >::iterator already in TClassTable
Warning in <TClassTable::Add>: class vector<Root::TGoodRunsList,allocator<Root::TGoodRunsList> >::iterator already in TClassTable
reloading /gpfs/storage_4/users/home/turra/.proof/packages/utils/./libOQ.so  0
reloading /gpfs/storage_4/users/home/turra/.proof/packages/utils/./libbins.so  0
reloading /gpfs/storage_4/users/home/turra/.proof/packages/utils/./libeventselector.so  0
Error in <TProof::LoadPackageOnClient>: unsupported SETUP signature: SETUP(double) cannot continue
Error in <TProof::LoadPackageOnClient>: loading package utils on client failed

Hi,
Sorry for the late replay.
It looks like you have a SETUP(double) signature in your SETUP function? This is not supported:
see root.cern.ch/drupal/content/work … iles#SETUP .
I am bit surprised that sometimes it works.
If this is not the case, can you post a bit more about your SETUP function and/or the structure of the PAR package? Also the ROOT version …

Gerri

[quote=“ganis”]Hi,
Sorry for the late replay.
It looks like you have a SETUP(double) signature in your SETUP function? This is not supported:
see root.cern.ch/drupal/content/work … iles#SETUP .
I am bit surprised that sometimes it works.
If this is not the case, can you post a bit more about your SETUP function and/or the structure of the PAR package? Also the ROOT version …

Gerri[/quote]

Sorry, I don’t understand: my SETUP is Int_t SETUP()


#include <stdio.h>

Int_t SETUP()
{
    int rtp = 0;

    if ( gSystem->Load("libHist") == -1 ) {
        std::cout<<"### ---> Library libHist could not be loaded !"<<std::endl;
        rtp--;
    } else {
        std::cout<<"### ---> Library libHist properly loaded."<<std::endl;
    }

    if ( gSystem->Load("libPhysics") == -1 ) {
        std::cout<<"### ---> Library libPhysics could not be loaded !"<<std::endl;
        rtp--;
    } else {
        std::cout<<"### ---> Library libPhysics properly loaded."<<std::endl;
    }
  
    if ( gSystem->Load("libXMLParser") == -1 ) {
        std::cout<<"### ---> Library libXMLParser could not be loaded !"<<std::endl;
        rtp--;
    } else {
        std::cout<<"### ---> Library libXMLParser properly loaded."<<std::endl;
    }
  
    if ( gSystem->Load("libPhotonID") == -1 ) {
        std::cout<<"### ---> Library libPhotonID could not be loaded !"<<std::endl;

        rtp--;
    } else {
        std::cout<<"### ---> Library libPhotonID properly loaded."<<std::endl;
    }

    if ( gSystem->Load("libGRL") == -1 ) {
        std::cout<<"### ---> Library libGRL could not be loaded !"<<std::endl;
        rtp--;
    } else {
        std::cout<<"### ---> Library libGRL properly loaded."<<std::endl;
    }
  
    if ( gSystem->Load("libOQ") == -1 ) {
        std::cout<<"### ---> Library libOQ could not be loaded !"<<std::endl;
        rtp--;
    } else {
        std::cout<<"### ---> Library libOQ properly loaded."<<std::endl;
    }

    if ( gSystem->Load("libbins") == -1 ) {
        std::cout<<"### ---> Library libbins could not be loaded !"<<std::endl;
        rtp--;
    } else {
        std::cout<<"### ---> Library libbins properly loaded."<<std::endl;
    }

    if ( gSystem->Load("libeventselector") == -1 ) {
        std::cout<<"### ---> Library libeventselector could not be loaded !"<<std::endl;
        rtp--;
    } else {
        std::cout<<"### ---> Library libeventselector properly loaded."<<std::endl;
    }

/*  if ( gSystem->Load("libAnalysis") == -1 ) {
    std::cout<<"### ---> Library libAnalysis could not be loaded !"<<std::endl;
    rtp--;
    } else {
    std::cout<<"### ---> Library libAnalysis properly loaded."<<std::endl;
    }*/
    if ( rtp < 0 ) return -1;
    return 0;
}

ROOT 5.28

Hi,

I do not see anything wrong with this.
Do you have some other code with a function SETUP(double) which could be loaded in your client?

Gerri

[quote=“ganis”]Hi,

I do not see anything wrong with this.
Do you have some other code with a function SETUP(double) which could be loaded in your client?

Gerri[/quote]

No, no one. The point is that the behaviour is random. Usually this problem happens 1/20 times.