problems installing gift 0.1.13 and 0.1.14 in ubuntu 14.04 LTS

Iacer Calixto <[email protected]> Fri, 20 Jun 2014 16:42:26 +0100
Newsgroups gmane.comp.gnu.gift.general
Message-ID <CAE8LjODERfPvhghTHTN58C-qF2UXGo8yL0R9Q=yRDHxamZbU7Q@mail.gmail.com>
--===============1975675336605522559==
Content-Type: multipart/alternative; boundary=001a113a76ca27d53404fc4657d6

--001a113a76ca27d53404fc4657d6
Content-Type: text/plain; charset=UTF-8

    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.

--001a113a76ca27d53404fc4657d6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div>=C2=A0=C2=A0=C2=A0 Hi all,<br><br></div>=C2=A0=
=C2=A0=C2=A0 I would like to ask about a problem I&#39;ve been facing while=
 trying to install gift on my PC. I am a recently installed ubuntu 14.04 LT=
S. While trying to compile gift from the source code (./configure) I first =
had problems with PERL modules I didn&#39;t have installed. I installed the=
se modules (XML::DOM, XML::XQL and Text::Iconv) and then the configuration =
proceeded okay. The exact config command I run is (the directory /home/ical=
ixto/tools/gift-0.1.14 exists):<br>
</div><br>=C2=A0=C2=A0=C2=A0 ./configure --prefix=3D/home/icalixto/tools/gi=
ft-0.1.14 --enable-multi-threading --enable-debian-config<br clear=3D"all">=
<div><div><div><div><div dir=3D"ltr"><br></div><div>=C2=A0=C2=A0=C2=A0 Then=
, I run &quot;make&quot; and have the following errors:<br>
<br>=C2=A0=C2=A0=C2=A0 (...)<br>=C2=A0=C2=A0=C2=A0 CAccessorImplementation.=
cc: In member function &#39;virtual void CAccessorImplementation::getRandom=
IDs(std::list&lt;long int&gt;&amp;, std::list&lt;long int&gt;::size_type) c=
onst&#39;:<br>CAccessorImplementation.cc:129:28: error: &#39;rand&#39; was =
not declared in this scope<br>
=C2=A0=C2=A0=C2=A0=C2=A0 lPositions.insert(rand()%lModulo);<br>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 ^<br>CAccessorImplementation.cc:132:28: error: &#39;rand&#39; was not decl=
ared in this scope<br>=C2=A0=C2=A0=C2=A0=C2=A0 lPositions.insert(rand()%lMo=
dulo);<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 ^<br>
CAccessorImplementation.cc: In member function &#39;virtual void CAccessorI=
mplementation::getRandomAccessorElements(std::list&lt;CAccessorElement&gt;&=
amp;, std::list&lt;CAccessorElement&gt;::size_type) const&#39;:<br>CAccesso=
rImplementation.cc:188:28: error: &#39;rand&#39; was not declared in this s=
cope<br>
=C2=A0=C2=A0=C2=A0=C2=A0 lPositions.insert(rand()%lModulo);<br>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 ^<br>CAccessorImplementation.cc:192:28: error: &#39;rand&#39; was not decl=
ared in this scope<br>=C2=A0=C2=A0=C2=A0=C2=A0 lPositions.insert(rand()%lMo=
dulo);<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 ^<br>
make[3]: *** [CAccessorImplementation.lo] Error 1<br>make[3]: Leaving direc=
tory `/home/icalixto/tools/gift-0.1.13-install/libMRML/cc&#39;<br>make[2]: =
*** [all-recursive] Error 1<br>make[2]: Leaving directory `/home/icalixto/t=
ools/gift-0.1.13-install/libMRML&#39;<br>
make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/home/i=
calixto/tools/gift-0.1.13-install&#39;<br>make: *** [all-recursive-am] Erro=
r 2<br><br></div><div dir=3D"ltr"><br></div><div>=C2=A0=C2=A0=C2=A0 I even =
tried editing the &quot;CAccessorImplementation.cc&quot; file and adding a =
&quot;#include &lt;cstdlib&gt;&quot;, so these errors are fixed. But when I=
 do that, new errors arise:<br>
<br>=C2=A0=C2=A0=C2=A0 (...)<br>In file included from ../../libMRML/include=
/CXMLElement.h:34:0,<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from CAccessorFactoryContaine=
r.cc:38:<br>../../libMRML/include/CAttributeList.h:80:8: error: extra quali=
fication &#39;CAttributeList::&#39; on member &#39;toXML&#39; [-fpermissive=
]<br>
=C2=A0=C2=A0 void CAttributeList::toXML(string&amp; outString)const;<br>=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^<br>make[3]: *** [CAccessorFactory=
Container.lo] Error 1<br>make[3]: Leaving directory `/home/icalixto/tools/g=
ift-0.1.13-install/libMRML/cc&#39;<br>make[2]: *** [all-recursive] Error 1<=
br>
make[2]: Leaving directory `/home/icalixto/tools/gift-0.1.13-install/libMRM=
L&#39;<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving director=
y `/home/icalixto/tools/gift-0.1.13-install&#39;<br>make: *** [all-recursiv=
e-am] Error 2<br>
<br></div><div>=C2=A0=C2=A0=C2=A0 Would you know whether I am doing somethi=
ng wrong? The exact same thing happens both for the versions 0.1.14 and the=
 0.1.13 of gift, by the way.<br></div><div>=C2=A0=C2=A0=C2=A0 Thanks,<br></=
div><div dir=3D"ltr"><br>=C2=A0 =C2=A0 Iacer Calixto.</div>
</div>
</div></div></div></div>

--001a113a76ca27d53404fc4657d6--


--===============1975675336605522559==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
help-GIFT mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-gift
--===============1975675336605522559==--