Pages:
Author

Topic: [EMC] EMERCOIN — Blockchain Service Platform. PoS&PoW | BTC merge-mined - page 97. (Read 393776 times)

newbie
Activity: 15
Merit: 0
Here is probably what happens:

net.cpp declares a function which is defined in stun.cpp. It complains about ambiguous uint64_t type in that function signature. In stun.cpp uint64_t is defined by

#include

* - If we have that library installed it should be obvious for the compiler which uint64_t to use - the one that comes from stun.cpp.
* - If we do not have that library installed, compilers sees a couple of other variants of uint64_t and do not know which one to use.

Please, check if you have that file installed. On my system it comes from 2 sources:

libc6-dev:amd64: /usr/include/netinet/in.h
syslinux-common: /usr/lib/syslinux/com32/include/netinet/in.h


And more generally, you should have access to all 4 includes from stun.cpp on your system:

#include
#include
#include
#include

If you do have them, then this is more puzzling than I thought...


Edit:

You can check that by opening makefile.unix file and changing compilation order, so that
    obj/stun.o \
is compiled before
    obj/net.o \

currently it compiled after it, like so:
    obj/net.o \
.
.
.
    obj/stun.o \

So, if stun.cpp compiles without errors before net.cpp, then it means you have all 4 includes on your system.
newbie
Activity: 15
Merit: 0
Well, that is strange. Thank you for reporting this. I will try to compile daemon with this string right now and see how it goes:

cd src
make -f makefile.unix CXXFLAGS="-I/usr/local/BerkeleyDB.4.8/include -L/usr/local/BerkeleyDB.4.8/lib" USE_UPNP=-

The only difference from your "make" string is that I am pointing it at libdb installation.

Edit: compiled without errors and with some warnings:

Code:
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/evgenij/programming/c++/emercoin/src -I/home/evgenij/programming/c++/emercoin/src/obj -DUSE_IPV6=1 -I/home/evgenij/programming/c++/emercoin/src/leveldb/include -I/home/evgenij/programming/c++/emercoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -I/usr/local/BerkeleyDB.4.8/include -L/usr/local/BerkeleyDB.4.8/lib -MMD -MF obj/stun.d -o obj/stun.o stun.cpp
stun.cpp: In function ‘int stun_handle_packet(int, sockaddr_in*, unsigned char*, size_t, int (*)(stun_attr*, void*), void*)’:
stun.cpp:360:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(x < len)
          ^
stun.cpp:371:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (x > len) {
             ^
stun.cpp: In function ‘int StunRequest2(int, sockaddr_in*, sockaddr_in*)’:
stun.cpp:318:30: warning: ‘reqdata.stun_header::id.stun_trans_id::id[0]’ is used uninitialized in this function [-Wuninitialized]
   req->id.id[0] |= 0x55555555;
                              ^
stun.cpp:423:17: note: ‘reqdata’ was declared here
   unsigned char reqdata[1024];

My g++ version is:
g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2

But it should also work with g++ version used on ubuntu lucid.
sr. member
Activity: 296
Merit: 250
ice00, what kind of environment you are using when compiling v0.4.0? I was using Ubuntu 14.04 when developing this version, with their version of gcc and libraries.

As for boost: official release uses boost_1_50_0.tar.bz2, but I was also able to compile it on 14.04 with their boost version - 1.54 .

Apparently the same:

Code:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:        14.04
Codename:       trusty
newbie
Activity: 15
Merit: 0
ice00, what kind of environment you are using when compiling v0.4.0? I was using Ubuntu 14.04 when developing this version, with their version of gcc and libraries.

As for boost:
*) Official release uses boost_1_50_0.tar.bz2 on windows
*) On linux it uses whatever version is on Ubuntu Lucid (which is 1.40, if I am not mistaken).
*) I was also able to compile it on ubuntu 14.04 with their boost version - 1.54.

So, at least 3 different versions should work.
sr. member
Activity: 296
Merit: 250
too fast:

Quote
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/opt/multi-pool/src/emercoin/src -I/opt/multi-pool/src/emercoin/src/obj -DUSE_IPV6=1 -I/opt/multi-pool/src/emercoin/src/leveldb/include -I/opt/multi-pool/src/emercoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/net.d -o obj/net.o net.cpp
net.cpp:408:25: error: reference to ‘uint64_t’ is ambiguous
 int GetExternalIPbySTUN(uint64_t rnd, struct sockaddr_in *mapped, const char **srv);
                         ^
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0,
                 from /usr/include/inttypes.h:27,
                 from uint256.h:11,
                 from util.h:9,
                 from bignum.h:12,
                 from main.h:9,
                 from db.h:9,
                 from net.cpp:7:
/usr/include/stdint.h:55:27: note: candidates are: typedef long unsigned int uint64_t
 typedef unsigned long int uint64_t;
                           ^
In file included from /usr/include/boost/date_time/compiler_config.hpp:54:0,
                 from /usr/include/boost/date_time/c_time.hpp:21,
                 from /usr/include/boost/date_time/time_clock.hpp:16,
                 from /usr/include/boost/thread/thread_time.hpp:9,
                 from /usr/include/boost/thread/locks.hpp:12,
                 from /usr/include/boost/thread/pthread/mutex.hpp:12,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from util.h:27,
                 from bignum.h:12,
                 from main.h:9,
                 from db.h:9,
                 from net.cpp:7:
/usr/include/boost/cstdint.hpp:311:42: note:                 typedef boost::ulong_long_type boost::uint64_t
      typedef  ::boost::ulong_long_type   uint64_t;
                                          ^
net.cpp:408:39: error: expected primary-expression before ‘struct’
 int GetExternalIPbySTUN(uint64_t rnd, struct sockaddr_in *mapped, const char **srv);
                                       ^
net.cpp:408:67: error: expected primary-expression before ‘const’
 int GetExternalIPbySTUN(uint64_t rnd, struct sockaddr_in *mapped, const char **srv);
                                                                   ^
net.cpp:408:83: error: expression list treated as compound expression in initializer [-fpermissive]
 int GetExternalIPbySTUN(uint64_t rnd, struct sockaddr_in *mapped, const char **srv);
                                                                                   ^
net.cpp: In function ‘bool GetMyExternalIP_STUN(CNetAddr&)’:
net.cpp:413:3: error: reference to ‘uint64_t’ is ambiguous
   uint64_t rnd = GetRand(~0LL);
   ^
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0,
                 from /usr/include/inttypes.h:27,
                 from uint256.h:11,
                 from util.h:9,
                 from bignum.h:12,
                 from main.h:9,
                 from db.h:9,
                 from net.cpp:7:
/usr/include/stdint.h:55:27: note: candidates are: typedef long unsigned int uint64_t
 typedef unsigned long int uint64_t;
                           ^
In file included from /usr/include/boost/date_time/compiler_config.hpp:54:0,
                 from /usr/include/boost/date_time/c_time.hpp:21,
                 from /usr/include/boost/date_time/time_clock.hpp:16,
                 from /usr/include/boost/thread/thread_time.hpp:9,
                 from /usr/include/boost/thread/locks.hpp:12,
                 from /usr/include/boost/thread/pthread/mutex.hpp:12,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from util.h:27,
                 from bignum.h:12,
                 from main.h:9,
                 from db.h:9,
                 from net.cpp:7:
/usr/include/boost/cstdint.hpp:311:42: note:                 typedef boost::ulong_long_type boost::uint64_t
      typedef  ::boost::ulong_long_type   uint64_t;
                                          ^
net.cpp:413:12: error: expected ‘;’ before ‘rnd’
   uint64_t rnd = GetRand(~0LL);
            ^
net.cpp:415:32: error: ‘rnd’ was not declared in this scope
   int rc = GetExternalIPbySTUN(rnd, &mapped, &srv);
                                ^
net.cpp:415:50: error: ‘GetExternalIPbySTUN’ cannot be used as a function
   int rc = GetExternalIPbySTUN(rnd, &mapped, &srv);
                                                  ^
make: *** [obj/net.o] Error 1


it stops near the end
sr. member
Activity: 296
Merit: 250
I bypass the problem by modifying  TIME_UTC to TIME_UTC_  in /usr/include/boost/thread/xtime.hpp
sr. member
Activity: 296
Merit: 250
hi,

there are many errors in compiling into the pool server:

Code:
make -f makefile.unix USE_UPNP=-
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/opt/multi-pool/src/emercoin/src -I/opt/multi-pool/src/emercoin/src/obj -DUSE_IPV6=1 -I/opt/multi-pool/src/emercoin/src/leveldb/include -I/opt/multi-pool/src/emercoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/alert.d -o obj/alert.o alert.cpp
In file included from /usr/include/pthread.h:24:0,
                 from /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr.h:148,
                 from /usr/include/c++/4.8/ext/atomicity.h:35,
                 from /usr/include/c++/4.8/bits/basic_string.h:39,
                 from /usr/include/c++/4.8/string:52,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/locale:39,
                 from /usr/include/boost/algorithm/string/classification.hpp:15,
                 from alert.cpp:6:
