Hello,
I'm attempting to compile g-wrap for guile 2.2.4 The reason: I'm making an attempt to get guile-gnome to work under cygwin.
Alas, I'm getting a series of error messages, listed in the file "Errmsg.txt", provided with this mail. (I went to the subdirectory guile/g-wrap and made an attempt to make guile-runtime.lo in order to keep the error message short and focus on the important parts.)
After some browsing of the Internet, I found this page: https://stackoverflow.com/questions/50471783/compiling-g-wrap
According to this information, g-wrap 1.9.15 is not compatible with guile 2.2.4, and need guile 2-0 for compilation. As you can see in the error messages, the complaint is that g-wrap make calls to deprecated function.
What would be the preferred way to resolve this? Are the functions deprecated because there are better alternatives, or should I look at re-implementing them as part of g-wrap? Is there any solution I have not thought about?
I can see many ways to resolve this, but I'm spoiled for chooses and would like some input on what the best long term solution would be.
Best regards, -- Sören Jonsson Kärnvägen 237 906 27 UMEÅ SWEDEN Tel: 090-180 339, 070-603 3896
Sören Jonsson@Phobos /tmp/g-wrap-1.9.15/guile/g-wrap $ make guile-runtime.lo CC guile-runtime.lo guile-runtime.c: In function 'gw_guile_add_subr_method': guile-runtime.c:182:9: error: 'scm_class_top' is deprecated [-Werror=deprecated-declarations] specializers = scm_cons (scm_class_top, specializers); ^~~~~~~~~~~~ In file included from /usr/include/guile/2.2/libguile.h:128:0, from ../../guile/g-wrap/guile-compatibility.h:25, from guile-runtime.c:32: /usr/include/guile/2.2/libguile/deprecated.h:168:20: note: declared here SCM_DEPRECATED SCM scm_class_top; ^~~~~~~~~~~~~ guile-runtime.c:189:5: error: 'scm_class_top' is deprecated [-Werror=deprecated-declarations] specializers = scm_append_x (scm_list_2 (specializers, scm_class_top)); ^~~~~~~~~~~~ In file included from /usr/include/guile/2.2/libguile.h:128:0, from ../../guile/g-wrap/guile-compatibility.h:25, from guile-runtime.c:32: /usr/include/guile/2.2/libguile/deprecated.h:168:20: note: declared here SCM_DEPRECATED SCM scm_class_top; ^~~~~~~~~~~~~ guile-runtime.c:225:23: error: 'scm_class_method' is deprecated [-Werror=deprecated-declarations] scm_list_5 (scm_class_method, ^~~~~~~~~~ In file included from /usr/include/guile/2.2/libguile.h:128:0, from ../../guile/g-wrap/guile-compatibility.h:25, from guile-runtime.c:32: /usr/include/guile/2.2/libguile/deprecated.h:180:20: note: declared here SCM_DEPRECATED SCM scm_class_method; ^~~~~~~~~~~~~~~~ guile-runtime.c: In function 'allocate_generic_variable': guile-runtime.c:355:28: error: 'scm_class_generic' is deprecated [-Werror=deprecated-declarations] scm_list_3 (scm_class_generic, k_name, sym)); ^~~~~~~~~~ In file included from /usr/include/guile/2.2/libguile.h:128:0, from ../../guile/g-wrap/guile-compatibility.h:25, from guile-runtime.c:32: /usr/include/guile/2.2/libguile/deprecated.h:174:20: note: declared here SCM_DEPRECATED SCM scm_class_generic; ^~~~~~~~~~~~~~~~~ guile-runtime.c:357:3: error: 'scm_class_generic' is deprecated [-Werror=deprecated-declarations] } else if (scm_is_true (scm_call_2 (is_a_p_proc, scm_variable_ref (var), ^ In file included from /usr/include/guile/2.2/libguile.h:128:0, from ../../guile/g-wrap/guile-compatibility.h:25, from guile-runtime.c:32: /usr/include/guile/2.2/libguile/deprecated.h:174:20: note: declared here SCM_DEPRECATED SCM scm_class_generic; ^~~~~~~~~~~~~~~~~ guile-runtime.c:357:3: error: 'scm_class_generic' is deprecated [-Werror=deprecated-declarations] } else if (scm_is_true (scm_call_2 (is_a_p_proc, scm_variable_ref (var), ^ In file included from /usr/include/guile/2.2/libguile.h:128:0, from ../../guile/g-wrap/guile-compatibility.h:25, from guile-runtime.c:32: /usr/include/guile/2.2/libguile/deprecated.h:174:20: note: declared here SCM_DEPRECATED SCM scm_class_generic; ^~~~~~~~~~~~~~~~~ guile-runtime.c:367:28: error: 'scm_class_generic' is deprecated [-Werror=deprecated-declarations] scm_list_5 (scm_class_generic, ^~~~~~~~~~ In file included from /usr/include/guile/2.2/libguile.h:128:0, from ../../guile/g-wrap/guile-compatibility.h:25, from guile-runtime.c:32: /usr/include/guile/2.2/libguile/deprecated.h:174:20: note: declared here SCM_DEPRECATED SCM scm_class_generic; ^~~~~~~~~~~~~~~~~ guile-runtime.c: In function 'gw_guile_handle_wrapper_error': guile-runtime.c:759:7: error: 'scm_memory_error' is deprecated [-Werror=deprecated-declarations] scm_memory_error(func_name); ^~~~~~~~~~~~~~~~ In file included from /usr/include/guile/2.2/libguile.h:128:0, from ../../guile/g-wrap/guile-compatibility.h:25, from guile-runtime.c:32: /usr/include/guile/2.2/libguile/deprecated.h:148:21: note: declared here SCM_DEPRECATED void scm_memory_error (const char *subr) SCM_NORETURN; ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [Makefile:592: guile-runtime.lo] Fel 1 Sören Jonsson@Phobos /tmp/g-wrap-1.9.15/guile/g-wrap $ gnome --version -bash: gnome: kommandot finns inte Sören Jonsson@Phobos /tmp/g-wrap-1.9.15/guile/g-wrap $ guile --version guile (GNU Guile) 2.2.4 Copyright (C) 2018 Free Software Foundation, Inc. License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Sören Jonsson@Phobos /tmp/g-wrap-1.9.15/guile/g-wrap