Pages:
Author

Topic: Building headless Bitcoin and Bitcoin-qt on Windows - page 39. (Read 419390 times)

full member
Activity: 182
Merit: 100
I built frycoind and frycoin-qt but when run, I met this error:

Code:
Problem signature:
  Problem Event Name: BEX
  Application Name: Frycoind.exe
  Application Version: 0.0.0.0
  Application Timestamp: 00000000
  Fault Module Name: msvcrt.dll
  Fault Module Version: 7.0.7600.16385
  Fault Module Timestamp: 4a5bda6f
  Exception Offset: 000a2980
  Exception Code: c0000005
  Exception Data: 00000008
  OS Version: 6.1.7601.2.1.0.256.48
  Locale ID: 1033
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

and when I build bitcoin:
Code:
  CXXLD  bitcoind.exe
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/lib\libmsvcrt.a(dyqzs0
0708.o):(.text+0x0): multiple definition of `isspace'
libbitcoin_wallet.a(rpcdump.o):rpcdump.cpp:(.text$isspace[_isspace]+0x0): first
defined here
collect2.exe: error: ld returned 1 exit status
make[3]: *** [bitcoind.exe] Error 1
make[3]: Leaving directory `/c/bitcoin-0.9.0rc2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/bitcoin-0.9.0rc2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/c/bitcoin-0.9.0rc2/src'
make: *** [all-recursive] Error 1
any suggestion to fix this?
full member
Activity: 131
Merit: 108
I can upload them if needed, however building everything by yourself shouldn't take more than half an hour on a mid entry cpu.
legendary
Activity: 882
Merit: 1000
shakezula used to keep deps in one folder already prepared for use, would be great if someone with a good connection did this. I'll even offer a bounty.
sr. member
Activity: 308
Merit: 250
Code:
In file included from src\net.cpp:21:0:
../miniupnpc/upnpcommands.h:117:1: note: declared here
 UPNP_AddPortMapping(const char * controlURL, const char * servicetype,
 ^
In file included from ..\boost-1.50.0-mgw/boost/thread/shared_mutex.hpp:18:0,
                 from ..\boost-1.50.0-mgw/boost/thread/detail/thread_group.hpp:9
,
                 from ..\boost-1.50.0-mgw/boost/thread/thread.hpp:24,
                 from ..\boost-1.50.0-mgw/boost/thread.hpp:13,
                 from src\util.h:25,
                 from src\bignum.h:13,
                 from src\main.h:9,
                 from src\db.h:9,
                 from src\net.cpp:7:
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp: In instantiation of 'T
boost::shared_mutex::interlocked_compare_exchange(T*, T, T) [with T = boost::sha
red_mutex::state_data]':
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:124:103:   required from
 here
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:52:99: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                                                               *reinterpret_cast
(&comparand));

                   ^
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:52:99: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             return *reinterpret_cast(&res);
                                                    ^
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
In file included from ..\boost-1.50.0-mgw/boost/system/system_error.hpp:14:0,
                 from ..\boost-1.50.0-mgw/boost/thread/exceptions.hpp:22,
                 from ..\boost-1.50.0-mgw/boost/thread/win32/thread_primitives.h
pp:16,
                 from ..\boost-1.50.0-mgw/boost/thread/win32/thread_data.hpp:12,

                 from ..\boost-1.50.0-mgw/boost/thread/thread.hpp:15,
                 from ..\boost-1.50.0-mgw/boost/thread.hpp:13,
                 from src\util.h:25,
                 from src\bignum.h:13,
                 from src\main.h:9,
                 from src\db.h:9,
                 from src\net.cpp:7:
..\boost-1.50.0-mgw/boost/system/error_code.hpp: At global scope:
..\boost-1.50.0-mgw/boost/system/error_code.hpp:214:36: warning: 'boost::system:
:posix_category' defined but not used [-Wunused-variable]
     static const error_category &  posix_category = generic_category();
                                    ^
..\boost-1.50.0-mgw/boost/system/error_code.hpp:215:36: warning: 'boost::system:
:errno_ecat' defined but not used [-Wunused-variable]
     static const error_category &  errno_ecat     = generic_category();
                                    ^
..\boost-1.50.0-mgw/boost/system/error_code.hpp:216:36: warning: 'boost::system:
:native_ecat' defined but not used [-Wunused-variable]
     static const error_category &  native_ecat    = system_category();
                                    ^
