https://bugs.winehq.org/show_bug.cgi?id=42328
Bug ID: 42328 Summary: Wine does not build on macos os x if --with-gnutls is passed to configure and gnutls is installed Product: Wine-staging Version: 2.0 Hardware: x86-64 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: davec.bugs@gmail.com CC: erich.e.hoover@wine-staging.com, michael@fds-team.de, sebastian@fds-team.de
/Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:891:5: error: unknown type name 'gnutls_cipher_hd_t' gnutls_cipher_hd_t handle; ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:907:10: error: use of undeclared identifier 'libgnutls_handle' if (!libgnutls_handle) return STATUS_INTERNAL_ERROR; ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:975:8: error: unknown type name 'gnutls_cipher_algorithm_t' static gnutls_cipher_algorithm_t get_gnutls_cipher( const struct key *key ) ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:983:38: error: use of undeclared identifier 'GNUTLS_CIPHER_AES_128_GCM' case MODE_ID_GCM: return GNUTLS_CIPHER_AES_128_GCM; ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:985:38: error: use of undeclared identifier 'GNUTLS_CIPHER_AES_128_CBC' default: return GNUTLS_CIPHER_AES_128_CBC; ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:989:16: error: use of undeclared identifier 'GNUTLS_CIPHER_UNKNOWN' return GNUTLS_CIPHER_UNKNOWN; ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:995:5: error: use of undeclared identifier 'gnutls_cipher_algorithm_t' gnutls_cipher_algorithm_t cipher; ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:996:5: error: use of undeclared identifier 'gnutls_datum_t' gnutls_datum_t secret, vector; ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1001:9: warning: implicit declaration of function 'pgnutls_cipher_deinit' is invalid in C99 [-Wimplicit-function-declaration] pgnutls_cipher_deinit( key->handle ); ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1005:10: error: use of undeclared identifier 'cipher' if ((cipher = get_gnutls_cipher( key )) == GNUTLS_CIPHER_UNKNOWN) ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1005:48: error: use of undeclared identifier 'GNUTLS_CIPHER_UNKNOWN' if ((cipher = get_gnutls_cipher( key )) == GNUTLS_CIPHER_UNKNOWN) ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1008:5: error: use of undeclared identifier 'secret' secret.data = key->secret; ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1009:5: error: use of undeclared identifier 'secret' secret.size = key->secret_len; ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1012:9: error: use of undeclared identifier 'vector' vector.data = iv; ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1013:9: error: use of undeclared identifier 'vector' vector.size = iv_len; ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1016:16: warning: implicit declaration of function 'pgnutls_cipher_init' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = pgnutls_cipher_init( &key->handle, cipher, &secret, iv ? &vector : NULL ))) ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1016:74: error: use of undeclared identifier 'vector' if ((ret = pgnutls_cipher_init( &key->handle, cipher, &secret, iv ? &vector : NULL ))) ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1016:51: error: use of undeclared identifier 'cipher' if ((ret = pgnutls_cipher_init( &key->handle, cipher, &secret, iv ? &vector : NULL ))) ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1016:60: error: use of undeclared identifier 'secret' if ((ret = pgnutls_cipher_init( &key->handle, cipher, &secret, iv ? &vector : NULL ))) ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1018:9: warning: implicit declaration of function 'pgnutls_perror' is invalid in C99 [-Wimplicit-function-declaration] pgnutls_perror( ret ); ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1029:16: warning: implicit declaration of function 'pgnutls_cipher_add_auth' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = pgnutls_cipher_add_auth( key->handle, auth_data, len ))) ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1043:16: warning: implicit declaration of function 'pgnutls_cipher_encrypt2' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = pgnutls_cipher_encrypt2( key->handle, input, input_len, output, output_len ))) ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1057:16: warning: implicit declaration of function 'pgnutls_cipher_decrypt2' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = pgnutls_cipher_decrypt2( key->handle, input, input_len, output, output_len ))) ^ /Users/dave/src/wine-git/dlls/bcrypt/bcrypt_main.c:1070:16: warning: implicit declaration of function 'pgnutls_cipher_tag' is invalid in C99 [-Wimplicit-function-declaration] if ((ret = pgnutls_cipher_tag( key->handle, tag, len ))) ^ 7 warnings and 17 errors generated. make[1]: *** [bcrypt_main.o] Error 1 make: *** [dlls/bcrypt] Error 2