Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2019 19:48:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 240695] net-p2p/litecoin: fix build on big-endian architectures
Message-ID:  <bug-240695-7788-ZGlKbWpJQC@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-240695-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-240695-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240695

--- Comment #1 from Piotr Kubaj <pkubaj@FreeBSD.org> ---
Include sys/endian.h in src/crypto/scrypt.cpp, big-endian architectures need
it:
crypto/scrypt.cpp:157:3: error: 'be32enc' was not declared in this scope
  157 |   be32enc(ivec, (uint32_t)(i + 1));
      |   ^~~~~~~
crypto/scrypt.cpp: In function 'void scrypt_1024_1_1_256_sp_generic(const
char*, char*, char*)':
crypto/scrypt.cpp:269:10: error: 'le32dec' was not declared in this scope
  269 |   X[k] =3D le32dec(&B[4 * k]);
      |          ^~~~~~~
crypto/scrypt.cpp:285:3: error: 'le32enc' was not declared in this scope
  285 |   le32enc(&B[4 * k], X[k]);
      |   ^~~~~~~

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240695-7788-ZGlKbWpJQC>