https://redmine.named-data.net/https://redmine.named-data.net/favicon.ico?14759811232014-06-26T13:44:49ZNDN project issue tracking systemndn-cxx - Bug #1700: Compilation failure on 32-bit Ubuntu 10.04/12.04https://redmine.named-data.net/issues/1700?journal_id=34932014-06-26T13:44:49ZAlex Afanasyev
<ul></ul><p>I have successfully compiled ndn-cxx and NFD on this platform, but in a slightly different environment.</p>
<p>The only thing I compiled from source was boost. Other libraries were installed from the provided packages. However, there were several minor problems that will be fixed soon.</p>
<p>Note is that for some reason precompiled headers do not work with the gcc-4.4 bundled with 10.04. But this is not critical, as they can be disabled. </p>
<p>Here is the log of what I did:</p>
<pre><code>sudo apt-get install libbz2-dev
wget http://downloads.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2
tar jxf boost_1_55_0.tar.bz2
cd boost_1_55_0
./bootstrap.sh
sudo ./b2 --prefix=/usr/local install
...
sudo apt-get install libcrypto++-dev libsqlite3-dev libssl-dev
cd ndn-cxx
./waf configure --debug --without-pch
cd NFD
sudo aptitude install libpcap-dev pkg-config
./waf configure --debug --without-pch
</code></pre> ndn-cxx - Bug #1700: Compilation failure on 32-bit Ubuntu 10.04/12.04https://redmine.named-data.net/issues/1700?journal_id=34982014-06-26T15:27:56ZJunxiao Shi
<ul><li><strong>Tracker</strong> changed from <i>Task</i> to <i>Bug</i></li></ul> ndn-cxx - Bug #1700: Compilation failure on 32-bit Ubuntu 10.04/12.04https://redmine.named-data.net/issues/1700?journal_id=35332014-06-27T13:47:18ZMarc Badrianmarcsb@bellsouth.net
<ul></ul><p>Alex,</p>
<p>Obaid tried to disable precompiled headers, but it didn't go through. Apparently it seems that 10.04 is not supported in this way. We have contacted emulab to work on adding a custom OS image using Ubuntu 12.04 with 32-bit support.</p>
<p>We will try to start from scratch and follow your steps above to see if that changes anything.</p>
<p>Thanks,</p>
<ul>
<li>Marc </li>
</ul>
ndn-cxx - Bug #1700: Compilation failure on 32-bit Ubuntu 10.04/12.04https://redmine.named-data.net/issues/1700?journal_id=35342014-06-27T13:50:29ZAlex Afanasyev
<ul></ul><p>So, was it with the latest code?</p>
<p>If you're using still the latest crypto++ 5.6.2, you need to use customized CXXFLAGS. The way I tried was with older version of crypto++.</p>
ndn-cxx - Bug #1700: Compilation failure on 32-bit Ubuntu 10.04/12.04https://redmine.named-data.net/issues/1700?journal_id=35402014-06-27T14:45:15ZJunxiao Shi
<ul></ul><p>Marc Badrian wrote:</p>
<blockquote>
<p>We have contacted emulab to work on adding a custom OS image using Ubuntu 12.04 with 32-bit support.</p>
</blockquote>
<p>On Emulab you may use <a href="https://www.emulab.net/showosinfo.php3?osid=4180" class="external">UBUNTU-12-64-NFD</a> on pc3000. NFD works fine with this template.</p>
ndn-cxx - Bug #1700: Compilation failure on 32-bit Ubuntu 10.04/12.04https://redmine.named-data.net/issues/1700?journal_id=35452014-06-27T17:20:03ZLan Wanglanwang@memphis.edu
<ul></ul><p>Junxiao: thank you for the information. Is this 64bit or 32bit? My understanding is that they want to use 32 bit because there are more 32 bit machines available. So this maximizes the possibility that there are enough nodes available for the experiment (our experiments involve 15 nodes). </p>
ndn-cxx - Bug #1700: Compilation failure on 32-bit Ubuntu 10.04/12.04https://redmine.named-data.net/issues/1700?journal_id=35462014-06-27T18:34:27ZJunxiao Shi
<ul></ul><p>Lan Wang wrote:</p>
<blockquote>
<p>Is this 64bit or 32bit? My understanding is that they want to use 32 bit because there are more 32 bit machines available. So this maximizes the possibility that there are enough nodes available for the experiment (our experiments involve 15 nodes).</p>
</blockquote>
<p>UBUNTU-12-64-NFD is a 64-bit image.</p>
<p>If you want 32-bit Emulab image, you may use FreeBSD 10.0. See <a class="issue tracker-1 status-6 priority-2 priority-default closed" title="Bug: Build error on FreeBSD 10.0 32-bit (Rejected)" href="https://redmine.named-data.net/issues/1507">#1507</a> for how to compile ndn-cxx on FreeBSD 10.0; NFD should be similar.</p>
ndn-cxx - Bug #1700: Compilation failure on 32-bit Ubuntu 10.04/12.04https://redmine.named-data.net/issues/1700?journal_id=38832014-07-15T11:48:28ZSyed Amin
<ul></ul><p>The steps mentioned by Alex did work, do we still consider this issue as a bug?</p>
<p>BTW, the emulab has Ubuntu 12 32bit version now (UBUNTU12-STD).</p>
ndn-cxx - Bug #1700: Compilation failure on 32-bit Ubuntu 10.04/12.04https://redmine.named-data.net/issues/1700?journal_id=38842014-07-15T13:22:07ZJunxiao Shi
<ul></ul><p>This is still a bug because <code>./waf configure</code> doesn't work, and the specific configuration line isn't mentioned in any document.</p>
ndn-cxx - Bug #1700: Compilation failure on 32-bit Ubuntu 10.04/12.04https://redmine.named-data.net/issues/1700?journal_id=83902015-02-19T12:58:27ZAlex Afanasyev
<ul><li><strong>Subject</strong> changed from <i>Compilation failure on 32-bit Ubuntu 10.04</i> to <i>Compilation failure on 32-bit Ubuntu 10.04/12.04</i></li></ul><p>Similar problem was reproduced on 32-bit Ubuntu 12.04 with gcc-4.8 installed.</p>
<p>This is an issue with the old version of Crypto++ library version 5.6.1 not playing nice with the new compilers. In particular, if the following patch is applied on the system with Crypto++ 5.6.1 installed, the compilation should proceed without errors:</p>
<pre><code>cd /usr/include/cryptopp
patch -p1
</code></pre>
<p>And then copy/paste the following</p>
<pre><code>diff --git a/eccrypto.h b/eccrypto.h
index b359e03..8d7f70f 100644
--- a/eccrypto.h
+++ b/eccrypto.h
@@ -166,9 +166,9 @@ public:
void Initialize(const EC &ec, const Element &G, const Integer &n, const Integer &x)
{this->AccessGroupParameters().Initialize(ec, G, n); this->SetPrivateExponent(x);}
void Initialize(RandomNumberGenerator &rng, const DL_GroupParameters_EC<EC> &params)
- {GenerateRandom(rng, params);}
+ {this->GenerateRandom(rng, params);}
void Initialize(RandomNumberGenerator &rng, const EC &ec, const Element &G, const Integer &n)
- {GenerateRandom(rng, DL_GroupParameters_EC<EC>(ec, G, n));}
+ {this->GenerateRandom(rng, DL_GroupParameters_EC<EC>(ec, G, n));}
// PKCS8PrivateKey
void BERDecodePrivateKey(BufferedTransformation &bt, bool parametersPresent, size_t size);
diff --git a/secblock.h b/secblock.h
index 24b9fc0..40cce33 100644
--- a/secblock.h
+++ b/secblock.h
@@ -88,7 +88,7 @@ public:
pointer allocate(size_type n, const void * = NULL)
{
- CheckSize(n);
+ this->CheckSize(n);
if (n == 0)
return NULL;
</code></pre>
<p>I haven't tried, but I believe installing the latest version of Crypto++ (5.6.2) will also solve the problem.</p>
ndn-cxx - Bug #1700: Compilation failure on 32-bit Ubuntu 10.04/12.04https://redmine.named-data.net/issues/1700?journal_id=194322017-06-07T16:55:22ZAlex Afanasyev
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Abandoned</i></li></ul>