Makefile.Release:33990: recipe for target 'build/net.o' failed
mingw32-make: *** [build/net.o] Error 1

C:\dogecoin>


can anybody shed some light on this error? I seem to be getting close to making the qt client. already did dogecoind.exe which works fine, stuck on this last thingy  Tongue

okay, i got this fixed  Wink

What did you do exactly?


late reply but. I disabled upnp by using use_upnp=-

if i correctly remember that was the command that I used with qmake bitcoin-qt.pro

 Wink

full member
Activity: 182
Merit: 100
after all, i got this error
Code:
  CXXLD  bitcoind.exe
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/lib\libmsvcrt.a(dyqzs0
0708.o):(.text+0x0): multiple definition of `isspace'
libbitcoin_wallet.a(rpcdump.o):rpcdump.cpp:(.text$isspace[_isspace]+0x0): first
defined here
collect2.exe: error: ld returned 1 exit status
make[3]: *** [bitcoind.exe] Error 1
make[3]: Leaving directory `/c/bitcoin-0.9.0rc2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/bitcoin-0.9.0rc2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/c/bitcoin-0.9.0rc2/src'
make: *** [all-recursive] Error 1
full member
Activity: 182
Merit: 100

c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp: In st
atic member function 'static void boost::asio::detail::win_object_handle_service
::wait_callback(PVOID, BOOLEAN)':
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp:402:5:
 error: '::UnregisterWaitEx' has not been declared
     ::UnregisterWaitEx(impl->wait_handle_, NULL);
     ^

I think you are using mingw32-gcc 4.8.1 also. If you have a specific reason see https://bitcointalksearch.org/topic/m.5290622 otherwise i suggest deleting your entire c:\MinGW, reinstalling again selecting msys-base, msys-autoconf, msys-automake and msys-libtool only and using a mingw-builds toolchain as specified in the first post.

Thanks, I will try it
full member
Activity: 131
Merit: 108

c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp: In st
atic member function 'static void boost::asio::detail::win_object_handle_service
::wait_callback(PVOID, BOOLEAN)':
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp:402:5:
 error: '::UnregisterWaitEx' has not been declared
     ::UnregisterWaitEx(impl->wait_handle_, NULL);
     ^

I think you are using mingw32-gcc 4.8.1 also. If you have a specific reason see https://bitcointalksearch.org/topic/m.5290622 otherwise i suggest deleting your entire c:\MinGW, reinstalling again selecting msys-base, msys-autoconf, msys-automake and msys-libtool only and using a mingw-builds toolchain as specified in the first post.
full member
Activity: 182
Merit: 100
I use file in MinGW/msys/1.0/msys.dat

