[Bug 274494] databases/mariadb106: fix build with LibreSSL

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 15 Oct 2023 13:25:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274494

            Bug ID: 274494
           Summary: databases/mariadb106: fix build with LibreSSL
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: rozhuk.im@gmail.com

Created attachment 245639
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=245639&action=edit
patch

Same for 10.11.5:

FAILED: mysys_ssl/CMakeFiles/mysys_ssl.dir/openssl.c.o 
/usr/local/libexec/ccache/cc -DHAVE_CONFIG_H -DHAVE_OPENSSL
-I/tmp/ports/usr/ports/databases/mariadb1011-client/work/mariadb-10.11.5/include
-I/tmp/ports/usr/ports/databases/mariadb1011-client/work/mariadb-10.11.5/include/providers
-I/tmp/ports/usr/ports/databases/mariadb1011-client/work/mariadb-10.11.5/mysys_ssl
-I/usr/local/include -O2 -pipe -O3 -pipe -funroll-loops -mretpoline
-fno-delete-null-pointer-checks  -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing 
-fdebug-prefix-map=/tmp/ports/usr/ports/databases/mariadb1011-client/work/mariadb-10.11.5=.
-fstack-protector --param=ssp-buffer-size=4 -O2 -pipe -O3 -pipe -funroll-loops
-mretpoline -fno-delete-null-pointer-checks  -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing 
-fdebug-prefix-map=/tmp/ports/usr/ports/databases/mariadb1011-client/work/mariadb-10.11.5=.
-DNDEBUG -D_FORTIFY_SOURCE=2 -DDBUG_OFF -std=gnu99   -I/usr/local/include
-isystem /usr/local/include -fPIC -MD -MT
mysys_ssl/CMakeFiles/mysys_ssl.dir/openssl.c.o -MF
mysys_ssl/CMakeFiles/mysys_ssl.dir/openssl.c.o.d -o
mysys_ssl/CMakeFiles/mysys_ssl.dir/openssl.c.o -c
/tmp/ports/usr/ports/databases/mariadb1011-client/work/mariadb-10.11.5/mysys_ssl/openssl.c
mysys_ssl/openssl.c:55:33: error: incompatible function pointer types passing
'void *(size_t, const char *, int)' (aka 'void *(unsigned long, const char *,
int)') to parameter of type 'void *(*)(size_t)' (aka 'void *(*)(unsigned
long)') [-Wincompatible-function-pointer-types]
  if (!CRYPTO_set_mem_functions(coc_malloc, NULL, NULL))
                                ^~~~~~~~~~
/usr/local/include/openssl/crypto.h:408:38: note: passing argument to parameter
'm' here
int CRYPTO_set_mem_functions(void *(*m)(size_t), void *(*r)(void *, size_t),
void (*f)(void *));
                                     ^
1 error generated.

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