Opened 13 months ago
Last modified 12 months ago
#68553 new defect
qtkeychain-qt5 @0.13.2_0: error: use of undeclared identifier 'errSecOpWr'
Reported by: | chrstphrchvz (Christopher Chavez) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | cooljeanius (Eric Gallager) | |
Port: | qtkeychain-qt5 |
Description
errSecOpWr
is only defined since the macOS 10.12.4 SDK.
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_security_qtkeychain/qtkeychain-qt5/work/qtkeychain-0.13.2/keychain_apple.mm:46:14: error: use of undeclared identifier 'errSecOpWr'; did you mean 'errSecIO'? case errSecOpWr: ^~~~~~~~~~ errSecIO
The following patch might work, but may not be worth bothering with if there many more incompatibilities with macOS < 10.12. I personally do not use macOS versions that old.
-
keychain_apple.mm
42 42 case errSecUnimplemented: 43 43 return ErrorDescription(QKeychain::NotImplemented, Job::tr("Function or operation not implemented")); 44 44 case errSecIO: 45 45 return ErrorDescription(QKeychain::OtherError, Job::tr("I/O error")); 46 case errSecOpWr:46 case -49: /* errSecOpWr */ 47 47 return ErrorDescription(QKeychain::OtherError, Job::tr("Already open with with write permission")); 48 48 case errSecParam: 49 49 return ErrorDescription(QKeychain::OtherError, Job::tr("Invalid parameters passed to a function")); 50 50 case errSecAllocate:
Change History (1)
comment:1 Changed 12 months ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
Note: See
TracTickets for help on using
tickets.