Pages:
Author

Topic: Nexus - Pure SHA3 + CPU/GPU + nPoS + 15 Active Innovations + More to Come - page 87. (Read 785516 times)

full member
Activity: 224
Merit: 100
So Vector Space Systems partnership is official now?

on the blog it says the Letter of Intent (LOI) is signed.  Not sure if that makes it official? any lawyers here ;-)

a letter of intent means fuck all you idiot.

hero member
Activity: 494
Merit: 500
So Vector Space Systems partnership is official now?

on the blog it says the Letter of Intent (LOI) is signed.  Not sure if that makes it official? any lawyers here ;-)
jr. member
Activity: 80
Merit: 1
So Vector Space Systems partnership is official now?
hero member
Activity: 604
Merit: 500
We are very excited to Announce the release of the second Nexus Newsletter.  Some very exciting news this month.  https://nexusnewsletter.com/  Let me or @spaid on Slack know if you have any comments or ideas for future newsletters. 

Good news Smiley looking forward for a Tritium Smiley
sr. member
Activity: 339
Merit: 266
Advancing Liberty Through Blockchain
We are very excited to Announce the release of the second Nexus Newsletter.  Some very exciting news this month.  https://nexusnewsletter.com/  Let me or @spaid on Slack know if you have any comments or ideas for future newsletters. 
newbie
Activity: 50
Merit: 0
Be sure to check out tomorrows News letter!
member
Activity: 88
Merit: 10
Follow your heart.
Why is Nexus rising so quick? I am thinking about buying in some more.
hero member
Activity: 820
Merit: 1000

is it compilable by EVERYONE? ... or still the select ubuntu users? ...
#crysx

The fix that physicsdude suggested works for me on CentOS...
Move the
#define __STDC_FORMAT_MACROS 1
define out of the #ifdef WIN32 and also I think above any other #includes
I might have had to change this in a few places.  


really? ...

which files? ... and where? ... and is this with the v0.2.0.5? ...

ill change them over today today and try the compile ...

#crysx
To be truthful I did this a long time ago on CentOS and don't even have that server anymore.  But I get the exact same issue trying to compile using either cygwin or mingw, I forget which it was, and I also get it when compiling the CPU pool miner under these.  The fix is always the same, wherever the #define __STDC_FORMAT_MACROS 1 is inside another #ifdef then move it outside.  Just do a find-in-files for it.  In the latest code there is only one in /src/core/core.h.  I think it is safe to move it outside of the #ifdef WIN32 for all builds...  <<< physicsdude
legendary
Activity: 2870
Merit: 1091
--- ChainWorks Industries ---

is it compilable by EVERYONE? ... or still the select ubuntu users? ...
#crysx

The fix that physicsdude suggested works for me on CentOS...
Move the
#define __STDC_FORMAT_MACROS 1
define out of the #ifdef WIN32 and also I think above any other #includes
I might have had to change this in a few places.  


really? ...

which files? ... and where? ... and is this with the v0.2.0.5? ...

ill change them over today today and try the compile ...

#crysx
hero member
Activity: 820
Merit: 1000

is it compilable by EVERYONE? ... or still the select ubuntu users? ...
#crysx

The fix that physicsdude suggested works for me on CentOS...
Move the
#define __STDC_FORMAT_MACROS 1
define out of the #ifdef WIN32 and also I think above any other #includes
I might have had to change this in a few places. 
legendary
Activity: 2870
Merit: 1091
--- ChainWorks Industries ---
The long awaited Nexus 3.0 Wallet is just around the corner:



Image by Nexusman

nice graphics ...

is it compilable by EVERYONE? ... or still the select ubuntu users? ...

would like to see how this works ...

we are more than happy to help with the testing and prerelease code ...

#crysx
member
Activity: 74
Merit: 10
The long awaited Nexus 3.0 Wallet is just around the corner:



Image by Nexusman
legendary
Activity: 2870
Merit: 1091
--- ChainWorks Industries ---
Does the error go away when you make the change  shown below (move the line with __STDC_FORMAT_MACROS up by four)?

Code:
$ git diff core.h
diff --git a/src/core/core.h b/src/core/core.h
index 0e69733..44fae06 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -13,9 +13,10 @@
 #include "../net/net.h"
 #include "../wallet/script.h"
 
+#define __STDC_FORMAT_MACROS 1
+
 #ifdef WIN32
 #include /* for _commit */
-#define __STDC_FORMAT_MACROS 1
 #endif
 
 #ifdef USE_UPNP

ill get stuck into it again in the next few days ...

i have many 'real life' errands today - being the beginning of the weekend ( saturday ) and will be back here this afternoon to cleanup a number of things that need to be for cwi ...

os is centos7x64 - gcc48 ... the static builds ( as mentioned earlier ) are due to the lack of a 'proper' openssl implementation held back by redhat redtape Tongue ...

its becoming painful to do this - but once the this is resolved - ill setup a staking node - which you can use as a seed - to test the syncing of the daemon ...

if it ever gets compiled Tongue ...

there is absolutely NO interest in compiling / changing the os over to ubuntu / debian - as there are 'millions' of projects and devs that think the word 'linux' means 'ubuntu' ... it doesnt ...

anyway - lets get this 'fixed' ...

#crysx
newbie
Activity: 55
Merit: 0
I've tried searching and maybe it's already been done, but has anyone compiled PrimePoolMiner successfully on either Ubuntu 12/14, or Centos 6.x?
newbie
Activity: 11
Merit: 0
Does the error go away when you make the change  shown below (move the line with __STDC_FORMAT_MACROS up by four)?

Code:
$ git diff core.h
diff --git a/src/core/core.h b/src/core/core.h
index 0e69733..44fae06 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -13,9 +13,10 @@
 #include "../net/net.h"
 #include "../wallet/script.h"
 
+#define __STDC_FORMAT_MACROS 1
+
 #ifdef WIN32
 #include /* for _commit */
-#define __STDC_FORMAT_MACROS 1
 #endif
 
 #ifdef USE_UPNP
newbie
Activity: 11
Merit: 0
hi all ...

below is the output of the compile ...

Code:
...
src/wallet/../core/core.h: In member function ‘void Core::CBlock::print() const’:
src/wallet/../core/core.h:1486:133: error: expected ‘)’ before ‘PRIu64’
    printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nChannel = %u, nHeight = %u, nNonce=%"PRIu64", vtx=%d, vchBlockSig=%s)\n",

...
                                    ^
make: *** [build/db.o] Error 1
DONE ...

now this is after cloning the 0.2.0.5 branch and compiling that branch alone ...
...
any help would be appreciated ...

#crysx

Looks like this is the part causing trouble core.h:1486:133: error: expected ‘)’ before ‘PRIu64’

I'm going to guess that this is a compiler version issue because it compiles OK on debian and even on Windows under MinGW for me.

What do you get when you run g++ -v? Here's my output

Quote
$ g++ -v
\Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.4' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)


One way or another we'll get this fixed ... even if I have to tweak the source code to do the printf differently so it's supported on more platforms.
newbie
Activity: 11
Merit: 0
just in response to the error encountered with the compile ...
...
im trying to clone from the specific version ( which uses bdb ) but cannot seem to do so ...

any one have an actual parameter i can use to do so? ... would be a great help ...

tanx ...

#crysx

Looks like you already git cloned it, but for future reference you can find the release source code here

https://github.com/Nexusoft/Nexus/releases/tag/0.2.0.5
legendary
Activity: 2870
Merit: 1091
--- ChainWorks Industries ---
hi all ...

below is the output of the compile ...

Code:
g++ -c -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE -I/home/common/cwi-build/libraries/nexus-0.2.0.5 -I/home/common/cwi-build/libraries/nexus-0.2.0.5/build -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/core -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/hash -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/json -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/json -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/LLP -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/net -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/util -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/wallet -I/home/common/cwi-build/deps/include -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o build/version.o src/core/version.cpp
g++ -c -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE -I/home/common/cwi-build/libraries/nexus-0.2.0.5 -I/home/common/cwi-build/libraries/nexus-0.2.0.5/build -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/core -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/hash -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/json -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/json -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/LLP -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/net -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/util -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/wallet -I/home/common/cwi-build/deps/include -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o build/netbase.o src/net/netbase.cpp
In file included from src/net/netbase.cpp:10:0:
src/net/../util/util.h:65:0: warning: "NULL" redefined [enabled by default]
 #define NULL                0
 ^
