Bitcoin Forum
May 04, 2024, 03:08:08 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Set Generate True Crash  (Read 1536 times)
CaptChadd (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1005


Product Marketing & Promotion / Software Developer


View Profile
July 15, 2013, 04:42:53 PM
Last edit: July 15, 2013, 09:03:08 PM by CaptChadd
 #1

My new scrypt coin, on the command line everytime I change setgenerate to true so I can mine now I have the genesis block, it crashes, anyone know why this is or how to fix it?

Thanks
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
CaptChadd (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1005


Product Marketing & Promotion / Software Developer


View Profile
July 15, 2013, 09:04:25 PM
 #2

Anyone have any ideas?

I made the genesis block fine but this problem has stumped me.
markm
Legendary
*
Offline Offline

Activity: 2940
Merit: 1090



View Profile WWW
July 15, 2013, 09:32:05 PM
 #3

The log doesn't give any clues?

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
CaptChadd (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1005


Product Marketing & Promotion / Software Developer


View Profile
July 15, 2013, 10:03:27 PM
 #4

ThreadRPCServer method=setgenerate
6 processors
Starting 6 BitcoinMiner threads
BitcoinMiner started
BitcoinMiner started
BitcoinMiner started
BitcoinMiner started
BitcoinMiner started
BitcoinMiner started
keypool reserve 5
CreateNewBlock(): total size 1000
keypool reserve 6
CreateNewBlock(): total size 1000
keypool reserve 7
CreateNewBlock(): total size 1000
keypool reserve 8
CreateNewBlock(): total size 1000
keypool reserve 9
CreateNewBlock(): total size 1000
keypool reserve 10
CreateNewBlock(): total size 1000

And thats the point when the client exe crashes. As in example.exe has stopped working.

What do you think?

I am just creating this scrypt crypto as practice for another project later on down the line, some things have changes in two years lol and the fact I use Windows.
markm
Legendary
*
Offline Offline

Activity: 2940
Merit: 1090



View Profile WWW
July 15, 2013, 10:49:57 PM
 #5

We had to disable mining in devcoind because of some stuff to do with "thread safe" versus "no thread-safe" things, I think we had maybe used something that was not thread-safe so it caused boost's threads to crash.

Does /var/log/messages have any clues? As usually if there is an assert or something that could if core dumps were enabled cause a core dump the log gets something logged about it?

Also was this the GUI? As our daemon was fine, it was the boost threads in the GUI stuff that caused the problems, that GUi is weirdly convoluted, I guess to save a few layers of communication that a GUI making normal calls out to a daemon would have to go through. But spaghetti code binding the GUI right into the daemon with callback stuff is ugly/nasty, it was easier to just figure anyone who wants to mine can use the daemon, GUIs are for grandmas not for hard bit miners.

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
CaptChadd (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1005


Product Marketing & Promotion / Software Developer


View Profile
July 15, 2013, 10:53:58 PM
 #6

I have not got the to GUI stage yet, still on command line and working between two rig with the compiled .exe of both machines. I can only get one connection and that is only if i have one of the clients set as server=1.

This is now not on the testnet but the main net, I will look in the var logs now.
markm
Legendary
*
Offline Offline

Activity: 2940
Merit: 1090



View Profile WWW
July 15, 2013, 10:55:49 PM
 #7

Daemon assumes server.

Saying server=1 when running the daemon always caused it to crash I thought, though I thought it crashed on launch.

Maybe I am confused, maybe it was saying daemon when running the GUI that crashed since the GUI couldn't go into background as a daemon.

Server tells the GUI to accept RPC calls though, the deamon doesn't need that even if it being there maybe doesn't crash it, as daemon always has RPC its how one communicates with it.

What exactly did you change? Did you use any non-threadsafe routines within parts of code that get executed by threads?

Somehow the things devcoin does to go get its recipient files and so on crashed the mining threads in the GUI but not in the daemon, I have no idea how, I don't even use GUI and would have left GUI to be a totally separate tool that just talked to the daemon in the normal way when the user presses buttons or icons or whatever, thus making the whole user interface thing totally separate project from the actual daemon that does the actual protocol.

But the daemon does have threads, so maybe we just happened to be lucky and you didn't?

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
CaptChadd (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1005


Product Marketing & Promotion / Software Developer


View Profile
July 15, 2013, 11:05:58 PM
 #8

https://andarazoroflove.org/how-to-create-alt-coin-scrypt-clones-for-fun-and-profit-bitcoin-litecoin-secrets-exposed/

I followed this as a guide but when i have the two pc setup I have 0 connections unless I put one of the command line .exe as server=1.

It crashes with no connections, it crashes with 1 connection with server=1.

Basically if I type in setgenerate true, it crashes.
markm
Legendary
*
Offline Offline

Activity: 2940
Merit: 1090



View Profile WWW
July 15, 2013, 11:11:13 PM
 #9

How are they finding each other to connect? Going out to the IRC server to find each other?

Would they both be shown as at almost the same IP address?

Or are you using direct connect, as in one of them runs normally the other uses -connect= to force it to connect to that one and not to any others?

Also where are you typing in setgenerate true? i thought you said this isn't the GUI, in whose debug window you'd type such things?

The daemon you use gen=1 to make it generate, don't you?

Or does recent code have a new RPC call for turning on generation while the daemon is running?

Supposedly a lot of thread code has been changed in recent code so if using that-recent have you checked all the issues reports about the code you are using?

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
Hippie Tech
aka Amenstop
Legendary
*
Offline Offline

Activity: 1624
Merit: 1001


All cryptos are FIAT digital currency. Do not use.


View Profile WWW
July 15, 2013, 11:14:53 PM
 #10

Will someone plzzzz think of the drivers ! Grin

Windows and the drivers can be picky with the OpenCL/ SDK version being used.

gl

HT xD

markm
Legendary
*
Offline Offline

Activity: 2940
Merit: 1090



View Profile WWW
July 15, 2013, 11:17:34 PM
 #11

The client doesn't normally use OpenCL to mine internally. That stuff is usually external mining tools.

The gen=1 in client is usually just a CPU miner and not even as efficient as most/all external CPU miners other than web widget ones.

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
CaptChadd (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1005


Product Marketing & Promotion / Software Developer


View Profile
July 15, 2013, 11:19:16 PM
 #12

How are they finding each other to connect? Going out to the IRC server to find each other?

Would they both be shown as at almost the same IP address?

Or are you using direct connect, as in one of them runs normally the other uses -connect= to force it to connect to that one and not to any others?

Also where are you typing in setgenerate true? i thought you said this isn't the GUI, in whose debug window you'd type such things?

The daemon you use gen=1 to make it generate, don't you?

Or does recent code have a new RPC call for turning on generation while the daemon is running?

Supposedly a lot of thread code has been changed in recent code so if using that-recent have you checked all the issues reports about the code you are using?

-MarkM-


I am using direct connect using the -connect = from one rig to the rig with server=1 on.

I have tried trying in setgenerate true on the command line on the server=1 rig, crash. I tried adding gen=1 in the conf, crash. I tired both methods on the other rig aswell, crash.

Anything I try to get generate to true results in a crash.
markm
Legendary
*
Offline Offline

Activity: 2940
Merit: 1090



View Profile WWW
July 15, 2013, 11:21:43 PM
 #13

I do not get why you need server=1, I never use that. Daemons are always in server mode, basically.

Plus maybe having server=1 might even cause it to crash, I no longer recall for sure as I learned years ago not to put server=1 when running daemon.

Hook up some normal working coins to each other until you get used to how to do it maybe before trying it with this newly hacked up coin you are inventing?

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
CaptChadd (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1005


Product Marketing & Promotion / Software Developer


View Profile
July 15, 2013, 11:44:24 PM
 #14

I am in Windows by the way.

What is strange is that if I run just one command line client with no connections I can set generate to true, it doe not mine but does not crash.

As soon as I connected my second client on another rig using the -connect command, the first main client crashed.

I followed the guide perfectly and the reason is to get my skills up with compiling in Windows.

Maybe I should post the whole debug log?
markm
Legendary
*
Offline Offline

Activity: 2940
Merit: 1090



View Profile WWW
July 15, 2013, 11:46:24 PM
 #15

Ask someone who does software development in Windows I guess.

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
CaptChadd (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1005


Product Marketing & Promotion / Software Developer


View Profile
July 15, 2013, 11:52:50 PM
 #16

LoadBlockIndex(): hashBestChain=1e280de2973f046a51fa  height=0  date=07/15/13 22:14:44
Verifying last 0 blocks at level 1
 block index              25ms
Loading wallet...
nFileVersion = 1000000
 wallet                  196ms
Loading addresses...
Loaded 2 addresses from peers.dat  0ms
RandAddSeed() 246596 bytes
mapBlockIndex.size() = 1
nBestHeight = 0
setKeyPool.size() = 101
mapWallet.size() = 0
mapAddressBook.size() = 2
send version message: version 60001, blocks=0, us=0.0.0.0:0, them=0.0.0.0:0, peer=127.0.0.1:0
Done loading
ThreadRPCServer started
AddLocal([2001:0:51c8:4032:3471:7ca:3f57:fffc]:22701,1)
ThreadDNSAddressSeed started
Loading addresses from DNS seeds (could take a while)
0 addresses found from DNS seeds
ThreadDNSAddressSeed exited
ThreadSocketHandler started
ThreadIRCSeed started
ThreadMessageHandler started
ThreadOpenAddedConnections started
ThreadOpenAddedConnections exited
ThreadOpenConnections started
Flushed 2 addresses to peers.dat  5ms
GetMyExternalIP() received [82.0.250.82] 82.0.250.82:0
GetMyExternalIP() returned 82.0.250.82
AddLocal(82.0.250.82:22701,5)
IRC :irc.smutfairy.com NOTICE AUTH :*** Looking up your hostname...
IRC :irc.smutfairy.com NOTICE AUTH :*** Found your hostname
IRC SENDING: NICK u5cDN5X8dDe9G4i

IRC SENDING: USER u5cDN5X8dDe9G4i 8 * : u5cDN5X8dDe9G4i

IRC :irc.smutfairy.com 001 u5cDN5X8dDe9G4i :Welcome to the LFNet Internet Relay Chat Network u5cDN5X8dDe9G4i
IRC :irc.smutfairy.com 002 u5cDN5X8dDe9G4i :Your host is irc.smutfairy.com[192.75.207.148/6667], running version hybrid-7.2.3
IRC :irc.smutfairy.com 003 u5cDN5X8dDe9G4i :This server was created May 26 2011 at 23:04:42
IRC :irc.smutfairy.com 004 u5cDN5X8dDe9G4i irc.smutfairy.com hybrid-7.2.3 CDGabcdfgiklnorsuwxyz biklmnopstveI bkloveI
IRC SENDING: USERHOST u5cDN5X8dDe9G4i

IRC :irc.smutfairy.com 302 u5cDN5X8dDe9G4i :u5cDN5X8dDe9G4i=+u5cDN5X8dD@82.0.250.82
GetIPFromIRC() got userhost 82.0.250.82
GetIPFromIRC() returned 82.0.250.82
AddLocal(82.0.250.82:22701,4)
IRC SENDING: NICK u5cDN5X8dDe9G4i

IRC SENDING: JOIN #Chaddcoin200

IRC SENDING: WHO #Chaddcoin200

IRC got join
IRC got who
ThreadRPCServer method=getinfo
keypool reserve 3
keypool return 3
trying connection 69.85.86.195:22701 lastseen=79.9hrs
connection timeout
trying connection 69.85.86.195:22701 lastseen=79.9hrs
ThreadRPCServer method=setgenerate
6 processors
Starting 6 BitcoinMiner threads
BitcoinMiner started
BitcoinMiner started
BitcoinMiner started
BitcoinMiner started
BitcoinMiner started
BitcoinMiner started
connection timeout
trying connection 69.85.86.195:22701 lastseen=79.9hrs
connection timeout
ThreadRPCServer method=getmininginfo
trying connection 69.85.86.195:22701 lastseen=79.9hrs
Flushed 2 addresses to peers.dat  3ms
connection timeout
trying connection 69.85.86.195:22701 lastseen=80.0hrs
connection timeout
trying connection 69.85.86.195:22701 lastseen=80.0hrs
connection timeout
trying connection 69.85.86.195:22701 lastseen=80.0hrs
connection timeout
trying connection 69.85.86.195:22701 lastseen=80.0hrs
connection timeout
accepted connection 192.168.0.2:52784
send version message: version 60001, blocks=0, us=82.0.250.82:22701, them=0.0.0.0:0, peer=192.168.0.2:52784
Added time data, samples 2, offset +2 (+0 minutes)
receive version message: version 60001, blocks=0, us=0.0.0.0:0, them=0.0.0.0:0, peer=192.168.0.2:52784
getblocks -1 to 00000000000000000000 limit 500
keypool reserve 3
CreateNewBlock(): total size 1000
keypool added key 104, size=101
keypool reserve 4
CreateNewBlock(): total size 1000
keypool added key 105, size=101
keypool reserve 5
CreateNewBlock(): total size 1000
keypool added key 106, size=101
keypool reserve 6
CreateNewBlock(): total size 1000
keypool added key 107, size=101
keypool reserve 7
CreateNewBlock(): total size 1000
keypool added key 108, size=101
keypool reserve 8
CreateNewBlock(): total size 1000
CaptChadd (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1005


Product Marketing & Promotion / Software Developer


View Profile
July 16, 2013, 12:16:00 AM
 #17

And trying to create the Windows QT I get this error at the end:

fatal error: openssl/bn.h: No such file or directory

Even though I have set the paths for this file and have my deps in order.
CaptChadd (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1005


Product Marketing & Promotion / Software Developer


View Profile
July 16, 2013, 11:14:29 AM
 #18

It looks like the QT program is not looking in the right places for the deps.

I moved the deps to it could see them and at the end of the qt compile this error:

src/db_cxx.h:663:43: error: 'u_int32_t' has not been declared
src/db_cxx.h:664:28: error: 'u_int32_t' has not been declared
src/db_cxx.h:664:41: error: 'u_int32_t' has not been declared
src/db_cxx.h:665:28: error: 'u_int32_t' has not been declared
src/db_cxx.h:665:39: error: 'u_int32_t' has not been declared
src/db_cxx.h:667:52: error: 'u_int32_t' has not been declared
src/db_cxx.h:668:30: error: 'u_int32_t' has not been declared
src/db_cxx.h:668:41: error: 'u_int32_t' has not been declared
src/db_cxx.h:669:30: error: 'u_int32_t' has not been declared
src/db_cxx.h:669:43: error: 'u_int32_t' has not been declared
src/db_cxx.h:670:31: error: 'u_int32_t' has not been declared
src/db_cxx.h:671:31: error: 'u_int32_t' has not been declared
src/db_cxx.h:673:34: error: 'db_threadid_t' has not been declared
src/db_cxx.h:674:55: error: 'db_threadid_t' has not been declared
src/db_cxx.h:676:33: error: 'db_threadid_t' has not been declared
src/db_cxx.h:678:13: error: 'db_threadid_t' has not been declared
src/db_cxx.h:679:29: error: 'u_int32_t' has not been declared
src/db_cxx.h:680:29: error: 'u_int32_t' has not been declared
src/db_cxx.h:681:23: error: 'u_int32_t' has not been declared
src/db_cxx.h:685:29: error: 'u_int32_t' has not been declared
src/db_cxx.h:686:29: error: 'u_int32_t' has not been declared
src/db_cxx.h:687:31: error: 'u_int32_t' has not been declared
src/db_cxx.h:688:31: error: 'u_int32_t' has not been declared
src/db_cxx.h:689:41: error: 'db_timeout_t' has not been declared
src/db_cxx.h:690:41: error: 'db_timeout_t' has not been declared
src/db_cxx.h:691:56: error: 'u_int16_t' has not been declared
src/db_cxx.h:692:17: error: 'u_int32_t' has not been declared
src/db_cxx.h:695:55: error: 'u_int16_t' has not been declared
src/db_cxx.h:696:6: error: 'u_int32_t' has not been declared
src/db_cxx.h:697:46: error: 'DB_REPMGR_SITE' has not been declared
src/db_cxx.h:698:41: error: 'u_int32_t' has not been declared
src/db_cxx.h:699:26: error: 'DB_REPMGR_STAT' has not been declared
src/db_cxx.h:699:50: error: 'u_int32_t' has not been declared
src/db_cxx.h:700:32: error: 'u_int32_t' has not been declared
src/db_cxx.h:704:10: error: 'ENV' does not name a type
src/db_cxx.h:709:10: error: 'DB_ENV' does not name a type
src/db_cxx.h:714:16: error: 'DB_ENV' does not name a type
src/db_cxx.h:719:16: error: expected ';' at end of member declaration
src/db_cxx.h:719:33: error: expected ')' before '*' token
src/db_cxx.h:724:44: error: 'DB_ENV' does not name a type
src/db_cxx.h:724:52: error: ISO C++ forbids declaration of 'dbenv' with no type [-fpermissive]
src/db_cxx.h:729:2: error: 'u_int32_t' does not name a type
src/db_cxx.h:735:16: error: expected ';' at end of member declaration
src/db_cxx.h:735:35: error: expected ')' before '*' token
src/db_cxx.h:741:37: error: 'DB_ENV' has not been declared
src/db_cxx.h:741:52: error: 'DBT' has not been declared
src/db_cxx.h:741:62: error: 'DB_LSN' has not been declared
src/db_cxx.h:742:12: error: 'db_recops' has not been declared
src/db_cxx.h:743:35: error: 'DB_ENV' has not been declared
src/db_cxx.h:744:34: error: 'DB_ENV' has not been declared
src/db_cxx.h:745:37: error: 'DB_ENV' has not been declared
src/db_cxx.h:745:52: error: 'u_int32_t' has not been declared
src/db_cxx.h:746:32: error: 'DB_ENV' has not been declared
src/db_cxx.h:747:6: error: 'db_threadid_t' has not been declared
src/db_cxx.h:747:27: error: 'u_int32_t' has not been declared
src/db_cxx.h:748:33: error: 'DB_ENV' has not been declared
src/db_cxx.h:748:54: error: 'DBT' does not name a type
src/db_cxx.h:748:59: error: ISO C++ forbids declaration of 'cntrl' with no type [-fpermissive]
src/db_cxx.h:749:12: error: 'DBT' does not name a type
src/db_cxx.h:749:17: error: ISO C++ forbids declaration of 'data' with no type [-fpermissive]
src/db_cxx.h:749:29: error: 'DB_LSN' does not name a type
src/db_cxx.h:749:37: error: ISO C++ forbids declaration of 'lsn' with no type [-fpermissive]
src/db_cxx.h:749:50: error: 'u_int32_t' has not been declared
src/db_cxx.h:750:43: error: 'DB_ENV' does not name a type
src/db_cxx.h:750:51: error: ISO C++ forbids declaration of 'dbenv' with no type [-fpermissive]
src/db_cxx.h:752:45: error: 'DB_ENV' does not name a type
src/db_cxx.h:752:53: error: ISO C++ forbids declaration of 'dbenv' with no type [-fpermissive]
src/db_cxx.h:754:35: error: 'DB_ENV' has not been declared
src/db_cxx.h:755:6: error: 'db_threadid_t' has not been declared
src/db_cxx.h:756:15: error: expected ';' at end of member declaration
src/db_cxx.h:756:50: error: expected ')' before '*' token
src/db_cxx.h:761:17: error: 'DB_ENV' has not been declared
src/db_cxx.h:765:15: error: expected ')' before '*' token
src/db_cxx.h:772:2: error: 'DB_ENV' does not name a type
src/db_cxx.h:774:2: error: 'u_int32_t' does not name a type
src/db_cxx.h:778:57: error: 'db_recops' has not been declared
src/db_cxx.h:779:43: error: 'db_threadid_t' has not been declared
src/db_cxx.h:779:58: error: 'u_int32_t' has not been declared
src/db_cxx.h:784:40: error: 'u_int32_t' has not been declared
src/db_cxx.h:786:26: error: 'u_int32_t' has not been declared
src/db_cxx.h:787:48: error: 'db_threadid_t' has not been declared
src/db_cxx.h:788:54: error: 'db_threadid_t' has not been declared
src/db_cxx.h: In static member function 'static const DbEnv* DbEnv::get_const_DbEnv(const int*)':
src/db_cxx.h:726:40: error: request for member 'api1_internal' in '* dbenv', which is of non-class type 'const int'
src/db_cxx.h: At global scope:
src/db_cxx.h:809:16: error: field 'DB_LOCK' has incomplete type
src/db_cxx.h:810:2: error: 'DB_LOCK' does not name a type
src/db_cxx.h:817:1: error: expected class-name before '{' token
src/db_cxx.h:821:12: error: 'u_int32_t' has not been declared
src/db_cxx.h:822:33: error: 'u_int32_t' has not been declared
src/db_cxx.h:823:14: error: 'u_int32_t' has not been declared
src/db_cxx.h:823:35: error: 'u_int32_t' has not been declared
src/db_cxx.h:843:1: error: expected class-name before '{' token
src/db_cxx.h:857:12: error: 'u_int32_t' has not been declared
src/db_cxx.h:858:10: error: 'db_pgno_t' has not been declared
src/db_cxx.h:858:43: error: 'u_int32_t' has not been declared
src/db_cxx.h:859:20: error: 'u_int32_t' has not been declared
src/db_cxx.h:860:17: error: 'u_int8_t' has not been declared
src/db_cxx.h:861:16: error: 'u_int32_t' has not been declared
src/db_cxx.h:863:20: error: 'db_pgno_t' has not been declared
src/db_cxx.h:865:18: error: 'u_int32_t' has not been declared
src/db_cxx.h:865:37: error: 'u_int32_t' has not been declared
src/db_cxx.h:866:19: error: 'DBT' has not been declared
src/db_cxx.h:867:19: error: 'DB_CACHE_PRIORITY' has not been declared
src/db_cxx.h:869:29: error: 'u_int32_t' has not been declared
src/db_cxx.h:870:24: error: 'DB_CACHE_PRIORITY' has not been declared
src/db_cxx.h:870:52: error: 'u_int32_t' has not been declared
src/db_cxx.h:871:20: error: 'u_int32_t' has not been declared
src/db_cxx.h:872:17: error: 'u_int8_t' has not been declared
src/db_cxx.h:873:16: error: 'u_int32_t' has not been declared
src/db_cxx.h:876:18: error: 'u_int32_t' has not been declared
src/db_cxx.h:876:36: error: 'u_int32_t' has not been declared
src/db_cxx.h:877:19: error: 'DBT' has not been declared
src/db_cxx.h:878:19: error: 'DB_CACHE_PRIORITY' has not been declared
src/db_cxx.h:881:10: error: 'DB_MPOOLFILE' does not name a type
src/db_cxx.h:886:16: error: 'DB_MPOOLFILE' does not name a type
src/db_cxx.h:892:2: error: 'DB_MPOOLFILE' does not name a type
src/db_cxx.h:920:2: error: 'u_int8_t' does not name a type
src/db_cxx.h:929:21: error: 'u_int32_t' has not been declared
src/db_cxx.h:932:35: error: 'u_int32_t' has not been declared
src/db_cxx.h:933:20: error: 'db_seq_t' has not been declared
src/db_cxx.h:934:12: error: 'u_int32_t' has not been declared
src/db_cxx.h:935:27: error: 'u_int32_t' has not been declared
src/db_cxx.h:936:11: error: 'DB_SEQUENCE_STAT' has not been declared
src/db_cxx.h:936:34: error: 'u_int32_t' has not been declared
src/db_cxx.h:937:17: error: 'u_int32_t' has not been declared
src/db_cxx.h:939:39: error: 'db_seq_t' has not been declared
src/db_cxx.h:939:55: error: 'u_int32_t' has not been declared
src/db_cxx.h:942:16: error: 'u_int32_t' has not been declared
src/db_cxx.h:943:16: error: 'u_int32_t' has not been declared
src/db_cxx.h:944:16: error: 'db_seq_t' has not been declared
src/db_cxx.h:944:32: error: 'db_seq_t' has not been declared
src/db_cxx.h:945:16: error: 'db_seq_t' has not been declared
src/db_cxx.h:945:30: error: 'db_seq_t' has not been declared
src/db_cxx.h:950:10: error: 'DB_SEQUENCE' does not name a type
src/db_cxx.h:955:16: error: 'DB_SEQUENCE' does not name a type
src/db_cxx.h:960:21: error: expected ';' at end of member declaration
src/db_cxx.h:960:48: error: expected ')' before '*' token
src/db_cxx.h:965:54: error: 'DB_SEQUENCE' does not name a type
src/db_cxx.h:965:67: error: ISO C++ forbids declaration of 'seq' with no type [-fpermissive]
src/db_cxx.h:971:21: error: expected ';' at end of member declaration
src/db_cxx.h:971:50: error: expected ')' before '*' token
src/db_cxx.h:974:25: error: expected ')' before '*' token
src/db_cxx.h:979:2: error: 'DB_SEQUENCE' does not name a type
src/db_cxx.h:980:2: error: 'DBT' does not name a type
src/db_cxx.h: In static member function 'static const DbSequence* DbSequence::get_const_DbSequence(const int*)':
src/db_cxx.h:967:35: error: request for member 'api_internal' in '* seq', which is of non-class type 'const int'
src/db_cxx.h: At global scope:
src/db_cxx.h:992:13: error: 'u_int32_t' has not been declared
src/db_cxx.h:993:14: error: 'u_int32_t' has not been declared
src/db_cxx.h:994:2: error: 'u_int32_t' does not name a type
src/db_cxx.h:996:14: error: 'u_int8_t' has not been declared
src/db_cxx.h:998:18: error: 'db_timeout_t' has not been declared
src/db_cxx.h:998:40: error: 'u_int32_t' has not been declared
src/db_cxx.h:1000:10: error: 'DB_TXN' does not name a type
src/db_cxx.h:1005:16: error: 'DB_TXN' does not name a type
src/db_cxx.h:1010:16: error: expected ';' at end of member declaration
src/db_cxx.h:1010:33: error: expected ')' before '*' token
src/db_cxx.h:1015:44: error: 'DB_TXN' does not name a type
src/db_cxx.h:1015:52: error: ISO C++ forbids declaration of 'txn' with no type [-fpermissive]
src/db_cxx.h:1021:16: error: expected ';' at end of member declaration
src/db_cxx.h:1021:35: error: expected ')' before '*' token
src/db_cxx.h:1031:2: error: 'DB_TXN' does not name a type
src/db_cxx.h:1052:15: error: expected ')' before '*' token
src/db_cxx.h: In static member function 'static const DbTxn* DbTxn::get_const_DbTxn(const int*)':
src/db_cxx.h:1017:30: error: request for member 'api_internal' in '* txn', which is of non-class type 'const int'
src/db_cxx.h: At global scope:
src/db_cxx.h:1084:1: error: expected class-name before '{' token
src/db_cxx.h:1097:2: error: 'u_int32_t' does not name a type
src/db_cxx.h:1098:16: error: 'u_int32_t' has not been declared
src/db_cxx.h:1101:2: error: 'u_int32_t' does not name a type
src/db_cxx.h:1102:16: error: 'u_int32_t' has not been declared
src/db_cxx.h:1105:2: error: 'u_int32_t' does not name a type
src/db_cxx.h:1106:16: error: 'u_int32_t' has not been declared
src/db_cxx.h:1109:2: error: 'u_int32_t' does not name a type
src/db_cxx.h:1110:16: error: 'u_int32_t' has not been declared
src/db_cxx.h:1113:2: error: 'u_int32_t' does not name a type
src/db_cxx.h:1114:17: error: 'u_int32_t' has not been declared
src/db_cxx.h:1117:2: error: 'DBT' does not name a type
src/db_cxx.h:1118:8: error: 'DBT' does not name a type
src/db_cxx.h:1120:14: error: expected ';' at end of member declaration
src/db_cxx.h:1120:26: error: expected ')' before '*' token
src/db_cxx.h:1121:40: error: 'DBT' does not name a type
src/db_cxx.h:1121:45: error: ISO C++ forbids declaration of 'dbt' with no type [-fpermissive]
src/db_cxx.h:1124:18: error: 'u_int32_t' has not been declared
src/db_cxx.h: In member function 'void* Dbt::get_data() const':
src/db_cxx.h:1093:50: error: 'data' was not declared in this scope
src/db_cxx.h: In member function 'void Dbt::set_data(void*)':
src/db_cxx.h:1094:43: error: 'data' was not declared in this scope
src/db_cxx.h: In member function 'void Dbt::set_size(int)':
src/db_cxx.h:1098:43: error: 'size' was not declared in this scope
src/db_cxx.h:1098:43: note: suggested alternatives:
src/boost/range/size.hpp:40:5: note:   'boost::size'
src/boost/mpl/size_fwd.hpp:20:38: note:   'boost::mpl::size'
src/db_cxx.h: In member function 'void Dbt::set_ulen(int)':
src/db_cxx.h:1102:43: error: 'ulen' was not declared in this scope
src/db_cxx.h: In member function 'void Dbt::set_dlen(int)':
src/db_cxx.h:1106:43: error: 'dlen' was not declared in this scope
src/db_cxx.h: In member function 'void Dbt::set_doff(int)':
src/db_cxx.h:1110:43: error: 'doff' was not declared in this scope
src/db_cxx.h: In member function 'void Dbt::set_flags(int)':
src/db_cxx.h:1114:43: error: 'flags' was not declared in this scope
src/db_cxx.h: At global scope:
src/db_cxx.h:1156:2: error: 'u_int8_t' does not name a type
src/db_cxx.h:1157:2: error: 'u_int32_t' does not name a type
src/db_cxx.h:1171:12: error: 'db_recno_t' has not been declared
src/db_cxx.h:1219:14: error: 'db_recno_t' has not been declared
src/db_cxx.h:1220:15: error: 'db_recno_t' has not been declared
src/db_cxx.h:1284:48: error: 'db_lockop_t' has not been declared
src/db_cxx.h:1285:6: error: 'db_lockmode_t' has not been declared
src/db_cxx.h:1292:2: error: 'db_lockop_t' does not name a type
src/db_cxx.h:1293:2: error: 'db_lockmode_t' does not name a type
src/db_cxx.h:1299:2: error: 'db_lockop_t' does not name a type
src/db_cxx.h:1300:2: error: 'db_lockmode_t' does not name a type
In file included from src/main.h:13:0,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
src/db.h:60:31: error: 'DB_TXN_WRITE_NOSYNC' was not declared in this scope
In file included from src/main.h:13:0,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
src/db.h:208:98: error: 'DB_NEXT' was not declared in this scope
In file included from src/main.h:13:0,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
src/db.h: In member function 'bool CDB::Read(const K&, T&)':
src/db.h:105:28: error: 'DB_DBT_MALLOC' was not declared in this scope
src/db.h:107:45: error: 'class Dbt' has no member named 'get_size'
src/db.h:113:99: error: 'class Dbt' has no member named 'get_size'
In file included from src/main.h:13:0,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
src/db.h:121:49: error: 'class Dbt' has no member named 'get_size'
src/db.h: In member function 'bool CDB::Write(const K&, const T&, bool)':
src/db.h:147:77: error: 'DB_NOOVERWRITE' was not declared in this scope
src/db.h:150:45: error: 'class Dbt' has no member named 'get_size'
src/db.h:151:49: error: 'class Dbt' has no member named 'get_size'
src/db.h: In member function 'bool CDB::Erase(const K&)':
src/db.h:173:45: error: 'class Dbt' has no member named 'get_size'
src/db.h:174:36: error: 'DB_NOTFOUND' was not declared in this scope
src/db.h: In member function 'bool CDB::Exists(const K&)':
src/db.h:193:45: error: 'class Dbt' has no member named 'get_size'
src/db.h: In member function 'int CDB::ReadAtCursor(Dbc*, CDataStream&, CDataStream&, unsigned int)':
src/db.h:212:23: error: 'DB_SET' was not declared in this scope
src/db.h:212:43: error: 'DB_SET_RANGE' was not declared in this scope
src/db.h:212:69: error: 'DB_GET_BOTH' was not declared in this scope
src/db.h:212:94: error: 'DB_GET_BOTH_RANGE' was not declared in this scope
src/db.h:218:23: error: 'DB_GET_BOTH' was not declared in this scope
src/db.h:218:48: error: 'DB_GET_BOTH_RANGE' was not declared in this scope
src/db.h:223:26: error: 'DB_DBT_MALLOC' was not declared in this scope
src/db.h:234:54: error: 'class Dbt' has no member named 'get_size'
src/db.h:237:60: error: 'class Dbt' has no member named 'get_size'
src/db.h:240:45: error: 'class Dbt' has no member named 'get_size'
src/db.h:241:49: error: 'class Dbt' has no member named 'get_size'
src/db.h: In member function 'bool CDB::TxnBegin()':
src/db.h:252:38: error: the default argument for parameter 0 of 'DbTxn* CDBEnv::TxnBegin(int)' has not yet been parsed
In file included from src/boost/interprocess/errors.hpp:37:0,
                 from src/boost/interprocess/exceptions.hpp:20,
                 from src/boost/interprocess/shared_memory_object.hpp:17,
                 from src/boost/interprocess/ipc/message_queue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
src/boost/interprocess/detail/win32_api.hpp: At global scope:
src/boost/interprocess/detail/win32_api.hpp:861:116: warning: declaration of 'void* boost::interprocess::winapi::CreateMutexA(boost::interprocess::winapi::interprocess_security_attributes*, int, const
 char*)' with C language linkage [enabled by default]
src/boost/thread/win32/thread_primitives.hpp:119:55: warning: conflicts with previous declaration 'void* boost::detail::win32::CreateMutexA(boost::detail::win32::_SECURITY_ATTRIBUTES*, int, const char
*)' [enabled by default]
src/boost/interprocess/detail/win32_api.hpp:866:127: warning: declaration of 'void* boost::interprocess::winapi::CreateSemaphoreA(boost::interprocess::winapi::interprocess_security_attributes*, long i
nt, long int, const char*)' with C language linkage [enabled by default]
src/boost/thread/win32/thread_primitives.hpp:120:55: warning: conflicts with previous declaration 'void* boost::detail::win32::CreateSemaphoreA(boost::detail::win32::_SECURITY_ATTRIBUTES*, long int, l
ong int, const char*)' [enabled by default]
In file included from src/boost/interprocess/detail/windows_intermodule_singleton.hpp:26:0,
                 from src/boost/interprocess/detail/tmp_dir_helpers.hpp:22,
                 from src/boost/interprocess/shared_memory_object.hpp:22,
                 from src/boost/interprocess/ipc/message_queue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
src/boost/interprocess/detail/intermodule_singleton_common.hpp: In static member function 'static ThreadSafeGlobalMap& boost::interprocess::ipcdetail::intermodule_singleton_common<ThreadSafeGlobalMap>
::get_map() [with ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_singleton_helpers::windows_semaphore_based_map]':
src/boost/interprocess/detail/intermodule_singleton_common.hpp:125:49:   instantiated from 'static void boost::interprocess::ipcdetail::intermodule_singleton_common<ThreadSafeGlobalMap>::initialize_si
ngleton_logic(void*&, volatile uint32_t&, void* (*)(ThreadSafeGlobalMap&), bool) [with ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_singleton_helpers::windows_semaphore_based_map,
 uint32_t = unsigned int, boost::interprocess::ipcdetail::intermodule_singleton_common<ThreadSafeGlobalMap>::singleton_constructor_t = void*(boost::interprocess::ipcdetail::intermodule_singleton_helpe
rs::windows_semaphore_based_map&)]'
src/boost/interprocess/detail/intermodule_singleton_common.hpp:333:7:   instantiated from 'static void boost::interprocess::ipcdetail::intermodule_singleton_impl<C, LazyInit, Phoenix, ThreadSafeGlobal
Map>::atentry_work() [with C = boost::interprocess::ipcdetail::windows_bootstamp, bool LazyInit = true, bool Phoenix = true, ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_singleton
_helpers::windows_semaphore_based_map]'
src/boost/interprocess/detail/intermodule_singleton_common.hpp:323:13:   instantiated from 'static C& boost::interprocess::ipcdetail::intermodule_singleton_impl<C, LazyInit, Phoenix, ThreadSafeGlobalM
ap>::get() [with C = boost::interprocess::ipcdetail::windows_bootstamp, bool LazyInit = true, bool Phoenix = true, ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_singleton_helpers::
windows_semaphore_based_map]'
src/boost/interprocess/detail/tmp_dir_helpers.hpp:45:97:   instantiated from here
src/boost/interprocess/detail/intermodule_singleton_common.hpp:203:93: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
src/boost/system/error_code.hpp: At global scope:
src/boost/system/error_code.hpp:214:36: warning: 'boost::system::posix_category' defined but not used [-Wunused-variable]
src/boost/system/error_code.hpp:215:36: warning: 'boost::system::errno_ecat' defined but not used [-Wunused-variable]
src/boost/system/error_code.hpp:216:36: warning: 'boost::system::native_ecat' defined but not used [-Wunused-variable]
mingw32-make: *** [build/bitcoin.o] Error 1
CaptChadd (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1005


Product Marketing & Promotion / Software Developer


View Profile
July 16, 2013, 12:46:34 PM
 #19

I am getting this error.

Anyone know what it means please?

C:\Defaultcoin\Defaultcoin-Master>mingw32-make -f Makefile.Release
g++ -c -pipe -O2 -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -D__NO_SYSTEM_INCLUDES -DWIN32 -D_MT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT
_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\Qt\4.8.4\include\QtCore" -I"..\..\Qt\4.8.4\include\QtGui" -I"..\..\Qt\4.8.4\include" -I"src" -I"src\json" -I"src\qt" -I"..\..\Qt\4.8.4\include\ActiveQt" -I"build" -I"build" -I"..\..\Qt\4.8.4\mkspecs\win32-g++" -o build\bitcoin.o src\qt\bitcoin.cpp
In file included from src/main.h:9:0,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
src/bignum.h:11:24: fatal error: openssl/bn.h: No such file or directory
compilation terminated.
mingw32-make: *** [build/bitcoin.o] Error 1
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!