/usr/include/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
     TIME_UTC=1
     ^
/usr/include/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant
/usr/include/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from util.h:27,
                 from alert.h:13,
                 from alert.cpp:11:
/usr/include/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’
     operator system_time() const
              ^
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from util.h:27,
                 from alert.h:13,
                 from alert.cpp:11:
/usr/include/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
/usr/include/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope
         *xtp=get_xtime(get_system_time());
                                        ^
/usr/include/boost/thread/xtime.hpp:73:40: note: suggested alternative:
In file included from /usr/include/boost/thread/locks.hpp:12:0,
                 from /usr/include/boost/thread/pthread/mutex.hpp:12,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from util.h:27,
                 from alert.h:13,
                 from alert.cpp:11:
/usr/include/boost/thread/thread_time.hpp:19:24: note:   ‘boost::get_system_time’
     inline system_time get_system_time()
                        ^
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from util.h:27,
                 from alert.h:13,
                 from alert.cpp:11:
/usr/include/boost/thread/xtime.hpp: At global scope:
/usr/include/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token
 } // namespace boost
 ^
make: *** [obj/alert.o] Error 1


is there changed the boost library used?
member
Activity: 102
Merit: 12
EmerCoin released new wallet, 0.4.0
You can download here:
http://sourceforge.net/projects/emercoin/files/

After start, program reindex whole blockchain, because data structure in 0.3.x and 0.4.x very different.
New useful feature - for minting, just click onto lock in right-bottom corner.
legendary
Activity: 1188
Merit: 1001
askcoin will be next exchange already voting on it
full member
Activity: 154
Merit: 100
EMC we suppose to support for be top list...aall the best My EMC
sr. member
Activity: 458
Merit: 250
Hello

I will close the pool for Emercoin on Coinminers pools on 20.03.2015 because of inactivity so pls come and withdraw your coins.

https://emc.coin-miners.info/

Thanks

Thanks for the information! Service has been removed from list of pools. All the best.
legendary
Activity: 1722
Merit: 1000
Admin of CoinMiners Pools
Hello

I will close the pool for Emercoin on Coinminers pools on 20.03.2015 because of inactivity so pls come and withdraw your coins.

https://emc.coin-miners.info/

Thanks
newbie
Activity: 4
Merit: 0
I have requested EMC be listed on Cryptoine, if people vote for the coin it will be listed fairly quickly, also if you register your vote counts as 5 points instead of 2

https://cryptoine.com/voting
full member
Activity: 854
Merit: 100
Quote
If anyone has the time and inclination please request EMC at https://poloniex.com/coinRequest

I've just made a coin request on this exchange. Hope they will pay attention to it.
sr. member
Activity: 458
Merit: 250
EMC market on coin-swap.net is gone. No more trading EMC?

Yes, good opportunity for an exchange to adopt EMC, which had steady trading volumes of 0-5 Btc daily.

I have sent a request to https://poloniex.com but don't know if they will pay attention.

If anyone has the time and inclination please request EMC at https://poloniex.com/coinRequest

My preference is poloniex, but perhaps there is another exchange?
sr. member
Activity: 462
Merit: 250
indeed need a exchange for it Smiley
sr. member
Activity: 399
Merit: 250
EMC market on coin-swap.net is gone. No more trading EMC?
full member
Activity: 854
Merit: 100
Is there a way to display all unconfirmed transactions with the current emercoind client?
Something like getrawmempool in bitcoind.
hero member
Activity: 535
Merit: 501
EMC
Really great service! Keep it up!
full member
Activity: 854
Merit: 100
Hi,
I would like to introduce a new Emercoin blockchain explorer.

emercoin-blockchain.info

also available via:
blockchain.emc.emergate.net
blockchain.emc (via opennicproject.org DNS)

Thread: https://bitcointalksearch.org/topic/emercoinemc-blockchain-explorer-958008

Donations are always welcome  Wink
ELZTTQgvUknaFYNqYKBkL5NrnnWpodeeXw (EMC)
1MQczsvgE3no26jzHyP3z9Cfpsc9NfCZg1 (BTC)


Pages:
Jump to: