Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 164842
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: The Soldering-Iron Brotherhood <sci-electronics@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: jacopo lamanna <jazzenco@fastwebnet.it>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 164842 depends on: Show dependency tree
Bug 164842 blocks: 163921
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-02-01 14:11 0000
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 From Denis Dupeyron 2007-03-03 13:36:12 0000 -------
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 From Denis Dupeyron 2007-03-03 14:36:12 0000 -------
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 From Randall Nortman 2007-03-05 15:05:40 0000 -------
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 From Denis Dupeyron 2007-03-09 06:47:58 0000 -------
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.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug