tag:help.masterpassword.app,2014-09-03:/help/discussions/problems/581-building-mpw-bench-fails-with-error-unknown-typename-u_int16_t
Master Password: Discussion
2021-05-05T18:50:56Z
tag:help.masterpassword.app,2014-09-03:Comment/46753270
2019-01-04T16:11:43Z
2021-05-05T18:50:56Z
Building mpw-bench fails with error Unknown Typename »u_int16_t«
<div><pre>
<code>[root@pc7-cubi3 masterpassword]# targets='all' ./build
Current mpw source version 2.6-cli-5-0-g344771db...
Building target: mpw...
INFO: Enabled mpw_sodium (libsodium).
INFO: Enabled mpw_color (libtinfo).
INFO: Enabled mpw_json (libjson-c).
done! You can now run ./mpw-cli-tests, ./install or use ./mpw
Building target: mpw-bench...
INFO: Enabled mpw_sodium (libsodium).
In file included from cli/bcrypt.h:42,
from cli/mpw-bench.c:34:
cli/blf.h:65:56: Fehler: Unbekannter Typname »u_int16_t«; meinten Sie »uint16_t«?
void Blowfish_expand0state(blf_ctx *, const uint8_t *, u_int16_t);
^~~~~~~~~
uint16_t
cli/blf.h:66:55: Fehler: Unbekannter Typname »u_int16_t«; meinten Sie »uint16_t«?
void Blowfish_expandstate(blf_ctx *, const uint8_t *, u_int16_t, const uint8_t *, u_int16_t);
^~~~~~~~~
uint16_t
cli/blf.h:66:83: Fehler: Unbekannter Typname »u_int16_t«; meinten Sie »uint16_t«?
void Blowfish_expandstate(blf_ctx *, const uint8_t *, u_int16_t, const uint8_t *, u_int16_t);
^~~~~~~~~
uint16_t
cli/blf.h:70:42: Fehler: Unbekannter Typname »u_int16_t«; meinten Sie »uint16_t«?
void blf_key(blf_ctx *, const uint8_t *, u_int16_t);
^~~~~~~~~
uint16_t
cli/blf.h:71:37: Fehler: Unbekannter Typname »u_int16_t«; meinten Sie »uint16_t«?
void blf_enc(blf_ctx *, uint32_t *, u_int16_t);
^~~~~~~~~
uint16_t
cli/blf.h:72:37: Fehler: Unbekannter Typname »u_int16_t«; meinten Sie »uint16_t«?
void blf_dec(blf_ctx *, uint32_t *, u_int16_t);
^~~~~~~~~
uint16_t
cli/blf.h:81:48: Fehler: Unbekannter Typname »u_int16_t«; meinten Sie »uint16_t«?
uint32_t Blowfish_stream2word(const uint8_t *, u_int16_t, u_int16_t *);
^~~~~~~~~
uint16_t
cli/blf.h:81:59: Fehler: Unbekannter Typname »u_int16_t«; meinten Sie »uint16_t«?
uint32_t Blowfish_stream2word(const uint8_t *, u_int16_t, u_int16_t *);
^~~~~~~~~
uint16_t
In file included from cli/bcrypt.h:43,
from cli/mpw-bench.c:34:
cli/blowfish.h:497:10: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »blf_key«
__unused blf_key(blf_ctx *c, const uint8_t *k, uint16_t len)
^~~~~~~
cli/blowfish.h:520:10: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »blf_dec«
__unused blf_dec(blf_ctx *c, uint32_t *data, uint16_t blocks)
^~~~~~~
cli/blowfish.h:533:10: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »blf_ecb_encrypt«
__unused blf_ecb_encrypt(blf_ctx *c, uint8_t *data, uint32_t len)
^~~~~~~~~~~~~~~
cli/blowfish.h:555:10: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »blf_ecb_decrypt«
__unused blf_ecb_decrypt(blf_ctx *c, uint8_t *data, uint32_t len)
^~~~~~~~~~~~~~~
cli/blowfish.h:577:10: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »blf_cbc_encrypt«
__unused blf_cbc_encrypt(blf_ctx *c, uint8_t *iv, uint8_t *data, uint32_t len)
^~~~~~~~~~~~~~~
cli/blowfish.h:602:10: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »blf_cbc_decrypt«
__unused blf_cbc_decrypt(blf_ctx *c, uint8_t *iva, uint8_t *data, uint32_t len)
^~~~~~~~~~~~~~~
In file included from cli/mpw-bench.c:34:
cli/bcrypt.h: In Funktion »bcrypt_initsalt«:
cli/bcrypt.h:75:5: Warnung: Implizite Deklaration der Funktion »arc4random_buf« [-Wimplicit-function-declaration]
arc4random_buf( csalt, sizeof( csalt ) );
^~~~~~~~~~~~~~</code>
</pre></div>
74cmonty
tag:help.masterpassword.app,2014-09-03:Comment/46753270
2019-01-05T18:50:09Z
2019-01-05T18:50:09Z
Building mpw-bench fails with error Unknown Typename »u_int16_t«
<div><p>Hi Thomas,</p>
<p>Thanks for reporting these standard library compatibility issues with the Blowfish library. Please try out the code from the master branch and let me know if there's any more issues.</p>
<p><a href="https://gitlab.com/MasterPassword/MasterPassword">https://gitlab.com/MasterPassword/MasterPassword</a></p>
<p>Please file any source related issues as an issue in Gitlab so it can be tracked well.</p>
<p>Thanks!</p></div>
Maarten Billemont