Now when i build Qt, I got this error:
Code:
$ make
Making all in src
make[1]: Entering directory `/c/bitcoin-0.9.0rc2/src'
make  all-recursive
make[2]: Entering directory `/c/bitcoin-0.9.0rc2/src'
Making all in .
make[3]: Entering directory `/c/bitcoin-0.9.0rc2/src'
  CXX    rpcserver.o
In file included from c:/deps/boost_1_55_0/boost/asio/detail/win_object_handle_s
ervice.hpp:180:0,
                 from c:/deps/boost_1_55_0/boost/asio/windows/object_handle_serv
ice.hpp:25,
                 from c:/deps/boost_1_55_0/boost/asio/windows/basic_object_handl
e.hpp:27,
                 from c:/deps/boost_1_55_0/boost/asio.hpp:108,
                 from rpcprotocol.h:15,
                 from rpcserver.h:10,
                 from rpcserver.cpp:6:
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp: In me
mber function 'void boost::asio::detail::win_object_handle_service::move_constru
ct(boost::asio::detail::win_object_handle_service::implementation_type&, boost::
asio::detail::win_object_handle_service::implementation_type&)':
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp:106:5:
 error: '::UnregisterWaitEx' has not been declared
     ::UnregisterWaitEx(impl.wait_handle_, INVALID_HANDLE_VALUE);
     ^
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp: In me
mber function 'void boost::asio::detail::win_object_handle_service::move_assign(
boost::asio::detail::win_object_handle_service::implementation_type&, boost::asi
o::detail::win_object_handle_service&, boost::asio::detail::win_object_handle_se
rvice::implementation_type&)':
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp:158:5:
 error: '::UnregisterWaitEx' has not been declared
     ::UnregisterWaitEx(impl.wait_handle_, INVALID_HANDLE_VALUE);
     ^
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp: In me
mber function 'void boost::asio::detail::win_object_handle_service::destroy(boos
t::asio::detail::win_object_handle_service::implementation_type&)':
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp:200:7:
 error: '::UnregisterWaitEx' has not been declared
       ::UnregisterWaitEx(wait_handle, INVALID_HANDLE_VALUE);
       ^
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp: In me
mber function 'boost::system::error_code boost::asio::detail::win_object_handle_
service::close(boost::asio::detail::win_object_handle_service::implementation_ty
pe&, boost::system::error_code&)':
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp:251:7:
 error: '::UnregisterWaitEx' has not been declared
       ::UnregisterWaitEx(wait_handle, INVALID_HANDLE_VALUE);
       ^
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp: In me
mber function 'boost::system::error_code boost::asio::detail::win_object_handle_
service::cancel(boost::asio::detail::win_object_handle_service::implementation_t
ype&, boost::system::error_code&)':
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp:302:7:
 error: '::UnregisterWaitEx' has not been declared
       ::UnregisterWaitEx(wait_handle, INVALID_HANDLE_VALUE);
       ^
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp: In st
atic member function 'static void boost::asio::detail::win_object_handle_service
::wait_callback(PVOID, BOOLEAN)':
c:/deps/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp:402:5:
 error: '::UnregisterWaitEx' has not been declared
     ::UnregisterWaitEx(impl->wait_handle_, NULL);
     ^
make[3]: *** [rpcserver.o] Error 1
make[3]: Leaving directory `/c/bitcoin-0.9.0rc2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/bitcoin-0.9.0rc2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/c/bitcoin-0.9.0rc2/src'
make: *** [all-recursive] Error 1

full member
Activity: 131
Merit: 108
P/S: fixed it, I try :

mount c:/mingw /mingw

before run ./autogen.sh

I think you are using mingw32-autoconf instead of msys-autoconf
legendary
Activity: 1156
Merit: 1000
I skimmed through the tread, but could not find an answer. I successfully compiled a testcoin-qt (based on Dogecoin) on my Windows 7 box, but it crashes when launched. Any ideas how to fix it?
full member
Activity: 182
Merit: 100
QT@QT-PC /c/deps/protobuf-2.5.0
$ ./autogen.sh
+ sed -i -e 's/RuntimeLibrary="5"/RuntimeLibrary="3"/g;
           s/RuntimeLibrary="4"/RuntimeLibrary="2"/g;' gtest/msvc/gtest-md.vcpro
j gtest/msvc/gtest.vcproj gtest/msvc/gtest_main-md.vcproj gtest/msvc/gtest_main.
vcproj gtest/msvc/gtest_prod_test-md.vcproj gtest/msvc/gtest_prod_test.vcproj gt
est/msvc/gtest_unittest-md.vcproj gtest/msvc/gtest_unittest.vcproj
+ autoreconf -f -i -Wall
Can't locate Autom4te/ChannelDefs.pm in @INC (@INC contains: /mingw/share/autoco
nf /usr/lib/perl5/5.8/msys /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/msys
/usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_
perl/5.8/msys /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) a
t /c/MinGW/bin/autoreconf-2.68 line 40.
BEGIN failed--compilation aborted at /c/MinGW/bin/autoreconf-2.68 line 40.


I got this error when tried to build protobuf and make bitcoin when use ./autogen.sh command. Please help.

Thanks.

P/S: fixed it, I try :

mount c:/mingw /mingw

before run ./autogen.sh
hero member
Activity: 584
Merit: 500
Code:
In file included from src\net.cpp:21:0:
../miniupnpc/upnpcommands.h:117:1: note: declared here
 UPNP_AddPortMapping(const char * controlURL, const char * servicetype,
 ^
In file included from ..\boost-1.50.0-mgw/boost/thread/shared_mutex.hpp:18:0,
                 from ..\boost-1.50.0-mgw/boost/thread/detail/thread_group.hpp:9
,
                 from ..\boost-1.50.0-mgw/boost/thread/thread.hpp:24,
                 from ..\boost-1.50.0-mgw/boost/thread.hpp:13,
                 from src\util.h:25,
                 from src\bignum.h:13,
                 from src\main.h:9,
                 from src\db.h:9,
                 from src\net.cpp:7:
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp: In instantiation of 'T
boost::shared_mutex::interlocked_compare_exchange(T*, T, T) [with T = boost::sha
red_mutex::state_data]':
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:124:103:   required from
 here
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:52:99: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                                                               *reinterpret_cast
(&comparand));

                   ^
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:52:99: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             return *reinterpret_cast(&res);
                                                    ^
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
In file included from ..\boost-1.50.0-mgw/boost/system/system_error.hpp:14:0,
                 from ..\boost-1.50.0-mgw/boost/thread/exceptions.hpp:22,
                 from ..\boost-1.50.0-mgw/boost/thread/win32/thread_primitives.h
