libgeda fails during compile: g_smob.c:53: error: syntax error before "g_free_attrib_smob" g_smob.c: In function `g_free_attrib_smob': g_smob.c:57: error: `scm_sizet' undeclared (first use in this function) g_smob.c:57: error: (Each undeclared identifier is reported only once g_smob.c:57: error: for each function it appears in.) g_smob.c:57: error: syntax error before "size" g_smob.c:60: error: `size' undeclared (first use in this function) g_smob.c: In function `g_print_attrib_smob': Don't mind line numbers (I added some). I solved it adding: #define scm_sizet size_t at the beginning. This definition is from /usr/include/libguile/deprecated.h. My guile is 1.8.1-r1. the deprecated.h is included by /usr/include/libguile.h but it is not used as the name suggests. Reproducible: Always Steps to Reproduce: 1.(emerge guile-1.8.1-r1) 2.emerge libgeda-20061020 3.
I have made geda depend on <dev-scheme/guile-1.8 as there seems to be a general issue with guile-1.8.1. I will look at the solution you propose whew I'm done with some urgent stuff. Although that won't solve the issue with libgeda, which geda depends on. Thanks for your help. Denis.
Ooops. Above I actually meant that it won't solve the issue with geda which is the only reason we have libgeda in the tree. I will try and find some time to commit the latest version of geda/libgeda, let's hope this will be the proper fix to our guile issues. Denis.
I just build it successfully against guile-1.8.1-r3. (I had to modify the ebuild to remove the <guile1.8 requirement.) This might be a difference between -r1 and -r3, but I have also noticed lots of weirdness with recent guile updates that are fixed by rebuilding everything guile-related after any guile update. revdep-rebuild will often find the things that need to be rebuilt. guile-1.8 also has various USE flags that should be activated. I'm guessing that the deprecated flag is probably important. See the various bugs and changelogs on gnucash, which went through similar problems recently. Here's my USE flags for guile: [ebuild R ] dev-scheme/guile-1.8.1-r3 USE="deprecated discouraged nls regex -debug -debug-freelist -debug-malloc -elisp -networking -threads" 0 kB
It's fixed for good, now. Thanks for your bug report. Note that for guile-1.8.1, having both 'deprecated' and 'discouraged' in your USE flags invalidates 'discouraged'. See the new version of the ebuild for guile-1.8.1. This has no impact on geda and libgeda, though, as what we need is 'deprecated'. Now I will work on a version bump. Denis.