unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: "Aleix Conchillo Flaqué" <aconchillo@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: [ANN] guile-curl 0.7
Date: Mon, 04 Jan 2021 10:02:57 +0100	[thread overview]
Message-ID: <87zh1phy66.fsf@elephly.net> (raw)
In-Reply-To: <CA+XASoW2oV=mRykoe5MnZNonfwGTYVXNVQ0-nQGRjboNKFYONA@mail.gmail.com>


Aleix Conchillo Flaqué <aconchillo@gmail.com> writes:

> I'm trying to add guile-curl to homebrew-guile but ran into
> compilation issues in type.c using the tarball from your email.

I can confirm this.  (I just tried to upgrade the guile-curl package in
Guix.)

I’m getting this error output when building with Guile 2.2:

--8<---------------cut here---------------start------------->8---
In file included from /gnu/store/l6id6m9fjx5bphgyf1kp6srbmdwspqkn-guile-2.2.7/include/guile/2.2/libguile/__scm.h:398:0,
                 from /gnu/store/l6id6m9fjx5bphgyf1kp6srbmdwspqkn-guile-2.2.7/include/guile/2.2/libguile.h:31,
                 from type.c:21:
type.c: In function '_scm_is_handle':
type.c:41:27: error: 'handle_tag' undeclared (first use in this function); did you mean 'handle_post_t'?
   if (SCM_SMOB_PREDICATE (handle_tag, x))
                           ^
/gnu/store/l6id6m9fjx5bphgyf1kp6srbmdwspqkn-guile-2.2.7/include/guile/2.2/libguile/tags.h:390:33: note: in definition of macro 'SCM_HAS_HEAP_TYPE'
   (SCM_NIMP (x) && type (x) == (tag))
                                 ^~~
/gnu/store/l6id6m9fjx5bphgyf1kp6srbmdwspqkn-guile-2.2.7/include/guile/2.2/libguile/smob.h:53:38: note: in expansion of macro 'SCM_HAS_TYP16'
 #define SCM_SMOB_PREDICATE(tag, obj) SCM_HAS_TYP16 (obj, tag)
                                      ^~~~~~~~~~~~~
type.c:41:7: note: in expansion of macro 'SCM_SMOB_PREDICATE'
   if (SCM_SMOB_PREDICATE (handle_tag, x))
       ^~~~~~~~~~~~~~~~~~
type.c:41:27: note: each undeclared identifier is reported only once for each function it appears in
   if (SCM_SMOB_PREDICATE (handle_tag, x))
                           ^
/gnu/store/l6id6m9fjx5bphgyf1kp6srbmdwspqkn-guile-2.2.7/include/guile/2.2/libguile/tags.h:390:33: note: in definition of macro 'SCM_HAS_HEAP_TYPE'
   (SCM_NIMP (x) && type (x) == (tag))
                                 ^~~
/gnu/store/l6id6m9fjx5bphgyf1kp6srbmdwspqkn-guile-2.2.7/include/guile/2.2/libguile/smob.h:53:38: note: in expansion of macro 'SCM_HAS_TYP16'
 #define SCM_SMOB_PREDICATE(tag, obj) SCM_HAS_TYP16 (obj, tag)
                                      ^~~~~~~~~~~~~
type.c:41:7: note: in expansion of macro 'SCM_SMOB_PREDICATE'
   if (SCM_SMOB_PREDICATE (handle_tag, x))
       ^~~~~~~~~~~~~~~~~~
In file included from /gnu/store/l6id6m9fjx5bphgyf1kp6srbmdwspqkn-guile-2.2.7/include/guile/2.2/libguile.h:94:0,
                 from type.c:21:
type.c: In function '_scm_from_handle':
type.c:65:26: error: 'handle_tag' undeclared (first use in this function); did you mean 'handle_post_t'?
   SCM_NEWSMOB (s_handle, handle_tag, x);
                          ^
/gnu/store/l6id6m9fjx5bphgyf1kp6srbmdwspqkn-guile-2.2.7/include/guile/2.2/libguile/smob.h:101:22: note: in definition of macro 'SCM_NEWSMOB'
   z = scm_new_smob ((tc), (scm_t_bits)(data))
                      ^~
type.c: In function 'cl_init_type':
type.c:486:37: warning: passing argument 3 of 'scm_make_foreign_object_type' from incompatible pointer type [-Wincompatible-pointer-types]
                                     gc_free_handle);
                                     ^~~~~~~~~~~~~~
In file included from /gnu/store/l6id6m9fjx5bphgyf1kp6srbmdwspqkn-guile-2.2.7/include/guile/2.2/libguile.h:56:0,
                 from type.c:21:
/gnu/store/l6id6m9fjx5bphgyf1kp6srbmdwspqkn-guile-2.2.7/include/guile/2.2/libguile/foreign-object.h:30:13: note: expected 'scm_t_struct_finalize {aka void (*)(struct scm_unused_struct *)}' but argument is of type 'size_t (*)(struct scm_unused_struct *) {aka long unsigned int (*)(struct scm_unused_struct *)}'
 SCM_API SCM scm_make_foreign_object_type (SCM name, SCM slot_names,
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
type.c:489:3: error: 'handle_tag' undeclared (first use in this function); did you mean 'handle_post_t'?
   handle_tag = scm_make_smob_type ("handle", sizeof (handle_post_t));
   ^~~~~~~~~~
   handle_post_t
make[2]: *** [Makefile:539: libguile_curl_la-type.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
--8<---------------cut here---------------end--------------->8---

I get very similar output with Guile 3.0.

-- 
Ricardo



  reply	other threads:[~2021-01-04  9:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210104043628.GA1092151.ref@spikycactus.com>
2021-01-04  4:36 ` [ANN] guile-curl 0.7 Mike Gran
2021-01-04  7:16   ` Aleix Conchillo Flaqué
2021-01-04  9:02     ` Ricardo Wurmus [this message]
2021-01-04 11:36       ` Mike Gran via General Guile related discussions
2021-01-04 11:42         ` Ricardo Wurmus
2021-01-04 12:07           ` Mike Gran via General Guile related discussions
2021-01-04 19:46             ` Aleix Conchillo Flaqué
2021-01-04 18:43         ` Aleix Conchillo Flaqué
2021-01-04 23:23           ` Aleix Conchillo Flaqué

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zh1phy66.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=aconchillo@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).