Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164842 - sci-libs/libgeda-20061020 fails w/ guile-1.8.1-r1
Summary: sci-libs/libgeda-20061020 fails w/ guile-1.8.1-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: guile-1.8
  Show dependency tree
 
Reported: 2007-02-01 14:11 UTC by jacopo lamanna
Modified: 2007-03-09 06:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jacopo lamanna 2007-02-01 14:11:07 UTC
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.
Comment 1 Denis Dupeyron (RETIRED) gentoo-dev 2007-03-03 13:36:12 UTC
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.
Comment 2 Denis Dupeyron (RETIRED) gentoo-dev 2007-03-03 14:36:12 UTC
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.
Comment 3 Randall Nortman 2007-03-05 15:05:40 UTC
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
Comment 4 Denis Dupeyron (RETIRED) gentoo-dev 2007-03-09 06:47:58 UTC
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.