You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The minor field in MoneroGetAddress in messages-monero.proto generates the following declaration in messages-monero.pb.h:
::uint32_tminor() const;
Which conflicts with this definition in FreeBSD system headers, resulting in this compilation error:
src/device_trezor/trezor/messages/messages-monero.pb.h:6265:14: error: expected member name or ';' after declaration specifiers
::uint32_t minor() const;
~~~~~~~~~~ ^
/monero/contrib/depends/x86_64-unknown-freebsd/native/usr/include/sys/types.h:373:20: note: expanded from macro 'minor'
#define minor(x) ((int)((x)&0xffff00ff)) /* minor number */
^
We can hack around it, but a proper fix would be to rename the fields (and to change any code that references these field names):
diff --git a/protob/messages-monero.proto b/protob/messages-monero.proto
index c88218d..c14fc2a 100644
--- a/protob/messages-monero.proto+++ b/protob/messages-monero.proto@@ -87,8 +87,8 @@ message MoneroGetAddress {
repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node
optional bool show_display = 2; // Optionally show on display before sending the result
optional MoneroNetworkType network_type = 3 [default=MAINNET]; // Network type
- optional uint32 account = 4; // Major subaddr index- optional uint32 minor = 5; // Minor subaddr index+ optional uint32 sub_addr_major = 4; // Major subaddr index+ optional uint32 sub_addr_minor = 5; // Minor subaddr index
optional bytes payment_id = 6; // Payment ID for integrated address
}
The text was updated successfully, but these errors were encountered:
Since this only affects Monero and the Monero team knows about the issue (the report comes from them), I think it makes sense to do the rename as suggested.
The
minor
field in MoneroGetAddress inmessages-monero.proto
generates the following declaration inmessages-monero.pb.h
:Which conflicts with this definition in FreeBSD system headers, resulting in this compilation error:
We can hack around it, but a proper fix would be to rename the fields (and to change any code that references these field names):
The text was updated successfully, but these errors were encountered: