help-gift
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-GIFT] problems installing gift 0.1.13 and 0.1.14 in ubuntu 14.04 L


From: Iacer Calixto
Subject: [help-GIFT] problems installing gift 0.1.13 and 0.1.14 in ubuntu 14.04 LTS
Date: Fri, 20 Jun 2014 16:42:26 +0100

    Hi all,

    I would like to ask about a problem I've been facing while trying to install gift on my PC. I am a recently installed ubuntu 14.04 LTS. While trying to compile gift from the source code (./configure) I first had problems with PERL modules I didn't have installed. I installed these modules (XML::DOM, XML::XQL and Text::Iconv) and then the configuration proceeded okay. The exact config command I run is (the directory /home/icalixto/tools/gift-0.1.14 exists):

    ./configure --prefix=/home/icalixto/tools/gift-0.1.14 --enable-multi-threading --enable-debian-config

    Then, I run "make" and have the following errors:

    (...)
    CAccessorImplementation.cc: In member function 'virtual void CAccessorImplementation::getRandomIDs(std::list<long int>&, std::list<long int>::size_type) const':
CAccessorImplementation.cc:129:28: error: 'rand' was not declared in this scope
     lPositions.insert(rand()%lModulo);
                            ^
CAccessorImplementation.cc:132:28: error: 'rand' was not declared in this scope
     lPositions.insert(rand()%lModulo);
                            ^
CAccessorImplementation.cc: In member function 'virtual void CAccessorImplementation::getRandomAccessorElements(std::list<CAccessorElement>&, std::list<CAccessorElement>::size_type) const':
CAccessorImplementation.cc:188:28: error: 'rand' was not declared in this scope
     lPositions.insert(rand()%lModulo);
                            ^
CAccessorImplementation.cc:192:28: error: 'rand' was not declared in this scope
     lPositions.insert(rand()%lModulo);
                            ^
make[3]: *** [CAccessorImplementation.lo] Error 1
make[3]: Leaving directory `/home/icalixto/tools/gift-0.1.13-install/libMRML/cc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/icalixto/tools/gift-0.1.13-install/libMRML'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/icalixto/tools/gift-0.1.13-install'
make: *** [all-recursive-am] Error 2


    I even tried editing the "CAccessorImplementation.cc" file and adding a "#include <cstdlib>", so these errors are fixed. But when I do that, new errors arise:

    (...)
In file included from ../../libMRML/include/CXMLElement.h:34:0,
                 from CAccessorFactoryContainer.cc:38:
../../libMRML/include/CAttributeList.h:80:8: error: extra qualification 'CAttributeList::' on member 'toXML' [-fpermissive]
   void CAttributeList::toXML(string& outString)const;
        ^
make[3]: *** [CAccessorFactoryContainer.lo] Error 1
make[3]: Leaving directory `/home/icalixto/tools/gift-0.1.13-install/libMRML/cc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/icalixto/tools/gift-0.1.13-install/libMRML'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/icalixto/tools/gift-0.1.13-install'
make: *** [all-recursive-am] Error 2

    Would you know whether I am doing something wrong? The exact same thing happens both for the versions 0.1.14 and the 0.1.13 of gift, by the way.
    Thanks,

    Iacer Calixto.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]