[Bug 281776] devel/readline: 8.2.13_1 update breaks build of net/samba419

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 30 Sep 2024 15:20:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281776

            Bug ID: 281776
           Summary: devel/readline: 8.2.13_1 update breaks build of
                    net/samba419
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: chris@chrullrich.net
                CC: samba@FreeBSD.org, sunpoet@FreeBSD.org
                CC: samba@FreeBSD.org, sunpoet@FreeBSD.org

The recent patch to devel/readline breaks the build of net/samba419. readline
is an unavoidable dependency there. (Python needs it, and Samba needs Python.)


[00:01:18] [1683/2606] Compiling libcli/smbreadline/smbreadline.c
[00:01:18] runner ['cc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-O2',
'-pipe', '-march=haswell', '-DLIBICONV_PLUG', '-DLDAP_DEPRECATED',
'-fno-color-diagnostics', '-fstack-protector-strong', '-isystem',
'/usr/local/include', '-fno-strict-aliasing', '-fno-omit-frame-pointer',
'-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1',
'-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT',
'-fstack-protector-strong', '-fstack-clash-protection',
'-DSTATIC_SMBREADLINE_MODULES=NULL', '-DSTATIC_SMBREADLINE_MODULES_PROTO=extern
void __SMBREADLINE_dummy_module_proto(void)', '-Ilibcli/smbreadline',
'-I../../libcli/smbreadline', '-Iinclude/public', '-I../../include/public',
'-Isource4', '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib',
'-I../../source4/lib', '-Isource4/include', '-I../../source4/include',
'-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace', '-I.',
'-I../..', '-I/usr/local/include', '../../libcli/smbreadline/smbreadline.c',
'-c',
'-o/wrkdirs/usr/ports/net/samba419/work/samba-4.19.8/bin/default/libcli/smbreadline/smbreadline.c.1.o',
'-DLIBICONV_PLUG', '-isystem', '/usr/local/include']
[00:01:18] ../../libcli/smbreadline/smbreadline.c:139:38: warning:
'CPPFunction' is deprecated [-Wdeprecated-declarations]
[00:01:18]   139 |                 rl_attempted_completion_function =
RL_COMPLETION_CAST completion_fn;
[00:01:18]       |                                                    ^
[00:01:18] ../../lib/replace/system/readline.h:50:31: note: expanded from macro
'RL_COMPLETION_CAST'
[00:01:18]    50 | #  define RL_COMPLETION_CAST (CPPFunction *)
[00:01:18]       |                               ^
[00:01:18] /usr/local/include/readline/rltypedefs.h:38:50: note: 'CPPFunction'
has been explicitly marked deprecated here
[00:01:18]    38 | typedef char **CPPFunction (void)
__attribute__((deprecated));
[00:01:18]       |                                                  ^
[00:01:18] ../../libcli/smbreadline/smbreadline.c:139:36: error: incompatible
function pointer types assigning to 'rl_completion_func_t *' (aka 'char
**(*)(const char *, int, int)') from 'CPPFunction *' (aka 'char **(*)(void)')
[-Wincompatible-function-pointer-types]
[00:01:18]   139 |                 rl_attempted_completion_function =
RL_COMPLETION_CAST completion_fn;
[00:01:18]       |                                                  ^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[00:01:18] 1 warning and 1 error generated.
[00:01:18] 
[00:01:18] Waf: Leaving directory
`/wrkdirs/usr/ports/net/samba419/work/samba-4.19.8/bin/default'
[00:01:18] Build failed

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