Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2024 01:22:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   =?UTF-8?B?W0J1ZyAyODEwMjhdIHd3dy9oaWF3YXRoYTogdXBkYXRlIDExLjIg?= =?UTF-8?B?4oaSIDExLjY=?=
Message-ID:  <bug-281028-7788-7dlQQmsYId@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-281028-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-281028-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281028

Chris Petrik <cpetrik@proton.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cpetrik@proton.me

--- Comment #12 from Chris Petrik <cpetrik@proton.me> ---
It is going to be a royal pain to hack each new Hiawatha version due to lac=
k of
interest in updating mbedtls and most people aren't going to waste there ti=
me
with it. why would I use the port when I can just use the internal lib that=
 is
as new as it gets as Hugo was awesome about this.

Now why can't we just use the internal lib live ive done with OpenBSD and
NetBSD is beyond me and again this has been a issue for 4 years now. hacking
software isn't the way to go when you can easily import mbedtls3 and use th=
at
making it easier in the long run to run as well as a starting point for peo=
ple
to update the code from 2.x


FAILED: CMakeFiles/hiawatha.dir/src/tls.c.o
/usr/bin/cc  -I/home/chris/buildports/www/hiawatha/work/hiawatha-11.6
-I/usr/local/include/libxml2 -O2 -Wall -Wextra -O2 -pipe=20
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
-gdwarf-4 -O2 -g -DNDEBUG -MD -MT CMakeFiles/hiawatha.dir/src/tls.c.o -MF
CMakeFiles/hiawatha.dir/src/tls.c.o.d -o CMakeFiles/hiawatha.dir/src/tls.c.=
o -c
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:69:2: erro=
r:
use of undeclared identifier 'MBEDTLS_TLS1_3_CHACHA20_POLY1305_SHA256'; did=
 you
mean 'MBEDTLS_CIPHER_CHACHA20_POLY1305'?
   69 |         MBEDTLS_TLS1_3_CHACHA20_POLY1305_SHA256,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         MBEDTLS_CIPHER_CHACHA20_POLY1305
/usr/local/include/mbedtls/cipher.h:172:5: note:
'MBEDTLS_CIPHER_CHACHA20_POLY1305' declared here
  172 |     MBEDTLS_CIPHER_CHACHA20_POLY1305,    /**< ChaCha20-Poly1305 AEAD
cipher. */
      |     ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:70:2: erro=
r:
use of undeclared identifier 'MBEDTLS_TLS1_3_AES_256_GCM_SHA384'
   70 |         MBEDTLS_TLS1_3_AES_256_GCM_SHA384,
      |         ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:71:2: erro=
r:
use of undeclared identifier 'MBEDTLS_TLS1_3_AES_128_GCM_SHA256'
   71 |         MBEDTLS_TLS1_3_AES_128_GCM_SHA256,
      |         ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:72:2: erro=
r:
use of undeclared identifier 'MBEDTLS_TLS1_3_AES_128_CCM_SHA256'
   72 |         MBEDTLS_TLS1_3_AES_128_CCM_SHA256,
      |         ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:233:2: err=
or:
use of undeclared identifier 'psa_status_t'
  233 |         psa_status_t psa_status;
      |         ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:244:2:
warning: call to undeclared function 'mbedtls_ssl_conf_min_tls_version'; ISO
C99 and later do not support implicit function declarations
[-Wimplicit-function-declaration]
  244 |         mbedtls_ssl_conf_min_tls_version(*tls_config,
MBEDTLS_SSL_VERSION_TLS1_2);
      |         ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:244:48: er=
ror:
use of undeclared identifier 'MBEDTLS_SSL_VERSION_TLS1_2'
  244 |         mbedtls_ssl_conf_min_tls_version(*tls_config,
MBEDTLS_SSL_VERSION_TLS1_2);
      |                                                       ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:245:2:
warning: call to undeclared function 'mbedtls_ssl_conf_max_tls_version'; ISO
C99 and later do not support implicit function declarations
[-Wimplicit-function-declaration]
  245 |         mbedtls_ssl_conf_max_tls_version(*tls_config,
MBEDTLS_SSL_VERSION_TLS1_3);
      |         ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:245:48: er=
ror:
use of undeclared identifier 'MBEDTLS_SSL_VERSION_TLS1_3'
  245 |         mbedtls_ssl_conf_max_tls_version(*tls_config,
MBEDTLS_SSL_VERSION_TLS1_3);
      |                                                       ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:280:2: err=
or:
use of undeclared identifier 'psa_status'
  280 |         psa_status =3D psa_crypto_init();
      |         ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:280:15:
warning: call to undeclared function 'psa_crypto_init'; ISO C99 and later do
not support implicit function declarations [-Wimplicit-function-declaration]
  280 |         psa_status =3D psa_crypto_init();
      |                      ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:281:6: err=
or:
use of undeclared identifier 'psa_status'
  281 |         if (psa_status !=3D PSA_SUCCESS) {
      |             ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:281:20: er=
ror:
use of undeclared identifier 'PSA_SUCCESS'
  281 |         if (psa_status !=3D PSA_SUCCESS) {
      |                           ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:282:88: er=
ror:
use of undeclared identifier 'psa_status'
  282 |                 mbedtls_fprintf(stderr, "Failed to initialize PSA
Crypto implementation: %d\n", (int)psa_status);
      |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
                             ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:347:67: er=
ror:
too many arguments to function call, expected 3, have 5
  347 |         if ((result =3D mbedtls_pk_parse_keyfile(*private_key, file,
NULL, mbedtls_psa_get_random, MBEDTLS_PSA_RANDOM_STATE)) !=3D 0) {
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/mbedtls/pk.h:751:5: note: 'mbedtls_pk_parse_keyfile'
declared here
  751 | int mbedtls_pk_parse_keyfile(mbedtls_pk_context *ctx,
      |     ^                        ~~~~~~~~~~~~~~~~~~~~~~~~
  752 |                              const char *path, const char *password=
);
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:461:20: er=
ror:
use of undeclared identifier 'MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE'
  461 |                 if (handshake =3D=3D MBEDTLS_ERR_SSL_HANDSHAKE_FAIL=
URE) {
      |                                  ^
3 warnings and 13 errors generated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /home/chris/buildports/www/hiawatha
*** Error code 1

Stop.
make: stopped in /home/chris/buildports/www/hiawatha

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-281028-7788-7dlQQmsYId>