In file included from /usr/include/dirent.h:245:0,
                 from /home/common/cwi-build/deps/include/boost/interprocess/detail/os_file_functions.hpp:42,
                 from /home/common/cwi-build/deps/include/boost/interprocess/sync/posix/semaphore_wrapper.hpp:25,
                 from /home/common/cwi-build/deps/include/boost/interprocess/sync/posix/semaphore.hpp:26,
                 from /home/common/cwi-build/deps/include/boost/interprocess/sync/interprocess_semaphore.hpp:33,
                 from src/net/../util/util.h:35,
                 from src/net/netbase.cpp:10:
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h:399:0: note: this is the location of the previous definition
 #define NULL __null
 ^
In file included from src/net/../util/util.h:12:0,
                 from src/net/netbase.cpp:10:
src/net/../util/../hash/templates.h: In function ‘uint256 SK256(const std::vector&)’:
src/net/../util/../hash/templates.h:49:23: warning: unused variable ‘pblank’ [-Wunused-variable]
  static unsigned char pblank[1];
                       ^
In file included from src/net/netbase.cpp:10:0:
src/net/../util/util.h: In function ‘std::vector parse_ip(std::string)’:
src/net/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 3 has type ‘unsigned char*’ [-Wformat=]
  sscanf(ip.c_str(), "%hu.%hu.%hu.%hu", &bytes[0], &bytes[1], &bytes[2], &bytes[3]);
                                                                                  ^
src/net/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 4 has type ‘unsigned char*’ [-Wformat=]
src/net/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 5 has type ‘unsigned char*’ [-Wformat=]
src/net/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 6 has type ‘unsigned char*’ [-Wformat=]
In file included from /home/common/cwi-build/deps/include/boost/atomic/detail/atomic_template.hpp:25:0,
                 from /home/common/cwi-build/deps/include/boost/atomic/atomic.hpp:22,
                 from /home/common/cwi-build/deps/include/boost/atomic.hpp:12,
                 from /home/common/cwi-build/deps/include/boost/thread/pthread/once_atomic.hpp:20,
                 from /home/common/cwi-build/deps/include/boost/thread/once.hpp:20,
                 from /home/common/cwi-build/deps/include/boost/thread.hpp:17,
                 from src/net/../util/util.h:26,
                 from src/net/netbase.cpp:10:
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp: In instantiation of ‘To boost::atomics::detail::bitwise_cast(const From&) [with To = long unsigned int; From = void*]’:
/home/common/cwi-build/deps/include/boost/atomic/detail/atomic_template.hpp:556:139:   required from here
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp:39:14: warning: missing initializer for member ‘boost::atomics::detail::bitwise_cast(const From&) [with To = long unsigned int; From = void*]::::to’ [-Wmissing-field-initializers]
     value = {};
              ^
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp: In instantiation of ‘To boost::atomics::detail::bitwise_cast(const From&) [with To = void*; From = long unsigned int]’:
/home/common/cwi-build/deps/include/boost/atomic/detail/atomic_template.hpp:574:100:   required from here
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp:39:14: warning: missing initializer for member ‘boost::atomics::detail::bitwise_cast(const From&) [with To = void*; From = long unsigned int]::::to’ [-Wmissing-field-initializers]
g++ -c -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE -I/home/common/cwi-build/libraries/nexus-0.2.0.5 -I/home/common/cwi-build/libraries/nexus-0.2.0.5/build -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/core -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/hash -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/json -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/json -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/LLP -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/net -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/util -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/wallet -I/home/common/cwi-build/deps/include -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o build/addrman.o src/net/addrman.cpp
In file included from src/net/addrman.h:14:0,
                 from src/net/addrman.cpp:9:
src/net/../util/util.h:65:0: warning: "NULL" redefined [enabled by default]
 #define NULL                0
 ^
In file included from /usr/include/dirent.h:245:0,
                 from /home/common/cwi-build/deps/include/boost/interprocess/detail/os_file_functions.hpp:42,
                 from /home/common/cwi-build/deps/include/boost/interprocess/sync/posix/semaphore_wrapper.hpp:25,
                 from /home/common/cwi-build/deps/include/boost/interprocess/sync/posix/semaphore.hpp:26,
                 from /home/common/cwi-build/deps/include/boost/interprocess/sync/interprocess_semaphore.hpp:33,
                 from src/net/../util/util.h:35,
                 from src/net/addrman.h:14,
                 from src/net/addrman.cpp:9:
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h:399:0: note: this is the location of the previous definition
 #define NULL __null
 ^
In file included from src/net/../util/util.h:12:0,
                 from src/net/addrman.h:14,
                 from src/net/addrman.cpp:9:
src/net/../util/../hash/templates.h: In function ‘uint256 SK256(const std::vector&)’:
src/net/../util/../hash/templates.h:49:23: warning: unused variable ‘pblank’ [-Wunused-variable]
  static unsigned char pblank[1];
                       ^
In file included from src/net/addrman.h:14:0,
                 from src/net/addrman.cpp:9:
src/net/../util/util.h: In function ‘std::vector parse_ip(std::string)’:
src/net/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 3 has type ‘unsigned char*’ [-Wformat=]
  sscanf(ip.c_str(), "%hu.%hu.%hu.%hu", &bytes[0], &bytes[1], &bytes[2], &bytes[3]);
                                                                                  ^
src/net/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 4 has type ‘unsigned char*’ [-Wformat=]
src/net/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 5 has type ‘unsigned char*’ [-Wformat=]
src/net/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 6 has type ‘unsigned char*’ [-Wformat=]
In file included from /home/common/cwi-build/deps/include/boost/atomic/detail/atomic_template.hpp:25:0,
                 from /home/common/cwi-build/deps/include/boost/atomic/atomic.hpp:22,
                 from /home/common/cwi-build/deps/include/boost/atomic.hpp:12,
                 from /home/common/cwi-build/deps/include/boost/thread/pthread/once_atomic.hpp:20,
                 from /home/common/cwi-build/deps/include/boost/thread/once.hpp:20,
                 from /home/common/cwi-build/deps/include/boost/thread.hpp:17,
                 from src/net/../util/util.h:26,
                 from src/net/addrman.h:14,
                 from src/net/addrman.cpp:9:
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp: In instantiation of ‘To boost::atomics::detail::bitwise_cast(const From&) [with To = long unsigned int; From = void*]’:
/home/common/cwi-build/deps/include/boost/atomic/detail/atomic_template.hpp:556:139:   required from here
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp:39:14: warning: missing initializer for member ‘boost::atomics::detail::bitwise_cast(const From&) [with To = long unsigned int; From = void*]::::to’ [-Wmissing-field-initializers]
     value = {};
              ^
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp: In instantiation of ‘To boost::atomics::detail::bitwise_cast(const From&) [with To = void*; From = long unsigned int]’:
/home/common/cwi-build/deps/include/boost/atomic/detail/atomic_template.hpp:574:100:   required from here
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp:39:14: warning: missing initializer for member ‘boost::atomics::detail::bitwise_cast(const From&) [with To = void*; From = long unsigned int]::::to’ [-Wmissing-field-initializers]
g++ -c -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE -I/home/common/cwi-build/libraries/nexus-0.2.0.5 -I/home/common/cwi-build/libraries/nexus-0.2.0.5/build -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/core -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/hash -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/json -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/json -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/LLP -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/net -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/util -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/wallet -I/home/common/cwi-build/deps/include -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -fpermissive -o build/crypter.o src/wallet/crypter.cpp
g++ -c -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE -I/home/common/cwi-build/libraries/nexus-0.2.0.5 -I/home/common/cwi-build/libraries/nexus-0.2.0.5/build -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/core -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/hash -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/json -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/json -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/LLP -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/net -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/util -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/wallet -I/home/common/cwi-build/deps/include -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -fpermissive -o build/key.o src/wallet/key.cpp
In file included from src/wallet/key.cpp:15:0:
src/wallet/../util/util.h:65:0: warning: "NULL" redefined [enabled by default]
 #define NULL                0
 ^
In file included from /usr/include/dirent.h:245:0,
                 from /home/common/cwi-build/deps/include/boost/interprocess/detail/os_file_functions.hpp:42,
                 from /home/common/cwi-build/deps/include/boost/interprocess/sync/posix/semaphore_wrapper.hpp:25,
                 from /home/common/cwi-build/deps/include/boost/interprocess/sync/posix/semaphore.hpp:26,
                 from /home/common/cwi-build/deps/include/boost/interprocess/sync/interprocess_semaphore.hpp:33,
                 from src/wallet/../util/util.h:35,
                 from src/wallet/key.cpp:15:
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h:399:0: note: this is the location of the previous definition
 #define NULL __null
 ^
In file included from src/wallet/../util/util.h:12:0,
                 from src/wallet/key.cpp:15:
src/wallet/../util/../hash/templates.h: In function ‘uint256 SK256(const std::vector&)’:
src/wallet/../util/../hash/templates.h:49:23: warning: unused variable ‘pblank’ [-Wunused-variable]
  static unsigned char pblank[1];
                       ^
