Package Details: ruby-tk 0.5.1-1

Git Clone URL: https://aur.archlinux.org/ruby-tk.git (read-only, click to copy)
Package Base: ruby-tk
Description: Tk interface module using tcltklib.
Upstream URL: https://github.com/ruby/tk
Licenses: BSD-2-Clause
Submitter: Levitating
Maintainer: Levitating
Last Packager: Levitating
Votes: 0
Popularity: 0.000000
First Submitted: 2022-11-03 02:30 (UTC)
Last Updated: 2025-02-23 13:48 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

micwoj92 commented on 2025-06-24 23:30 (UTC) (edited on 2025-06-24 23:30 (UTC) by micwoj92)

Build fails:

tcltklib.c: In function ‘call_DoOneEvent’:
tcltklib.c:2045:21: error: passing argument 1 of ‘tk_funcall’ from incompatible pointer type [-Wincompatible-pointer-types]
 2045 |   return tk_funcall(call_DoOneEvent_core, 0, (VALUE*)NULL, flag_val);
      |                     ^~~~~~~~~~~~~~~~~~~~
      |                     |
      |                     VALUE (*)(VALUE) {aka long unsigned int (*)(long unsigned int)}
In file included from /usr/include/ruby-3.4.0/ruby/defines.h:77,
                 from /usr/include/ruby-3.4.0/ruby/ruby.h:25,
                 from /usr/include/ruby-3.4.0/ruby.h:38,
                 from tcltklib.c:10:
tcltklib.c:258:28: note: expected ‘VALUE (*)(void)’ {aka ‘long unsigned int (*)(void)’} but argument is of type ‘VALUE (*)(VALUE)’ {aka ‘long unsigned int (*)(long unsigned int)’}
  258 | static VALUE tk_funcall _((VALUE(), int, VALUE*, VALUE));
      |                            ^~~~~~~
/usr/include/ruby-3.4.0/ruby/backward/2/stdarg.h:33:18: note: in definition of macro ‘_’
   33 | # define _(args) args
      |                  ^~~~
tcltklib.c:2021:1: note: ‘call_DoOneEvent_core’ declared here
 2021 | call_DoOneEvent_core(VALUE flag_val)
      | ^~~~~~~~~~~~~~~~~~~~

micwoj92 commented on 2024-08-23 05:50 (UTC)

Please also add tcl+tk to dependencies. Without it on system the build fails.