Building mpw-bench fails with error Unknown Typename »u_int16_t«

Thomas's Avatar

Thomas

04 Jan, 2019 04:11 PM

```
[[email protected] 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 ) );
     ^~~~~~~~~~~~~~
```

  1. Support Staff 1 Posted by Maarten Billemo... on 05 Jan, 2019 06:50 PM

    Maarten Billemont's Avatar

    Hi Thomas,

    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.

    https://gitlab.com/MasterPassword/MasterPassword

    Please file any source related issues as an issue in Gitlab so it can be tracked well.

    Thanks!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac