Bitcoin Forum
May 07, 2024, 05:50:12 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: Compiling Bytecoin on Ubuntu  (Read 1165 times)
Kumala (OP)
Hero Member
*****
Offline Offline

Activity: 525
Merit: 500



View Profile
April 12, 2013, 04:23:04 PM
 #1

Trying to compile Bytecoin on Ubuntu leaves me with the error message :

  init.cpp:644:15: error: operator '!' has no right operand

This error appears on Ubuntu 11.04 as well as Ubuntu 12.04.

Any ideas?

Hacked Account! Don't send any money.
1715104212
Hero Member
*
Offline Offline

Posts: 1715104212

View Profile Personal Message (Offline)

Ignore
1715104212
Reply with quote  #2

1715104212
Report to moderator
1715104212
Hero Member
*
Offline Offline

Posts: 1715104212

View Profile Personal Message (Offline)

Ignore
1715104212
Reply with quote  #2

1715104212
Report to moderator
1715104212
Hero Member
*
Offline Offline

Posts: 1715104212

View Profile Personal Message (Offline)

Ignore
1715104212
Reply with quote  #2

1715104212
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715104212
Hero Member
*
Offline Offline

Posts: 1715104212

View Profile Personal Message (Offline)

Ignore
1715104212
Reply with quote  #2

1715104212
Report to moderator
1715104212
Hero Member
*
Offline Offline

Posts: 1715104212

View Profile Personal Message (Offline)

Ignore
1715104212
Reply with quote  #2

1715104212
Report to moderator
davidpbrown
Sr. Member
****
Offline Offline

Activity: 531
Merit: 260


Vires in Numeris


View Profile WWW
April 12, 2013, 07:00:27 PM
 #2

Bytecoin.. is that the one started on April 1st?..

I've no idea but others need to be made as sudo not user, otherwise fails with variety of errors.

฿://12vxXHdmurFP3tpPk7bt6YrM3XPiftA82s
dreamwatcher
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
April 12, 2013, 07:12:04 PM
 #3

Well the '!' operator is a logical NOT statement. Example:  A != B means A does not equal B

So it would always need something to identify with.


This is the code around where the error is happening. It is exactly the same as the Terracoin source (Using Meld to compare)

Code:
    // ********************************************************* Step 6: network initialization

    int nSocksVersion = GetArg("-socks", 5);

    if (nSocksVersion != 4 && nSocksVersion != 5)
        return InitError(strprintf(_("Unknown -socks proxy version requested: %i"), nSocksVersion));

    if (mapArgs.count("-onlynet")) {
        std::set<enum Network> nets;
        BOOST_FOREACH(std::string snet, mapMultiArgs["-onlynet"]) {
            enum Network net = ParseNetwork(snet);
            if (net == NET_UNROUTABLE)
                return InitError(strprintf(_("Unknown network specified in -onlynet: '%s'"), snet.c_str()));
            nets.insert(net);
        }
        for (int n = 0; n < NET_MAX; n++) {
            enum Network net = (enum Network)n;
            if (!nets.count(net))
                SetLimited(net);
        }
    }
#if defined(USE_IPV6)
#if ! USE_IPV6
    else
        SetLimited(NET_IPV6);
#endif
#endif

The only thing I see is the "#if ! USE_IPV6", However the '#' tells the compiler not to compile that line. It is like a comment using '/' except that a real '/' comment gets compiled.

I am stumped, make sure your copy of the source is not corrupted, and possibly check to make sure that 'if ! USE_IPV6'  has the '#' prefix so the compiler will ignore it.

Also make sure you have build-essential installed.

I can compile sucessfully on both 12.4 and 12.10.... Huh
davidpbrown
Sr. Member
****
Offline Offline

Activity: 531
Merit: 260


Vires in Numeris


View Profile WWW
April 12, 2013, 07:16:45 PM
 #4

Again guessing .. it's not the USE_UPNP=1 issue is it?.. use USE_UPNP= instead seems to be the better default for a few of these.

฿://12vxXHdmurFP3tpPk7bt6YrM3XPiftA82s
dreamwatcher
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
April 12, 2013, 07:32:49 PM
 #5

Again guessing .. it's not the USE_UPNP=1 issue is it?.. use USE_UPNP= instead seems to be the better default for a few of these.


If no UPNP option is given I believe the default is to install miniupnpc. If miniupnpc is not installed the compiler would give you a missing dependency error. Something along the lines that it cannot find "miniupnpc'

This error is  specifically pointing to a line of code in the source.

So, I doubt it, but then again i have see some crazy things happen with compilers and source.
Kumala (OP)
Hero Member
*****
Offline Offline

Activity: 525
Merit: 500



View Profile
April 13, 2013, 04:41:46 AM
 #6

Works now, I did:
  install libupnp-dev
  set  USE_UPNP:=-    int the makefile instead of uncommenting the line.

Hacked Account! Don't send any money.
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!