Dale Smith | 11 Jul 2012 00:48
Picon

Guile 2.0.6

Howdy g-wrappers,

G-wrap doesn't like the new Guile 2.0.6 as scm_sym2var and
scm_module_lookup_closure are now deprecated.  And since the default
is to compile with -Werror, that ends in a failed build.  Configuring
with --disable-Werror seems to work fine.

Here is an attempt to use a the newer non-deprecated replacements.

diff --git a/guile/g-wrap/guile-compatibility.c
b/guile/g-wrap/guile-compatibility.c
index 8be423e..cc1fc2f 100644
--- a/guile/g-wrap/guile-compatibility.c
+++ b/guile/g-wrap/guile-compatibility.c
 <at>  <at>  -92,4 +92,10  <at>  <at>  scm_without_guile (void*(*func)(void*), void *data)
     return func(data);
 }

+SCM scm_module_variable (SCM module, SCM sym)
+{
+  return scm_sym2var (sym, scm_module_lookup_closure (module), SCM_BOOL_F);
+}
+
+
 #endif
diff --git a/guile/g-wrap/guile-compatibility.h
b/guile/g-wrap/guile-compatibility.h
index c875e98..5ccacdf 100644
--- a/guile/g-wrap/guile-compatibility.h
+++ b/guile/g-wrap/guile-compatibility.h
(Continue reading)

Andy Wingo | 11 Jul 2012 13:32
Picon
Favicon

Re: Guile 2.0.6

On Wed 11 Jul 2012 00:48, Dale Smith <dalepsmith <at> gmail.com> writes:

> G-wrap doesn't like the new Guile 2.0.6 as scm_sym2var and
> scm_module_lookup_closure are now deprecated.  And since the default
> is to compile with -Werror, that ends in a failed build.  Configuring
> with --disable-Werror seems to work fine.

Pushed something very similar.  The scm_module_variable stub needed to
be in a guile < 2.0 block, not a guile < 1.8 block.

Thanks!

Andy
--

-- 
http://wingolog.org/
Dale Smith | 11 Jul 2012 15:52
Picon

Re: Guile 2.0.6

On Wed, Jul 11, 2012 at 7:32 AM, Andy Wingo <wingo <at> pobox.com> wrote:
> On Wed 11 Jul 2012 00:48, Dale Smith <dalepsmith <at> gmail.com> writes:
>
>> G-wrap doesn't like the new Guile 2.0.6 as scm_sym2var and
>> scm_module_lookup_closure are now deprecated.  And since the default
>> is to compile with -Werror, that ends in a failed build.  Configuring
>> with --disable-Werror seems to work fine.
>
> Pushed something very similar.  The scm_module_variable stub needed to
> be in a guile < 2.0 block, not a guile < 1.8 block.

Most excellent.  Thanks!

  -Dale

Gmane