Gentoo Archives: gentoo-user

From: Stefan Schmiedl <s@×××.de>
To: Jack <ostroffjh@×××××××××××××××××.net>, gentoo-user@l.g.o
Subject: Re: [gentoo-user] x11-libs/guile-gtk-2.1-r3 fails to compile
Date: Mon, 06 May 2019 22:09:08
Message-Id: 1905491496.20190507000856@xss.de
In Reply to: Re: [gentoo-user] x11-libs/guile-gtk-2.1-r3 fails to compile by Jack
1 "Jack" <ostroffjh@×××××××××××××××××.net>, 06.05.2019, 20:55:
2
3 > On 2019.05.06 13:26, Stefan Schmiedl wrote:
4 >> In file included from /usr/include/guile/2.2/libguile.h:31,
5 >> from
6 >> /var/tmp/portage/x11-libs/guile-gtk-2.1-r3/work/guile-gtk-2.1/gtk-glue.c:4:
7 >> /var/tmp/portage/x11-libs/guile-gtk-2.1-r3/work/guile-gtk-2.1/gtk-glue.c:
8 >> In function ‘sgtk_gtk_input_add_full’:
9 >> /var/tmp/portage/x11-libs/guile-gtk-2.1-r3/work/guile-gtk-2.1/gtk-glue.c:3579:63:
10 >> error: ‘scm_tc16_fport’ undeclared (first use in this function); did
11 >> you mean ‘scm_t_fport’?
12 >> SCM_ASSERT ((SCM_NIMP (p_source) && SCM_TYP16 (p_source) ==
13 >> scm_tc16_fport && SCM_OPPORTP (p_source)), p_source, SCM_ARG1,
14 >> s_gtk_input_add_full);
15 >>
16 >> ^~~~~~~~~~~~~~
17 >>
18 >> namely: "error", "scm_tc16_fport" and the accompanying wiggles right
19 >> below.
20 >>
21
22 > Dale,
23
24 > I'll offer a wild guess - what version of guile do you have installed?
25 > The latest stable is 2.0.14-r3, but perhaps (noting this version of
26 > guild-gtk is ~) it requires a newer version - perhaps 2.2.3 or 2.2.4?
27 > Actually, I see from the snippet of output that it looks like you do
28 > have guile 2.2. Oddly, I do see scm_tc16_fport defined in
29 > .../libguile/fports.h and libguil.h includes "#include
30 > "libguile/fports.h" although that is in guile 2.0 that I have
31 > installed. I wonder if libguile.h in 2.2 omits that further include?
32
33 The final mail before I call it a day:
34
35 # stefan @ g128 in /usr/include/guile/2.2 [0:00:51]
36 $ ag scm_tc16_fport
37
38 # stefan @ g128 in /usr/include/guile/2.2 [0:01:03] C:1
39 $ ag scm_t_fport
40 libguile/fports.h
41 34:typedef struct scm_t_fport {
42 41:} scm_t_fport;
43 45:#define SCM_FSTREAM(x) ((scm_t_fport *) SCM_STREAM (x))
44
45 libguile/deprecated.h
46 114:#define scm_fport scm_fport__GONE__REPLACE_WITH__scm_t_fport
47
48 I bet on guile-gtk requiring guile-2.0.x, maybe even guile:2 (i.e. 2.0.9).
49
50 s.