[Bug 281028] www/hiawatha: update 11.2 → 11.6

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 30 Dec 2024 01:22:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281028

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 lack of
interest in updating mbedtls and most people aren't going to waste there time
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 that
making it easier in the long run to run as well as a starting point for people
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 
-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: error:
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: error:
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: error:
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: error:
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: error:
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: error:
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: error:
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: error:
use of undeclared identifier 'psa_status'
  280 |         psa_status = 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 = psa_crypto_init();
      |                      ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:281:6: error:
use of undeclared identifier 'psa_status'
  281 |         if (psa_status != PSA_SUCCESS) {
      |             ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:281:20: error:
use of undeclared identifier 'PSA_SUCCESS'
  281 |         if (psa_status != PSA_SUCCESS) {
      |                           ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:282:88: error:
use of undeclared identifier 'psa_status'
  282 |                 mbedtls_fprintf(stderr, "Failed to initialize PSA
Crypto implementation: %d\n", (int)psa_status);
      |                                                                        
                             ^
/home/chris/buildports/www/hiawatha/work/hiawatha-11.6/src/tls.c:347:67: error:
too many arguments to function call, expected 3, have 5
  347 |         if ((result = mbedtls_pk_parse_keyfile(*private_key, file,
NULL, mbedtls_psa_get_random, MBEDTLS_PSA_RANDOM_STATE)) != 0) {
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~                         
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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: error:
use of undeclared identifier 'MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE'
  461 |                 if (handshake == MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE) {
      |                                  ^
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

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