[MacPorts] #71309: Togl-2.0 @2.0: error: incompatible function pointer types assigning to 'void (*)(Tk_Window, Tk_ClassProcs *, ClientData)' (aka 'void (*)(struct Tk_Window_ *, struct Tk_ClassProcs *, void *)') from 'void (*const)(Tk_Window, const Tk_ClassProcs *, ClientData)' (aka 'void (*const)(struct Tk_Window_ *, const struct Tk_ClassProcs *, void *)') [-Wincompatible-function-pointer-types] (was: cannot install Togl-2.0)
MacPorts
noreply at macports.org
Thu Nov 14 15:34:14 UTC 2024
#71309: Togl-2.0 @2.0: error: incompatible function pointer types assigning to
'void (*)(Tk_Window, Tk_ClassProcs *, ClientData)' (aka 'void (*)(struct
Tk_Window_ *, struct Tk_ClassProcs *, void *)') from 'void
(*const)(Tk_Window, const Tk_ClassProcs *, ClientData)' (aka 'void
(*const)(struct Tk_Window_ *, const struct Tk_ClassProcs *, void *)')
[-Wincompatible-function-pointer-types]
------------------------+---------------------
Reporter: yudedkov | Owner: (none)
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.10.4
Resolution: duplicate | Keywords: sequoia
Port: Togl-2.0 |
------------------------+---------------------
Changes (by ryandesign):
* status: new => closed
* version: => 2.10.4
* keywords: => sequoia
* resolution: => duplicate
Old description:
> (base) yudedkov at Yuriy-Dedkov-MacBook-Pro-M2 ~ % sudo port install
> Togl-2.0
>
> ---> Computing dependencies for Togl-2.0
> ---> Fetching archive for Togl-2.0
> ---> Attempting to fetch Togl-2.0-2.0_0.darwin_24.arm64.tbz2 from
> https://packages.macports.org/Togl-2.0
> ---> Attempting to fetch Togl-2.0-2.0_0.darwin_24.arm64.tbz2 from
> https://vie.at.packages.macports.org/Togl-2.0
> ---> Attempting to fetch Togl-2.0-2.0_0.darwin_24.arm64.tbz2 from
> https://fra.de.packages.macports.org/Togl-2.0
> ---> Building Togl-2.0
> Error: Failed to build Togl-2.0: command execution failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_Togl-2.0/Togl-2.0/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets if you believe
> there is a bug.
> Error: Processing of port Togl-2.0 failed
New description:
{{{
(base) yudedkov at Yuriy-Dedkov-MacBook-Pro-M2 ~ % sudo port install Togl-2.0
---> Computing dependencies for Togl-2.0
---> Fetching archive for Togl-2.0
---> Attempting to fetch Togl-2.0-2.0_0.darwin_24.arm64.tbz2 from
https://packages.macports.org/Togl-2.0
---> Attempting to fetch Togl-2.0-2.0_0.darwin_24.arm64.tbz2 from
https://vie.at.packages.macports.org/Togl-2.0
---> Attempting to fetch Togl-2.0-2.0_0.darwin_24.arm64.tbz2 from
https://fra.de.packages.macports.org/Togl-2.0
---> Building Togl-2.0
Error: Failed to build Togl-2.0: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_Togl-2.0/Togl-2.0/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port Togl-2.0 failed
}}}
--
Comment:
From the log, the problem is:
{{{
:info:build togl.c:928:26: error: incompatible function pointer types
assigning to 'void (*)(Tk_Window, Tk_ClassProcs *, ClientData)' (aka 'void
(*)(struct Tk_Window_ *, struct Tk_ClassProcs *, void *)') from 'void
(*const)(Tk_Window, const Tk_ClassProcs *, ClientData)' (aka 'void
(*const)(struct Tk_Window_ *, const struct Tk_ClassProcs *, void *)')
[-Wincompatible-function-pointer-types]
:info:build 928 | SetClassProcsPtr =
tkStubsPtr->tk_SetClassProcs;
:info:build | ^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build 1 error generated.
}}}
Duplicate of #70956.
--
Ticket URL: <https://trac.macports.org/ticket/71309#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list