pp:16,
                 from ..\boost-1.50.0-mgw/boost/thread/win32/thread_data.hpp:12,

                 from ..\boost-1.50.0-mgw/boost/thread/thread.hpp:15,
                 from ..\boost-1.50.0-mgw/boost/thread.hpp:13,
                 from src\util.h:25,
                 from src\bignum.h:13,
                 from src\main.h:9,
                 from src\db.h:9,
                 from src\net.cpp:7:
..\boost-1.50.0-mgw/boost/system/error_code.hpp: At global scope:
..\boost-1.50.0-mgw/boost/system/error_code.hpp:214:36: warning: 'boost::system:
:posix_category' defined but not used [-Wunused-variable]
     static const error_category &  posix_category = generic_category();
                                    ^
..\boost-1.50.0-mgw/boost/system/error_code.hpp:215:36: warning: 'boost::system:
:errno_ecat' defined but not used [-Wunused-variable]
     static const error_category &  errno_ecat     = generic_category();
                                    ^
..\boost-1.50.0-mgw/boost/system/error_code.hpp:216:36: warning: 'boost::system:
:native_ecat' defined but not used [-Wunused-variable]
     static const error_category &  native_ecat    = system_category();
                                    ^
Makefile.Release:33990: recipe for target 'build/net.o' failed
mingw32-make: *** [build/net.o] Error 1

C:\dogecoin>


can anybody shed some light on this error? I seem to be getting close to making the qt client. already did dogecoind.exe which works fine, stuck on this last thingy  Tongue

okay, i got this fixed  Wink

What did you do exactly?
full member
Activity: 131
Merit: 108
Using built-in specs.
COLLECT_GCC=C:\MinGW\msys\1.0\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/msys/1.0/mingw/bin/../libexec/gcc/mingw32/4.8.1/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.8.1/configure --prefix=/mingw --host=mingw32 --build=mingw32 --without-pic
 --enable-shared --enable-static --with-gnu-ld --enable-lto --enable-libssp --disable-multilib --ena
ble-languages=c,c++,fortran,objc,obj-c++,ada --disable-sjlj-exceptions --with-dwarf2 --disable-win32
-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --with-gmp=/usr/src/pkg/gm
p-5.1.2-1-mingw32-src/bld --with-mpc=/usr/src/pkg/mpc-1.0.1-1-mingw32-src/bld --with-mpfr= --with-sy
stem-zlib --with-gnu-as --enable-decimal-float=yes --enable-libgomp --enable-threads --with-libiconv
-prefix=/mingw32 --with-libintl-prefix=/mingw --disable-bootstrap LDFLAGS=-s CFLAGS=-D_USE_32BIT_TIM
E_T
Thread model: win32
gcc version 4.8.1 (GCC)

Getting the same error with 4.8.1 from mingw-get installer. I usually compile everything with one of the latest toolchains from mingw-builds as recommendend by the qt documentation. Wink
full member
Activity: 136
Merit: 120
Working fine out of the box for me. Could you post your gcc -v output?
I took all of the defaults when installing MinGW a couple of months ago.  I haven't worked on Unix for 10 years, so I admit I'm rusty now.  I used C at work and I've been using Java since I retired, so troubleshooting C++ and shell script problems is a slow process for me.  But bitcoind and bitcoin-cli are up and running now.  I didn't even bothering trying to build Bitcoin-Qt since I have my own node (ScripterRon/JavaBitcoin) and SPV wallet (ScripterRon/BitcoinWallet).  I just needed the daemon to validate my implementation (and help the reference client developers a bit by reporting any problems I encounter).

Ron

$ gcc -v
Using built-in specs.
COLLECT_GCC=C:\MinGW\msys\1.0\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/msys/1.0/mingw/bin/../libexec/gcc/mingw32/4.8.1/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.8.1/configure --prefix=/mingw --host=mingw32 --build=mingw32 --without-pic
 --enable-shared --enable-static --with-gnu-ld --enable-lto --enable-libssp --disable-multilib --ena
ble-languages=c,c++,fortran,objc,obj-c++,ada --disable-sjlj-exceptions --with-dwarf2 --disable-win32
-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --with-gmp=/usr/src/pkg/gm
p-5.1.2-1-mingw32-src/bld --with-mpc=/usr/src/pkg/mpc-1.0.1-1-mingw32-src/bld --with-mpfr= --with-sy
stem-zlib --with-gnu-as --enable-decimal-float=yes --enable-libgomp --enable-threads --with-libiconv
-prefix=/mingw32 --with-libintl-prefix=/mingw --disable-bootstrap LDFLAGS=-s CFLAGS=-D_USE_32BIT_TIM
E_T
Thread model: win32
gcc version 4.8.1 (GCC)
sr. member
Activity: 400
Merit: 268
Finally! It works! Now let's try to build one from another coin Cheesy
Thanks!
sr. member
Activity: 308
Merit: 250
Code:
In file included from src\net.cpp:21:0:
../miniupnpc/upnpcommands.h:117:1: note: declared here
 UPNP_AddPortMapping(const char * controlURL, const char * servicetype,
 ^
In file included from ..\boost-1.50.0-mgw/boost/thread/shared_mutex.hpp:18:0,
                 from ..\boost-1.50.0-mgw/boost/thread/detail/thread_group.hpp:9
,
                 from ..\boost-1.50.0-mgw/boost/thread/thread.hpp:24,
                 from ..\boost-1.50.0-mgw/boost/thread.hpp:13,
                 from src\util.h:25,
                 from src\bignum.h:13,
                 from src\main.h:9,
                 from src\db.h:9,
                 from src\net.cpp:7:
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp: In instantiation of 'T
boost::shared_mutex::interlocked_compare_exchange(T*, T, T) [with T = boost::sha
red_mutex::state_data]':
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:124:103:   required from
 here
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:52:99: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                                                               *reinterpret_cast
(&comparand));

                   ^
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:52:99: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             return *reinterpret_cast(&res);
                                                    ^
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
In file included from ..\boost-1.50.0-mgw/boost/system/system_error.hpp:14:0,
                 from ..\boost-1.50.0-mgw/boost/thread/exceptions.hpp:22,
                 from ..\boost-1.50.0-mgw/boost/thread/win32/thread_primitives.h
pp:16,
                 from ..\boost-1.50.0-mgw/boost/thread/win32/thread_data.hpp:12,

                 from ..\boost-1.50.0-mgw/boost/thread/thread.hpp:15,
                 from ..\boost-1.50.0-mgw/boost/thread.hpp:13,
                 from src\util.h:25,
                 from src\bignum.h:13,
                 from src\main.h:9,
                 from src\db.h:9,
                 from src\net.cpp:7:
..\boost-1.50.0-mgw/boost/system/error_code.hpp: At global scope:
..\boost-1.50.0-mgw/boost/system/error_code.hpp:214:36: warning: 'boost::system:
:posix_category' defined but not used [-Wunused-variable]
     static const error_category &  posix_category = generic_category();
                                    ^
..\boost-1.50.0-mgw/boost/system/error_code.hpp:215:36: warning: 'boost::system:
:errno_ecat' defined but not used [-Wunused-variable]
     static const error_category &  errno_ecat     = generic_category();
                                    ^
..\boost-1.50.0-mgw/boost/system/error_code.hpp:216:36: warning: 'boost::system:
:native_ecat' defined but not used [-Wunused-variable]
     static const error_category &  native_ecat    = system_category();
                                    ^
Makefile.Release:33990: recipe for target 'build/net.o' failed
mingw32-make: *** [build/net.o] Error 1

C:\dogecoin>


can anybody shed some light on this error? I seem to be getting close to making the qt client. already did dogecoind.exe which works fine, stuck on this last thingy  Tongue

