<font size=2 face="sans-serif">Dear colleagues,</font>
<br>
<br><font size=2 face="sans-serif">Problem solved! </font>
<br>
<br><font size=2 face="sans-serif">To give you a current feedback about
the status of the port. I've succeed to ported the RIAK database under
the IBM mainframe system z model E114 running it under the Linux SUSE SLES
11 SP1. I was very happy to find a post from Mr. Nobuhiro Iwamatsu (Debian
Linux Engineer) who described a fix for the module atomic_pointer.h to
reconize the S390 architecture (possibly also the Power7). I suggest to
Basho to include this fix into the latest .github source distribution.
</font>
<br>
<br><font size=2 face="sans-serif"> I'v applied those changes to the
module and the executable now was successfully built.. I already did some
testing with the Python and Java clients , both are working perfectly with
a few samples from the Basho wiki. </font>
<br>
<br><font size=2 face="sans-serif">First of all, my big thanks for the
great support from the Erlang user group, as well as the Riak user group
that both helped me to quickly fix those porting issues. </font>
<br><font size=2 face="sans-serif">Regards, </font>
<br><font size=2 face="sans-serif">Claude <br>
</font><font size=1 color=#a2a2a2 face="Arial"><b><br>
</b></font>
<br>
<hr>
<br><font size=2 face="sans-serif">Dear colleagues, </font>
<br>
<br><font size=2 face="sans-serif">Thanks for the quick replies in usergroup.
</font>
<br>
<br><font size=2 face="sans-serif">I've reinstalled the <b>"curl"</b>
and <b>"expat"</b> packages both from its source and rebuilt
the <b>"git"</b> tool using the: </font>
<br>
<br><tt><font size=2>./configure --with-curl --with-expat </font></tt>
<br>
<br><font size=2 face="sans-serif">ps .. yes, for Suse it must be done
from source.</font><tt><font size=2> </font></tt>
<br>
<br><font size=2 face="sans-serif">As Jared pointed below, by changing
the git protocol to "<b>http://</b>" it solved the issue and
the "leveldb" package was successfully downloaded. </font>
<br><font size=2 face="sans-serif">This is a good step forwards. <br>
</font>
<br><font size=2 face="sans-serif">During the build and a few steps later
I got another error message telling: "<b>Please implement AtomicPointer
for this platform" </b></font>
<br>
<br><tt><font size=2>HEAD is now at 14478f1... Rework compaction scoring
to ensure L1 doesn't exceed the max bytes on that level</font></tt>
<br><tt><font size=2>make[1]: Entering directory `/opt/riak/riak-1.1.2/deps/eleveldb/c_src/leveldb'</font></tt>
<br><tt><font size=2>c++ -fPIC -fPIC -I /opt/riak/riak-1.1.2/deps/eleveldb/c_src/system/include
-c -I. -I./include -fno-builtin-memcmp -DLEVELDB_PLATFORM_POSIX -pthread
-DOS_LINUX -O2 -DNDEBUG -DSNAPPY db/builder.cc
-o db/builder.o</font></tt>
<br><tt><font size=2>In file included from ./port/port_posix.h:28,</font></tt>
<br><tt><font size=2>
from ./port/port.h:14,</font></tt>
<br><tt><font size=2>
from ./db/filename.h:14,</font></tt>
<br><tt><font size=2>
from db/builder.cc:7:</font></tt>
<br><tt><font size=2>./port/atomic_pointer.h:133:2: error: #error Please
implement AtomicPointer for this platform.</font></tt>
<br><tt><font size=2>make[1]: *** [db/builder.o] Error 1</font></tt>
<br><tt><font size=2>make[1]: Leaving directory `/opt/riak/riak-1.1.2/deps/eleveldb/c_src/leveldb'</font></tt>
<br><tt><font size=2>ERROR: Command [compile] failed!</font></tt>
<br><tt><font size=2>make: *** [rel] Error 1</font></tt>
<br>
<br><font size=2 face="sans-serif">Any idea how to fix this error? Any
dependency with other packages? </font>
<br>
<br><font size=2 face="sans-serif">Thanks in advance for your support.
</font>
<br><font size=2 face="sans-serif"><br>
Regards, </font>
<br><font size=2 face="sans-serif">Claude </font>
<br><font size=2 face="sans-serif"><br>
</font><font size=1 color=#a2a2a2 face="Arial"><b><br>
Claude Falbriard <br>
Certified IT Specialist L2 - Middleware<br>
AMS Hortolāndia / SP - Brazil<br>
phone: +55 19 9837 0789<br>
cell: +55 13 8117 3316<br>
e-mail: claudef@br.ibm.com<br>
</b></font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">Jared Morrow <jared@basho.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">claudef@br.ibm.com</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:
</font><font size=1 face="sans-serif">riak-users@lists.basho.com</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">28/04/2012 01:17</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Re: Issue with
Riak Install from Source under SUSE SLES 11 SP11 Version S390</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Claude,</font>
<br>
<br><font size=3>The issue is not in the rebar.config file for eleveldb,
but in a file that fetches the original C++ source for leveldb.
To fix your issue, simply unpack the riak source as you already did then:</font>
<br>
<br><font size=3>$ cd deps/eleveldb</font>
<br>
<br><font size=3>And then make the following changes to 'c_src/build_deps.sh':</font>
<br>
<br><font size=3>--- c_src/build_deps.sh.orig 2012-04-27 22:06:31.000000000
-0600</font>
<br><font size=3>+++ c_src/build_deps.sh 2012-04-27 22:07:49.000000000
-0600</font>
<br><font size=3>@@ -37,7 +37,7 @@</font>
<br><font size=3> export LD_LIBRARY_PATH="$BASEDIR/system/lib:$LD_LIBRARY_PATH"</font>
<br><font size=3> </font>
<br><font size=3> if [ ! -d leveldb ];
then</font>
<br><font size=3>- git clone </font><a href=git://github.com/basho/leveldb><font size=3 color=blue><u>git://github.com/basho/leveldb</u></font></a>
<br><font size=3>+ git clone </font><a href=http://github.com/basho/leveldb><font size=3 color=blue><u>http://github.com/basho/leveldb</u></font></a>
<br><font size=3> (cd leveldb
&& git checkout $LEVELDB_VSN)</font>
<br><font size=3> fi</font>
<br><font size=3> </font>
<br><font size=3>Then return to the top-level source directory for Riak
and run 'make' and things should be better.</font>
<br>
<br><font size=3>-Jared</font>
<br>
<br>
<br><font size=3><br>
</font>
<br><font size=3>On Apr 27, 2012, at 12:31 PM, </font><a href=mailto:claudef@br.ibm.com><font size=3 color=blue><u>claudef@br.ibm.com</u></font></a><font size=3>
wrote:</font>
<br>
<br><font size=2 face="sans-serif">Dear colleagues,</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Trying to install the RIAK package under a SUSE SLES 11 SP11 Version
S390. I've downloaded the .tar.gz install file from the BASHO site. First
I've installed the Erlang package with the </font><tt><font size=2>--with-ssl</font></tt><font size=2 face="sans-serif">
option and recompiled the openssl package with the "</font><tt><font size=2>shared</font></tt><font size=2 face="sans-serif">"
option, as requested by the Erlang procedure. </font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
Using the "make rel" command, I see a successful build running
on the screen, until a point where the install tries to connect to the
GITHUB, throwing an error like this: <br>
</font><tt><font size=2><br>
test -z "/opt/riak/riak-1.1.2/deps/eleveldb/c_src/system/share/doc/snappy"
|| /bin/mkdir -p "/opt/riak/riak-1.1.2/deps/eleveldb/c_src/system/share/doc/snappy"</font></tt><font size=3>
</font><tt><font size=2><br>
/usr/bin/install -c -m 644 ChangeLog COPYING INSTALL NEWS README format_description.txt
'/opt/riak/riak-1.1.2/deps/eleveldb/c_src/system/share/doc/snappy'</font></tt><font size=3>
</font><tt><font size=2><br>
test -z "/opt/riak/riak-1.1.2/deps/eleveldb/c_src/system/include"
|| /bin/mkdir -p "/opt/riak/riak-1.1.2/deps/eleveldb/c_src/system/include"</font></tt><font size=3>
</font><tt><font size=2><br>
/usr/bin/install -c -m 644 snappy.h snappy-sinksource.h snappy-stubs-public.h
snappy-c.h '/opt/riak/riak-1.1.2/deps/eleveldb/c_src/system/include'</font></tt><font size=3>
</font><tt><font size=2><br>
make[2]: Leaving directory `/opt/riak/riak-1.1.2/deps/eleveldb/c_src/snappy-1.0.4'</font></tt><font size=3>
</font><tt><font size=2><br>
make[1]: Leaving directory `/opt/riak/riak-1.1.2/deps/eleveldb/c_src/snappy-1.0.4'</font></tt><font size=3>
<br>
</font><tt><font size=2><br>
fatal: unable to connect to </font></tt><a href=http://github.com/><tt><font size=2 color=blue><u>github.com</u></font></tt></a><tt><font size=2>:</font></tt><font size=3>
</font><tt><font size=2 color=blue><u><br>
</u></font></tt><a href=http://github.com/><tt><font size=2 color=blue><u>github.com</u></font></tt></a><tt><font size=2>[0:
207.97.227.239]: errno=Connection refused</font></tt><font size=3> <br>
</font><tt><font size=2><br>
Cloning into 'leveldb'...</font></tt><font size=3> </font><tt><font size=2><br>
ERROR: Command [compile] failed!</font></tt><font size=3> </font><tt><font size=2><br>
make: *** [rel] Error 1</font></tt><font size=3> </font><tt><font size=2><br>
</font></tt><font size=3> </font><font size=2 face="sans-serif"><br>
The riak executable was not yet created under the /bin. </font><font size=3><br>
<br>
</font><font size=2 face="sans-serif"><br>
Question: </font><font size=3> </font><font size=2 face="sans-serif"><br>
--------------</font><font size=3> </font><font size=2 face="sans-serif"><br>
Is there a way to avoid a connect to GITHUB during the package build from
source, or could you give me a pointer what is causing the connection to
be refused, as our firewall is configured for outgoing HTTP connections
(which port and protocol does it use?). </font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
Thanks in advance for your feedback and support.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Regards, <br>
Claude </font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
</font><font size=1 color=#a2a2a2 face="Arial"><b><br>
<br>
Claude Falbriard <br>
Certified IT Specialist L2 - Middleware<br>
AMS Hortolāndia / SP - Brazil<br>
phone: +55 19 9837 0789<br>
cell: +55 13 8117 3316<br>
e-mail: </b></font><a href=mailto:claudef@br.ibm.com><font size=1 color=blue face="Arial"><b><u>claudef@br.ibm.com</u></b></font></a><font size=3><br>
_______________________________________________<br>
riak-users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:riak-users@lists.basho.com"><font size=3 color=blue><u>riak-users@lists.basho.com</u></font></a><font size=3><br>
</font><a href="http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com"><font size=3>http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com</font></a>
<br>
<br>