Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39937 - app-office/gnucash (gnucash-1.8.8.ebuild) compiles, but won't start.
Summary: app-office/gnucash (gnucash-1.8.8.ebuild) compiles, but won't start.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 39938 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-30 22:40 UTC by Tamran Lengyel
Modified: 2004-09-19 08:55 UTC (History)
4 users (show)

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


Attachments
log of emerge gnucash on an amd64 showing link failure (gnucash_emerge.log,442.11 KB, text/plain)
2004-02-02 21:32 UTC, Scott Hathcock
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tamran Lengyel 2004-01-30 22:40:03 UTC
I added 'amd64' to gnucash-1.8.8.ebuild, and had to also did the same for the  dependencies which were also masked (dev-libs/g-wrap, dev-libs/slib, gnome-extra/gal, gnome-extra/gtkhtml and gnome-extra/guppi).  The package all compiled fine, but when I start the program I get the following:

bash-2.05b$ gnucash
ERROR: In procedure dynamic-link:
ERROR: file: "libgw-gnc", message: "/usr/lib/libgw-gnc.a: invalid ELF header"

Reproducible: Always
Steps to Reproduce:
1. See details
2.
3.

Actual Results:  
bash-2.05b$ gnucash
ERROR: In procedure dynamic-link:
ERROR: file: "libgw-gnc", message: "/usr/lib/libgw-gnc.a: invalid ELF header"

Expected Results:  
I was hoping to run gnucash
Comment 1 foser (RETIRED) gentoo-dev 2004-01-31 02:50:13 UTC
*** Bug 39938 has been marked as a duplicate of this bug. ***
Comment 2 foser (RETIRED) gentoo-dev 2004-01-31 02:52:20 UTC
amd64 team, can you somehow convey to your users that they shouldn't file amd64 related bugs with us or any herd other than amd64 (i guess we're not the only herd seeing this behaviour).
Comment 3 Scott Hathcock 2004-02-02 21:32:12 UTC
Created attachment 24873 [details]
log of emerge gnucash on an amd64 showing link failure

The file contains the output of emerge cut after the error. It lists as a
Warning but something is failing to put in the -L/usr/X11R6/lib flag during the
configure.  It can't find the X related libs for linking.
Comment 4 Tamran Lengyel 2004-03-29 18:11:20 UTC
There seems to be a workaround here:

http://forums.gentoo.org/viewtopic.php?t=146792

Can one of the AMD64 devs confirm this?
Comment 5 Martin Allchin 2004-04-24 06:11:20 UTC
I don't see any mention of that workaround resolving this issue.

Can anyone confirm this please?
Comment 6 Martin Allchin 2004-04-24 06:29:18 UTC
Gnucash-1.8.9 in bug #47679 has same issue.
Comment 7 raoulduke 2004-08-01 02:36:20 UTC
The workaround proposed here: http://forums.gentoo.org/viewtopic.php?t=146792&highlight=gnucash+amd64 works perfectly for me, so I can confirm the workaround, although I'm not an amd64 developer.

The steps to install gnucash-1.8.8 or -1.8.9 are (as mentioned):
1. add (~)amd64 KEYWORD to app-office/gnucash/gnucash-1.8.x.ebuild
2. edit gnucash-1.8.x ebuild to include CFLAGS="-L/usr/X11R6/lib" in global section
3. edit gnucash-1.8.x ebuild to include LDFLAGS="-L/usr/X11R6/lib" in global section
4. add (~)amd64 KEYWORD to dev-util/guile/guile-1.6.4-r1.ebuild
5. add --enable-deprecation=no to guile-1.6.4-r1.ebuild econf section
6. emerge =guile-1.6.4-r1
7. emerge =gnucash-1.8.x

With these modifications, gnucash starts and works without errors. I did not have to install guile-gtk, gnucash works without this library on my machine.
Comment 8 Dan 2004-09-15 00:58:07 UTC
I just want to confirm that the workaround listed in comment #7 works :) -Dan
Comment 9 Danny van Dyk (RETIRED) gentoo-dev 2004-09-19 08:55:23 UTC
In CVS now. Just in time, best before time's already in the past...