Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 May 2024 00:25:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 278706] multimedia/vlc: fix build with FREERDP option ON: incompatible function pointer types
Message-ID:  <bug-278706-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 278706
           Summary: multimedia/vlc: fix build with FREERDP option ON:
                    incompatible function pointer types
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: multimedia@FreeBSD.org
          Reporter: vvd@FreeBSD.org
          Assignee: multimedia@FreeBSD.org
             Flags: maintainer-feedback?(multimedia@FreeBSD.org)
 Attachment #250338 maintainer-approval?
             Flags:
             Flags: maintainer-feedback?

Created attachment 250338
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D250338&action=
=3Dedit
fix build with FREERDP option ON

Build log:

access/rdp.c:238:39: error: incompatible function pointer types assigning to
'pDesktopResize' (aka 'int (*)(struct rdp_context *)') from 'void (rdpConte=
xt
*)' (aka 'void (struct rdp_context *)') [-Wincompatible-function-pointer-ty=
pes]
  238 |     p_instance->update->DesktopResize =3D desktopResizeHandler;
      |                                       ^ ~~~~~~~~~~~~~~~~~~~~
access/rdp.c:239:36: error: incompatible function pointer types assigning to
'pBeginPaint' (aka 'int (*)(struct rdp_context *)') from 'void (rdpContext =
*)'
(aka 'void (struct rdp_context *)') [-Wincompatible-function-pointer-types]
  239 |     p_instance->update->BeginPaint =3D beginPaintHandler;
      |                                    ^ ~~~~~~~~~~~~~~~~~
access/rdp.c:240:34: error: incompatible function pointer types assigning to
'pEndPaint' (aka 'int (*)(struct rdp_context *)') from 'void (rdpContext *)'
(aka 'void (struct rdp_context *)') [-Wincompatible-function-pointer-types]
  240 |     p_instance->update->EndPaint =3D endPaintHandler;
      |                                  ^ ~~~~~~~~~~~~~~~

access/rdp.c:427:35: error: incompatible function pointer types assigning to
'pPreConnect' (aka 'int (*)(struct rdp_freerdp *)') from 'bool (freerdp *)'
(aka 'bool (struct rdp_freerdp *)') [-Wincompatible-function-pointer-types]
  427 |     p_sys->p_instance->PreConnect =3D preConnectHandler;
      |                                   ^ ~~~~~~~~~~~~~~~~~
access/rdp.c:428:36: error: incompatible function pointer types assigning to
'pPostConnect' (aka 'int (*)(struct rdp_freerdp *)') from 'bool (freerdp *)'
(aka 'bool (struct rdp_freerdp *)') [-Wincompatible-function-pointer-types]
  428 |     p_sys->p_instance->PostConnect =3D postConnectHandler;
      |                                    ^ ~~~~~~~~~~~~~~~~~~
access/rdp.c:429:37: error: incompatible function pointer types assigning to
'pAuthenticate' (aka 'int (*)(struct rdp_freerdp *, char **, char **, char
**)') from 'bool (freerdp *, char **, char **, char **)' (aka 'bool (struct
rdp_freerdp *, char **, char **, char **)')
[-Wincompatible-function-pointer-types]
  429 |     p_sys->p_instance->Authenticate =3D authenticateHandler;
      |                                     ^ ~~~~~~~~~~~~~~~~~~~

Can be "fixed" with "CFLAGS=3D-Wno-error=3Dincompatible-function-pointer-ty=
pes".

--=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-278706-7788>