Bitcoin Forum
May 21, 2024, 01:44:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Compile Error Bitcoin Client  (Read 1107 times)
Rupert (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
May 16, 2015, 02:26:02 PM
 #1

After one day of efforts I finally managed to run ./configure without error, now I am so exhausted  Tongue that I just ask what this compile error could mean:
Please help me to find the error, so that I can compile bitcoin core on linux debian.   Cry

 
root@debian:/home/helena/bitcoin# make
Making all in src
make[1]: Entering directory '/home/helena/bitcoin/src'
make  all-recursive
make[2]: Entering directory '/home/helena/bitcoin/src'
Making all in .
make[3]: Entering directory '/home/helena/bitcoin/src'
  CXX      init.o
init.cpp: In function ‘bool AppInit2(boost::thread_group&)’:
init.cpp:583:9: error: reference to ‘int64_t’ is ambiguous
         int64_t n = 0;
         ^
In file included from /usr/include/x86_64-linux-gnu/bits/uio.h:25:0,
                 from /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h:38,
                 from /usr/include/x86_64-linux-gnu/bits/fcntl.h:61,
                 from /usr/include/fcntl.h:35,
                 from /usr/include/x86_64-linux-gnu/sys/fcntl.h:1,
                 from compat.h:31,
                 from netbase.h:12,
                 from addrman.h:8,
                 from init.cpp:12:
/usr/include/x86_64-linux-gnu/sys/types.h:197:1: note: candidates are: typedef long int int64_t
 __intN_t (64, __DI__);
 ^
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 allocators.h:13,
                 from serialize.h:9,
                 from netbase.h:13,
                 from addrman.h:8,
                 from init.cpp:12:
/usr/include/boost/cstdint.hpp:308:50: note:                 typedef boost::long_long_type boost::int64_t
      typedef  ::boost::long_long_type            int64_t;
                                                  ^
init.cpp:584:46: error: ‘n’ was not declared in this scope
         if (ParseMoney(mapArgs["-mintxfee"], n) && n > 0)
                                              ^
init.cpp:591:9: error: reference to ‘int64_t’ is ambiguous
         int64_t n = 0;
         ^
In file included from /usr/include/x86_64-linux-gnu/bits/uio.h:25:0,
                 from /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h:38,
                 from /usr/include/x86_64-linux-gnu/bits/fcntl.h:61,
                 from /usr/include/fcntl.h:35,
                 from /usr/include/x86_64-linux-gnu/sys/fcntl.h:1,
                 from compat.h:31,
                 from netbase.h:12,
                 from addrman.h:8,
                 from init.cpp:12:
/usr/include/x86_64-linux-gnu/sys/types.h:197:1: note: candidates are: typedef long int int64_t
 __intN_t (64, __DI__);
 ^
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 allocators.h:13,
                 from serialize.h:9,
                 from netbase.h:13,
                 from addrman.h:8,
                 from init.cpp:12:
/usr/include/boost/cstdint.hpp:308:50: note:                 typedef boost::long_long_type boost::int64_t
      typedef  ::boost::long_long_type            int64_t;
                                                  ^
init.cpp:592:51: error: ‘n’ was not declared in this scope
         if (ParseMoney(mapArgs["-minrelaytxfee"], n) && n > 0)
                                                   ^
init.cpp:650:5: error: reference to ‘int64_t’ is ambiguous
     int64_t nStart;
     ^
In file included from /usr/include/x86_64-linux-gnu/bits/uio.h:25:0,
                 from /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h:38,
                 from /usr/include/x86_64-linux-gnu/bits/fcntl.h:61,
                 from /usr/include/fcntl.h:35,
                 from /usr/include/x86_64-linux-gnu/sys/fcntl.h:1,
                 from compat.h:31,
                 from netbase.h:12,
                 from addrman.h:8,
                 from init.cpp:12:
/usr/include/x86_64-linux-gnu/sys/types.h:197:1: note: candidates are: typedef long int int64_t
 __intN_t (64, __DI__);
 ^
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 allocators.h:13,
                 from serialize.h:9,
                 from netbase.h:13,
                 from addrman.h:8,
                 from init.cpp:12:
/usr/include/boost/cstdint.hpp:308:50: note:                 typedef boost::long_long_type boost::int64_t
      typedef  ::boost::long_long_type            int64_t;
                                                  ^
init.cpp:846:9: error: ‘nStart’ was not declared in this scope
         nStart = GetTimeMillis();
         ^
In file included from addrman.h:11:0,
                 from init.cpp:12:
init.cpp:925:58: error: ‘nStart’ was not declared in this scope
     LogPrintf(" block index %15dms\n", GetTimeMillis() - nStart);
                                                          ^
util.h:117:39: note: in definition of macro ‘LogPrintf’
 #define LogPrintf(...) LogPrint(NULL, __VA_ARGS__)
                                       ^
Makefile:827: recipe for target 'init.o' failed
make[3]: *** [init.o] Error 1
make[3]: Leaving directory '/home/helena/bitcoin/src'
Makefile:849: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/helena/bitcoin/src'
Makefile:640: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/helena/bitcoin/src'
Makefile:498: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
root@debian:/home/helena/bitcoin#
tspacepilot
Legendary
*
Offline Offline

Activity: 1456
Merit: 1078


I may write code in exchange for bitcoins.


View Profile
May 16, 2015, 10:02:17 PM
 #2

On your issue, it looks like it was reported here:

https://github.com/bitcoin/bitcoin/issues/3483

as fixed (maybe update your debian, or your libboost).

BTW, why are you building as root?  Isn't it more normal to build as a normal user?

$ make && sudo make install
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
May 17, 2015, 03:45:35 PM
 #3

what is the use of bitcoin client? is it a way to warn btc or something else?

To store Bitcoin.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!