Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 574432 Details for
Bug 704521
freehoo fails to build with guile-2.0.1
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fixes compilation against guile 2
freehoo-guile2.patch (text/plain), 6.86 KB, created by
Jan Synacek
on 2012-04-02 09:43:47 UTC
(
hide
)
Description:
Fixes compilation against guile 2
Filename:
MIME Type:
Creator:
Jan Synacek
Created:
2012-04-02 09:43:47 UTC
Size:
6.86 KB
patch
obsolete
>diff -up freehoo-3.5.3.20100314cvs/src/compat.c freehoo-3.5.3.20100314cvs-new/src/compat.c >--- freehoo-3.5.3.20100314cvs/src/compat.c 2008-02-20 17:19:10.000000000 +0100 >+++ freehoo-3.5.3.20100314cvs-new/src/compat.c 2012-04-02 10:56:16.400823743 +0200 >@@ -168,3 +168,115 @@ freehoo_getline (char **buf, size_t *siz > } > } > #endif >+ >+#if SCM_MAJOR_VERSION == 2 >+ >+SCM gh_define (const char *name, SCM val) >+{ >+ scm_c_define (name, val); >+ return SCM_UNSPECIFIED; >+} >+ >+SCM >+gh_append2 (SCM l1, SCM l2) >+{ >+ return scm_append (scm_list_2 (l1, l2)); >+} >+ >+SCM >+gh_standard_handler (void *data SCM_UNUSED, SCM tag, SCM throw_args SCM_UNUSED) >+{ >+ fprintf (stderr, "\nJust got an error; tag is\n "); >+ scm_display (tag, scm_current_output_port ()); >+ scm_newline (scm_current_output_port ()); >+ scm_newline (scm_current_output_port ()); >+ >+ return SCM_BOOL_F; >+} >+ >+SCM >+gh_catch (SCM tag, scm_t_catch_body body, void *body_data, >+ scm_t_catch_handler handler, void *handler_data) >+{ >+ return scm_internal_catch (tag, body, body_data, handler, handler_data); >+} >+ >+SCM >+gh_str02scm (const char *s) >+{ >+ return scm_from_locale_string (s); >+} >+ >+/* evaluate the file by passing it to the lower level scm_primitive_load() */ >+SCM >+gh_eval_file (const char *fname) >+{ >+ return scm_primitive_load (gh_str02scm (fname)); >+} >+ >+static SCM >+eval_file_wrapper (void *data) >+{ >+/* gh_eval_t real_eval_proc = (gh_eval_t) (* ((gh_eval_t *) data)); */ >+ >+ char *scheme_code = (char *) data; >+ return gh_eval_file (scheme_code); >+} >+ >+SCM >+gh_eval_file_with_catch (const char *scheme_code, scm_t_catch_handler handler) >+{ >+ /* FIXME: not there yet */ >+ return gh_catch (SCM_BOOL_T, (scm_t_catch_body) eval_file_wrapper, >+ (void *) scheme_code, (scm_t_catch_handler) handler, >+ (void *) scheme_code); >+} >+ >+SCM >+gh_eval_file_with_standard_handler (const char *scheme_code) >+{ >+ return gh_eval_file_with_catch (scheme_code, gh_standard_handler); >+} >+ >+/* Evaluate the string; toss the value. */ >+SCM >+gh_eval_str (const char *scheme_code) >+{ >+ return scm_c_eval_string (scheme_code); >+} >+ >+static SCM >+eval_str_wrapper (void *data) >+{ >+/* gh_eval_t real_eval_proc = (gh_eval_t) (* ((gh_eval_t *) data)); */ >+ >+ char *scheme_code = (char *) data; >+ return gh_eval_str (scheme_code); >+} >+ >+SCM >+gh_eval_str_with_catch (const char *scheme_code, scm_t_catch_handler handler) >+{ >+ /* FIXME: not there yet */ >+ return gh_catch (SCM_BOOL_T, (scm_t_catch_body) eval_str_wrapper, (void *) scheme_code, >+ (scm_t_catch_handler) handler, (void *) scheme_code); >+} >+ >+SCM >+gh_eval_str_with_standard_handler (const char *scheme_code) >+{ >+ return gh_eval_str_with_catch (scheme_code, gh_standard_handler); >+} >+ >+SCM >+gh_eval_str_with_stack_saving_handler (const char *scheme_code) >+{ >+ return scm_internal_stack_catch (SCM_BOOL_T, >+ (scm_t_catch_body) eval_str_wrapper, >+ (void *) scheme_code, >+ (scm_t_catch_handler) >+ gh_standard_handler, >+ (void *) scheme_code); >+} >+ >+#endif /* SCM_MAJOR_VERSION == 2 */ >diff -up freehoo-3.5.3.20100314cvs/src/compat.h freehoo-3.5.3.20100314cvs-new/src/compat.h >--- freehoo-3.5.3.20100314cvs/src/compat.h 2008-02-20 17:19:11.000000000 +0100 >+++ freehoo-3.5.3.20100314cvs-new/src/compat.h 2012-04-02 10:47:57.000000000 +0200 >@@ -144,4 +144,21 @@ ssize_t freehoo_getline(char **buf, size > > #endif > >+#if SCM_MAJOR_VERSION == 2 >+ >+SCM gh_define (const char *name, SCM val); >+SCM gh_append2 (SCM l1, SCM l2); >+SCM gh_standard_handler (void *data SCM_UNUSED, SCM tag, SCM throw_args SCM_UNUSED); >+SCM gh_catch (SCM tag, scm_t_catch_body body, void *body_data, scm_t_catch_handler handler, void *handler_data); >+SCM gh_str02scm (const char *s); >+SCM gh_eval_file (const char *fname); >+SCM gh_eval_file_with_catch (const char *scheme_code, scm_t_catch_handler handler); >+SCM gh_eval_file_with_standard_handler (const char *scheme_code); >+SCM gh_eval_str (const char *scheme_code); >+SCM gh_eval_str_with_catch (const char *scheme_code, scm_t_catch_handler handler); >+SCM gh_eval_str_with_standard_handler (const char *scheme_code); >+SCM gh_eval_str_with_stack_saving_handler (const char *scheme_code); >+ >+#endif /* SCM_MAJOR_VERSION == 2 */ >+ > #endif /* __COMPAT_H__ */ >diff -up freehoo-3.5.3.20100314cvs/src/extension.c freehoo-3.5.3.20100314cvs-new/src/extension.c >--- freehoo-3.5.3.20100314cvs/src/extension.c 2008-05-04 11:40:01.000000000 +0200 >+++ freehoo-3.5.3.20100314cvs-new/src/extension.c 2012-04-02 10:13:58.000000000 +0200 >@@ -16,7 +16,7 @@ > Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ > > >-#include <guile/gh.h> >+#include <libguile.h> > #include "extension.h" > #include "freehoo.h" > #include "scm-procedures.h" >diff -up freehoo-3.5.3.20100314cvs/src/fh-utils.c freehoo-3.5.3.20100314cvs-new/src/fh-utils.c >--- freehoo-3.5.3.20100314cvs/src/fh-utils.c 2008-04-30 22:16:26.000000000 +0200 >+++ freehoo-3.5.3.20100314cvs-new/src/fh-utils.c 2012-04-02 10:15:17.000000000 +0200 >@@ -25,7 +25,7 @@ > #include <unistd.h> > #include <assert.h> > #include <readline/readline.h> >-#include <guile/gh.h> >+#include <libguile.h> > #include <sys/stat.h> > #include <time.h> > >diff -up freehoo-3.5.3.20100314cvs/src/freehoo.c freehoo-3.5.3.20100314cvs-new/src/freehoo.c >--- freehoo-3.5.3.20100314cvs/src/freehoo.c 2008-05-02 21:46:06.000000000 +0200 >+++ freehoo-3.5.3.20100314cvs-new/src/freehoo.c 2012-04-02 10:14:16.000000000 +0200 >@@ -23,7 +23,7 @@ > #include <sys/stat.h> > #include <sys/time.h> > #include <sys/resource.h> >-#include <guile/gh.h> >+#include <libguile.h> > #include <ctype.h> > #include <errno.h> > #include <config.h> >diff -up freehoo-3.5.3.20100314cvs/src/interpreter.c freehoo-3.5.3.20100314cvs-new/src/interpreter.c >--- freehoo-3.5.3.20100314cvs/src/interpreter.c 2010-03-15 03:37:56.000000000 +0100 >+++ freehoo-3.5.3.20100314cvs-new/src/interpreter.c 2012-04-02 10:55:26.225831957 +0200 >@@ -21,7 +21,7 @@ > #include <string.h> > #include <stdlib.h> > #include <assert.h> >-#include <guile/gh.h> >+#include <libguile.h> > #include <readline/readline.h> > #include <readline/history.h> > #include <libgen.h> >diff -up freehoo-3.5.3.20100314cvs/src/yahoo-adapter.c freehoo-3.5.3.20100314cvs-new/src/yahoo-adapter.c >--- freehoo-3.5.3.20100314cvs/src/yahoo-adapter.c 2008-04-30 22:16:27.000000000 +0200 >+++ freehoo-3.5.3.20100314cvs-new/src/yahoo-adapter.c 2012-04-02 10:15:30.000000000 +0200 >@@ -29,7 +29,7 @@ > #include <stdio.h> > #include <string.h> > #include <stdlib.h> >-#include <guile/gh.h> >+#include <libguile.h> > #include <readline/readline.h> > > #include "freehoo.h" >diff -up freehoo-3.5.3.20100314cvs/src/yahoo-backend.c freehoo-3.5.3.20100314cvs-new/src/yahoo-backend.c >--- freehoo-3.5.3.20100314cvs/src/yahoo-backend.c 2012-04-02 10:56:51.577817986 +0200 >+++ freehoo-3.5.3.20100314cvs-new/src/yahoo-backend.c 2012-04-02 10:14:59.000000000 +0200 >@@ -56,7 +56,7 @@ > > #include <readline/readline.h> > #include <readline/history.h> >-#include <guile/gh.h> >+#include <libguile.h> > > #include <config.h> > #include "yahoo-backend.h"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 704521
: 574432 |
574433