[Bug 235358] net-p2p/qtum: fix build with GCC-based architectures
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Jan 31 19:09:30 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235358
Bug ID: 235358
Summary: net-p2p/qtum: fix build with GCC-based architectures
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: vd at FreeBSD.org
Reporter: pkubaj at anongoth.pl
Assignee: vd at FreeBSD.org
Flags: maintainer-feedback?(vd at FreeBSD.org)
Created attachment 201564
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=201564&action=edit
patch
The code for big-endian architectures is broken and doesn't compile.
#define fix_endian64(dst_, src_) dst_ = ethash_swap_u64(src_
misses ) at the end of line.
fix_endian_arr32 and fix_endian_arr64 are broken because of bad "while"
placement. Unfortunately, I couldn't find what the issue is, so I just removed
do while, which simplifies things.
Another error is that for loop in fix_endian_arr{32,64} uses , instead of ;.
Also remove const qualifier from nonce since it's actually modified and causes
another build error (although Clang for some strange reason accepts it).
Tested on powerpc64 and amd64.
Hardware sponsored by IntegriCloud.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list