macro gh_init from /usr/include/guile/gh.h has a syntax error
Bug #49627 reported by
Mark Jenkins
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
guile-1.6 (Ubuntu) |
Confirmed
|
Low
|
Unassigned | ||
Bug Description
Binary package hint: guile-1.6-dev
The macro gh_init from /usr/include/
C code
#include <guile/gh.h>
void main()
{
gh_init();
}
results in
error: syntax error before ‘)’ token
error: command 'gcc' failed with exit status 1
$ gcc --version
gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
The macro definition is:
#define gh_init () scm_init_guile ()
The space after gh_init is the problem, it should really be
#define gh_init() scm_init_guile ()
To post a comment you must log in.
A patch to libguile/gh.h in the source tree that fixes the problem. Reasoning explained in the bug report. h_gh_init_ macro_syntax_ error.diff
From inside the source tree patch with
$ patch -p1 < gh_dot_