In file included from src/wallet/key.cpp:15:0:
src/wallet/../util/util.h: In function ‘std::vector parse_ip(std::string)’:
src/wallet/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 3 has type ‘unsigned char*’ [-Wformat=]
  sscanf(ip.c_str(), "%hu.%hu.%hu.%hu", &bytes[0], &bytes[1], &bytes[2], &bytes[3]);
                                                                                  ^
src/wallet/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 4 has type ‘unsigned char*’ [-Wformat=]
src/wallet/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 5 has type ‘unsigned char*’ [-Wformat=]
src/wallet/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 6 has type ‘unsigned char*’ [-Wformat=]
In file included from /home/common/cwi-build/deps/include/boost/atomic/detail/atomic_template.hpp:25:0,
                 from /home/common/cwi-build/deps/include/boost/atomic/atomic.hpp:22,
                 from /home/common/cwi-build/deps/include/boost/atomic.hpp:12,
                 from /home/common/cwi-build/deps/include/boost/thread/pthread/once_atomic.hpp:20,
                 from /home/common/cwi-build/deps/include/boost/thread/once.hpp:20,
                 from /home/common/cwi-build/deps/include/boost/thread.hpp:17,
                 from src/wallet/../util/util.h:26,
                 from src/wallet/key.cpp:15:
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp: In instantiation of ‘To boost::atomics::detail::bitwise_cast(const From&) [with To = long unsigned int; From = void*]’:
/home/common/cwi-build/deps/include/boost/atomic/detail/atomic_template.hpp:556:139:   required from here
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp:39:14: warning: missing initializer for member ‘boost::atomics::detail::bitwise_cast(const From&) [with To = long unsigned int; From = void*]::::to’ [-Wmissing-field-initializers]
     value = {};
              ^
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp: In instantiation of ‘To boost::atomics::detail::bitwise_cast(const From&) [with To = void*; From = long unsigned int]’:
/home/common/cwi-build/deps/include/boost/atomic/detail/atomic_template.hpp:574:100:   required from here
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp:39:14: warning: missing initializer for member ‘boost::atomics::detail::bitwise_cast(const From&) [with To = void*; From = long unsigned int]::::to’ [-Wmissing-field-initializers]
g++ -c -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE -I/home/common/cwi-build/libraries/nexus-0.2.0.5 -I/home/common/cwi-build/libraries/nexus-0.2.0.5/build -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/core -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/hash -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/json -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/json -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/LLP -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/net -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/util -I/home/common/cwi-build/libraries/nexus-0.2.0.5/src/wallet -I/home/common/cwi-build/deps/include -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -fpermissive -o build/db.o src/wallet/db.cpp
In file included from src/wallet/../core/../util/bignum.h:16:0,
                 from src/wallet/../core/core.h:12,
                 from src/wallet/db.h:12,
                 from src/wallet/db.cpp:9:
src/wallet/../core/../util/../util/util.h:65:0: warning: "NULL" redefined [enabled by default]
 #define NULL                0
 ^
In file included from /usr/include/sys/mman.h:25:0,
                 from src/wallet/../core/../util/../util/../net/../util/../util/allocators.h:32,
                 from src/wallet/../core/../util/../util/../net/../util/serialize.h:27,
                 from src/wallet/../core/../util/../util/../net/netbase.h:15,
                 from src/wallet/../core/../util/../util/util.h:40,
                 from src/wallet/../core/../util/bignum.h:16,
                 from src/wallet/../core/core.h:12,
                 from src/wallet/db.h:12,
                 from src/wallet/db.cpp:9:
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h:399:0: note: this is the location of the previous definition
 #define NULL __null
 ^
In file included from src/wallet/../core/../util/../util/util.h:12:0,
                 from src/wallet/../core/../util/bignum.h:16,
                 from src/wallet/../core/core.h:12,
                 from src/wallet/db.h:12,
                 from src/wallet/db.cpp:9:
src/wallet/../core/../util/../util/../hash/templates.h: In function ‘uint256 SK256(const std::vector&)’:
src/wallet/../core/../util/../util/../hash/templates.h:49:23: warning: unused variable ‘pblank’ [-Wunused-variable]
  static unsigned char pblank[1];
                       ^
In file included from src/wallet/../core/../util/bignum.h:16:0,
                 from src/wallet/../core/core.h:12,
                 from src/wallet/db.h:12,
                 from src/wallet/db.cpp:9:
src/wallet/../core/../util/../util/util.h: In function ‘std::vector parse_ip(std::string)’:
src/wallet/../core/../util/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 3 has type ‘unsigned char*’ [-Wformat=]
  sscanf(ip.c_str(), "%hu.%hu.%hu.%hu", &bytes[0], &bytes[1], &bytes[2], &bytes[3]);
                                                                                  ^
src/wallet/../core/../util/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 4 has type ‘unsigned char*’ [-Wformat=]
src/wallet/../core/../util/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 5 has type ‘unsigned char*’ [-Wformat=]
src/wallet/../core/../util/../util/util.h:105:82: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 6 has type ‘unsigned char*’ [-Wformat=]
In file included from src/wallet/db.h:12:0,
                 from src/wallet/db.cpp:9:
src/wallet/../core/core.h: In member function ‘int Core::CTrustKey::GetBlock(uint1024)’:
src/wallet/../core/core.h:642:8: warning: unused variable ‘nRemove’ [-Wunused-variable]
    int nRemove = -1;
        ^
src/wallet/../core/core.h: In member function ‘void Core::CTrustKey::Print()’:
src/wallet/../core/core.h:669:85: error: expected ‘)’ before ‘PRIu64’
    printf("CTrustKey(Hash = %s, Key = %s, Genesis = %s, Tx = %s, Time = %u, Age = %"PRIu64", BlockAge = %"PRIu64", Expired = %s)\n", GetHash().ToString().c_str(), cKey.ToString().c_str(), hashGenesisBlock.ToString().c_str(), hashGenesisTx.ToString().c_str(), nGenesisTime, Age(GetUnifiedTimestamp()), BlockAge(GetUnifiedTimestamp()), Expired(GetUnifiedTimestamp()) ? "TRUE" : "FALSE");
                                                                                     ^
In file included from src/wallet/db.h:12:0,
                 from src/wallet/db.cpp:9:
src/wallet/../core/core.h: In member function ‘void Core::CBlock::print() const’:
src/wallet/../core/core.h:1486:133: error: expected ‘)’ before ‘PRIu64’
    printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nChannel = %u, nHeight = %u, nNonce=%"PRIu64", vtx=%d, vchBlockSig=%s)\n",
                                                                                                                                     ^
In file included from /home/common/cwi-build/deps/include/boost/atomic/detail/atomic_template.hpp:25:0,
                 from /home/common/cwi-build/deps/include/boost/atomic/atomic.hpp:22,
                 from /home/common/cwi-build/deps/include/boost/atomic.hpp:12,
                 from /home/common/cwi-build/deps/include/boost/thread/pthread/once_atomic.hpp:20,
                 from /home/common/cwi-build/deps/include/boost/thread/once.hpp:20,
                 from /home/common/cwi-build/deps/include/boost/thread.hpp:17,
                 from src/wallet/../core/../util/../util/util.h:26,
                 from src/wallet/../core/../util/bignum.h:16,
                 from src/wallet/../core/core.h:12,
                 from src/wallet/db.h:12,
                 from src/wallet/db.cpp:9:
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp: In instantiation of ‘To boost::atomics::detail::bitwise_cast(const From&) [with To = long unsigned int; From = void*]’:
/home/common/cwi-build/deps/include/boost/atomic/detail/atomic_template.hpp:556:139:   required from here
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp:39:14: warning: missing initializer for member ‘boost::atomics::detail::bitwise_cast(const From&) [with To = long unsigned int; From = void*]::::to’ [-Wmissing-field-initializers]
     value = {};
              ^
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp: In instantiation of ‘To boost::atomics::detail::bitwise_cast(const From&) [with To = void*; From = long unsigned int]’:
/home/common/cwi-build/deps/include/boost/atomic/detail/atomic_template.hpp:574:100:   required from here
/home/common/cwi-build/deps/include/boost/atomic/detail/bitwise_cast.hpp:39:14: warning: missing initializer for member ‘boost::atomics::detail::bitwise_cast(const From&) [with To = void*; From = long unsigned int]::::to’ [-Wmissing-field-initializers]
src/wallet/db.cpp: In member function ‘bool Wallet::CTimeDB::WriteTimeData(int)’:
src/wallet/db.cpp:349:2: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
In file included from /home/common/cwi-build/deps/include/boost/asio/detail/impl/posix_mutex.ipp:24:0,
                 from /home/common/cwi-build/deps/include/boost/asio/detail/posix_mutex.hpp:73,
                 from /home/common/cwi-build/deps/include/boost/asio/detail/mutex.hpp:25,
                 from /home/common/cwi-build/deps/include/boost/asio/detail/service_registry.hpp:20,
                 from /home/common/cwi-build/deps/include/boost/asio/impl/io_service.hpp:19,
                 from /home/common/cwi-build/deps/include/boost/asio/io_service.hpp:767,
                 from /home/common/cwi-build/deps/include/boost/asio/basic_io_object.hpp:19,
                 from /home/common/cwi-build/deps/include/boost/asio/basic_socket.hpp:20,
                 from /home/common/cwi-build/deps/include/boost/asio/basic_datagram_socket.hpp:20,
                 from /home/common/cwi-build/deps/include/boost/asio.hpp:21,
                 from src/wallet/../core/../util/../util/util.h:30,
                 from src/wallet/../core/../util/bignum.h:16,
                 from src/wallet/../core/core.h:12,
                 from src/wallet/db.h:12,
                 from src/wallet/db.cpp:9:
/home/common/cwi-build/deps/include/boost/asio/error.hpp: At global scope:
/home/common/cwi-build/deps/include/boost/asio/error.hpp:258:45: warning: ‘boost::asio::error::system_category’ defined but not used [-Wunused-variable]
 static const boost::system::error_category& system_category
                                             ^
/home/common/cwi-build/deps/include/boost/asio/error.hpp:260:45: warning: ‘boost::asio::error::netdb_category’ defined but not used [-Wunused-variable]
 static const boost::system::error_category& netdb_category
                                             ^
/home/common/cwi-build/deps/include/boost/asio/error.hpp:262:45: warning: ‘boost::asio::error::addrinfo_category’ defined but not used [-Wunused-variable]
 static const boost::system::error_category& addrinfo_category
                                             ^
/home/common/cwi-build/deps/include/boost/asio/error.hpp:264:45: warning: ‘boost::asio::error::misc_category’ defined but not used [-Wunused-variable]
 static const boost::system::error_category& misc_category
                                             ^
In file included from /home/common/cwi-build/deps/include/boost/system/system_error.hpp:14:0,
                 from /home/common/cwi-build/deps/include/boost/thread/exceptions.hpp:22,
                 from /home/common/cwi-build/deps/include/boost/thread/pthread/thread_data.hpp:10,
                 from /home/common/cwi-build/deps/include/boost/thread/thread_only.hpp:17,
                 from /home/common/cwi-build/deps/include/boost/thread/thread.hpp:12,
                 from /home/common/cwi-build/deps/include/boost/thread.hpp:13,
                 from src/wallet/../core/../util/../util/util.h:26,
                 from src/wallet/../core/../util/bignum.h:16,
                 from src/wallet/../core/core.h:12,
                 from src/wallet/db.h:12,
                 from src/wallet/db.cpp:9:
/home/common/cwi-build/deps/include/boost/system/error_code.hpp:221:36: warning: ‘boost::system::posix_category’ defined but not used [-Wunused-variable]
     static const error_category &  posix_category = generic_category();
                                    ^
/home/common/cwi-build/deps/include/boost/system/error_code.hpp:222:36: warning: ‘boost::system::errno_ecat’ defined but not used [-Wunused-variable]
     static const error_category &  errno_ecat     = generic_category();
                                    ^
/home/common/cwi-build/deps/include/boost/system/error_code.hpp:223:36: warning: ‘boost::system::native_ecat’ defined but not used [-Wunused-variable]
     static const error_category &  native_ecat    = system_category();
                                    ^
make: *** [build/db.o] Error 1
DONE ...

now this is after cloning the 0.2.0.5 branch and compiling that branch alone ...

i cant see anything in here that would cause it to crash and burn like this - but then - im very frustrated with it now ...

things that are needed as prerequisites to this ...

- it is being compiled under centos 7 x64 ...
- it is being compiled as a static daemon ...
- the other components ( boost - openssl - bdb ) are all statically compiled also ...
- there are no issues with other coins compiling in this manner - thats how its done here with the other coins we support ...

any help would be appreciated ...

#crysx
legendary
Activity: 2870
Merit: 1091
--- ChainWorks Industries ---
hero member
Activity: 820
Merit: 1000
Pages:
Jump to: