Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2024 19:52:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 277999] audio/csound: fix build with clang 18
Message-ID:  <bug-277999-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 277999
           Summary: audio/csound: fix build with clang 18
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: dim@FreeBSD.org
          Assignee: yuri@freebsd.org
             Flags: maintainer-feedback?(yuri@freebsd.org)

With clang 18, audio/csound fails to build:

/wrkdirs/usr/ports/audio/csound/work/csound-6.15.0/Opcodes/OSC.c:784:47: er=
ror:
incompatible function pointer types passing 'int32_t (const char *, const c=
har
*, lo_arg **, int32_t, void *, void *)' (aka 'int (const char *, const char=
 *,
lo_arg **, int, void *, void *)') to parameter of type 'lo_method_handler' =
(aka
'int (*)(const char *, const char *, lo_arg **, int, struct lo_message_ *, =
void
*)') [-Wincompatible-function-pointer-types]
  784 |                                               OSC_handler, p->port);
      |                                               ^~~~~~~~~~~
/usr/local/include/lo/lo_serverthread.h:151:72: note: passing argument to
parameter 'h' here
  151 |                                const char *typespec, lo_method_hand=
ler
h,
      |=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
^

This is because the callback functions OSC_handler() and OSC_ahandler()
have the wrong signature: liblo's headers use 'int' for the 'argc'
argument, and 'lo_message' for the 'data' argument. Fix the parameter
types of the functions to match the liblo declarations.

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