okay, i got this fixed  Wink
full member
Activity: 131
Merit: 108
I got past that error by defining -D_WIN32_WINNT=0x0602 -DWINVER=0x0602.  I then ran into undefined WSAPOLLFD and corrected that by adding the definition to winsock2.h. See http://stackoverflow.com/questions/20957727/boostasio-unregisterwaitex-has-not-been-declared for details.

Ron

Working fine out of the box for me. Could you post your gcc -v output?
sr. member
Activity: 308
Merit: 250
Code:
In file included from src\net.cpp:21:0:
../miniupnpc/upnpcommands.h:117:1: note: declared here
 UPNP_AddPortMapping(const char * controlURL, const char * servicetype,
 ^
In file included from ..\boost-1.50.0-mgw/boost/thread/shared_mutex.hpp:18:0,
                 from ..\boost-1.50.0-mgw/boost/thread/detail/thread_group.hpp:9
,
                 from ..\boost-1.50.0-mgw/boost/thread/thread.hpp:24,
                 from ..\boost-1.50.0-mgw/boost/thread.hpp:13,
                 from src\util.h:25,
                 from src\bignum.h:13,
                 from src\main.h:9,
                 from src\db.h:9,
                 from src\net.cpp:7:
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp: In instantiation of 'T
boost::shared_mutex::interlocked_compare_exchange(T*, T, T) [with T = boost::sha
red_mutex::state_data]':
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:124:103:   required from
 here
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:52:99: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                                                               *reinterpret_cast
(&comparand));

                   ^
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:52:99: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             return *reinterpret_cast(&res);
                                                    ^
..\boost-1.50.0-mgw/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefere
ncing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
In file included from ..\boost-1.50.0-mgw/boost/system/system_error.hpp:14:0,
                 from ..\boost-1.50.0-mgw/boost/thread/exceptions.hpp:22,
                 from ..\boost-1.50.0-mgw/boost/thread/win32/thread_primitives.h
pp:16,
                 from ..\boost-1.50.0-mgw/boost/thread/win32/thread_data.hpp:12,

                 from ..\boost-1.50.0-mgw/boost/thread/thread.hpp:15,
                 from ..\boost-1.50.0-mgw/boost/thread.hpp:13,
                 from src\util.h:25,
                 from src\bignum.h:13,
                 from src\main.h:9,
                 from src\db.h:9,
                 from src\net.cpp:7:
..\boost-1.50.0-mgw/boost/system/error_code.hpp: At global scope:
..\boost-1.50.0-mgw/boost/system/error_code.hpp:214:36: warning: 'boost::system:
:posix_category' defined but not used [-Wunused-variable]
     static const error_category &  posix_category = generic_category();
                                    ^
..\boost-1.50.0-mgw/boost/system/error_code.hpp:215:36: warning: 'boost::system:
:errno_ecat' defined but not used [-Wunused-variable]
     static const error_category &  errno_ecat     = generic_category();
                                    ^
..\boost-1.50.0-mgw/boost/system/error_code.hpp:216:36: warning: 'boost::system:
:native_ecat' defined but not used [-Wunused-variable]
     static const error_category &  native_ecat    = system_category();
                                    ^
Makefile.Release:33990: recipe for target 'build/net.o' failed
mingw32-make: *** [build/net.o] Error 1

C:\dogecoin>


can anybody shed some light on this error? I seem to be getting close to making the qt client. already did dogecoind.exe which works fine, stuck on this last thingy  Tongue
full member
Activity: 136
Merit: 120
I got past that error by defining -D_WIN32_WINNT=0x0602 -DWINVER=0x0602.  I then ran into undefined WSAPOLLFD and corrected that by adding the definition to winsock2.h. See http://stackoverflow.com/questions/20957727/boostasio-unregisterwaitex-has-not-been-declared for details.

Ron
full member
Activity: 136
Merit: 120
Has anybody tried building V0.9.0rc1 yet on Windows?  It fails for me on rpcserver.o:

C:/MinGW/msys/1.0/home/rwh/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp: In sta
tic member function 'static void boost::asio::detail::win_object_handle_service::wait_callback(PVOID
, BOOLEAN)':
C:/MinGW/msys/1.0/home/rwh/boost_1_55_0/boost/asio/detail/impl/win_object_handle_service.ipp:402:5:
error: '::UnregisterWaitEx' has not been declared
     ::UnregisterWaitEx(impl->wait_handle_, NULL);

I'm on Windows 7 and have Boost 1.55 installed.

Ron
Pages:
Jump to: