Bug 14996 - 5b1: gnucash does not run. Compile errors
Summary: 5b1: gnucash does not run. Compile errors
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Funda Wang
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-09 14:55 CET by Bit Twister
Modified: 2015-02-13 23:09 CET (History)
5 users (show)

See Also:
Source RPM: gnucash-2.6.5-1.mga5
CVE:
Status comment:


Attachments
gnucash compile errors (2.46 KB, text/plain)
2015-01-09 14:56 CET, Bit Twister
Details

Description Bit Twister 2015-01-09 14:55:38 CET
Description of problem:

gnucash does not run. Compile errors

Version-Release number of selected component (if applicable):


How reproducible: Allways


Steps to Reproduce:
1. gnucash
2.
3.


Reproducible: 

Steps to Reproduce:
Comment 1 Bit Twister 2015-01-09 14:56:42 CET
Created attachment 5798 [details]
gnucash compile errors
Comment 2 Bit Twister 2015-01-09 14:58:10 CET
Might not hurt to go ahead and use 2.6.5 from http://www.gnucash.org/
David Walser 2015-01-12 00:46:17 CET

Assignee: bugsquad => fundawang
CC: (none) => bruno, olav

Comment 3 Dick Gevers 2015-01-12 16:44:09 CET
Same errors here, I cannot manage my accounts :((
Comment 4 Olav Vitters 2015-01-12 16:51:28 CET
Install the devel package for now. It is a bit difficult to fix.
Bit Twister 2015-01-18 21:12:26 CET

Source RPM: gnucash-2.6.4-4.mga5.src.rpm => gnucash-2.6.5-1.mga5

Comment 5 Doug Laidlaw 2015-01-19 13:02:34 CET
Same thing on 5b2 64-bit.  Installed gnucash 2.6.5 and the usual dependencies.  Crashed at splash screen with the same compile errors BitTwister gives in attachment 5798 [details].

Installed the -devel package and it starts normally.

CC: (none) => laidlaws

Comment 6 Doug Laidlaw 2015-02-10 19:48:50 CET
I notice too that the drop-down/popup account selection menu for entering a transaction is very unstable.

As for compiling the source code (Comment 2,) I haven't looked this time, but it used to contain *.la files, which Mageia no longer seems to support.  I recall the question of supporting them, being discussed fairly early.
Comment 7 Doug Laidlaw 2015-02-11 15:06:44 CET
(In reply to Doug Laidlaw from comment #6)
> I notice too that the drop-down/popup account selection menu for entering a
> transaction is very unstable.
> 
> As for compiling the source code (Comment 2,) I haven't looked this time,
> but it used to contain *.la files, which Mageia no longer seems to support. 
> I recall the question of supporting them, being discussed fairly early.

And that is exactly what happened:

/bin/ld: /usr/local/lib/libfreetype.a(ftinit.o): relocation R_X86_64_32 against `tt_driver_class' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libfreetype.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
libtool: install: error: relink `libgncmod-app-utils.la' with the above command before installing it

I have the SRPM, which contains a patch gnucash-notsvn.patch.  That mentions .la files, but I am not qualified to say that it would work here.
Comment 8 Bit Twister 2015-02-11 16:03:21 CET
I am not sure we are talking about the same thing in this thread.

I see discussion about source compile which I believe is not the problem of this bug report.

In my opinion the gnucash rpm would install a compiled/linked binary.

What I "think" happens is when a user runs gnucash it tries to generate some file in the users directory. That "compile" is the source/bug of this bug report.
Comment 9 Doug Laidlaw 2015-02-11 16:22:15 CET
No, you are probably right.

I can get around your problem by installing the "devel" package.  I can add nothing to that.

But Gnucash, even with "devel" has a pick window for accounts which it is half impossible to use.  That may be solved by the fix for this bug.  There is also the absence of text, which is the subject of another bug report.  It seems half fixed.

But you did suggest that one could compile from source.  I have demonstrated again that the .la file gets in the way.  There are plenty of forum posts about this, even a bug report at Gnucash.  It looks as though the SRPM has a patch for that issue.

Personally, I will stick with the RPM + gnucash-devel until this bug finds an answer.
Comment 10 Bit Twister 2015-02-11 17:11:33 CET
(In reply to Doug Laidlaw from comment #9)

> But Gnucash, even with "devel" has a pick window for accounts which it is
> half impossible to use. 

I have yet to run across your problem. Could be the method used or what we are talking about.

I double click the desired item (dinning, groceries,..) and click the transfer funds icon in the new screen. I have yet to have that fail.

If talking about a placeholder, double clicking it expands the selections under the placeholder, if any.
Comment 11 Doug Laidlaw 2015-02-11 17:24:58 CET
That is for transferring funds.

I am talking about (say) writing a check.  The credit will go automatically to your checking account.  Try to pick an account for the debit from the list at the end of the first line.  It wobbles all over the place, and scrolling doesn't work the way it used to.  It may be my installation.  I am having much more trouble with windows losing all detail, than I used to.  There may be a common problem.
Comment 12 Bit Twister 2015-02-11 18:10:23 CET
(In reply to Doug Laidlaw from comment #11)
> That is for transferring funds.
> 
> I am talking about (say) writing a check.

This bug report is not the place to trouble shoot a problem.
Open a thread on alt.os.linux.mageia and we can chat all day.
Comment 13 José Jorge 2015-02-11 23:27:20 CET
Bug confirmed here. And thanks for the devel files tip : I could work!

CC: (none) => lists.jjorge

Comment 14 Doug Laidlaw 2015-02-12 01:52:20 CET
It works, and seems to work every time, but it isn't really a fix.
Comment 15 Doug Laidlaw 2015-02-12 01:56:32 CET
The -devel RPM pulls in a whole list of others.  One of those may be all you need, but I don't feel like hunting.
Comment 16 Bit Twister 2015-02-12 03:35:38 CET
(In reply to Doug Laidlaw from comment #15)
> The -devel RPM pulls in a whole list of others.  One of those may be all you
> need, but I don't feel like hunting.

Only one I installed was lib64gnucash-devel which has a bunch of .h files and about 8 .so files.
Comment 17 Doug Laidlaw 2015-02-12 07:39:28 CET
You probably have a complete development environment already.  I did that once.  There was heaps of stuf I didn't need.  Now I install devel packages on demand.  Your experience seems to cconfirm that the crucial difference is in libgnucash-devel.

But we are getting away from the bug itself, again.
Comment 18 José Jorge 2015-02-12 09:31:18 CET
As a quick workaround to prevent users from getting a crashing gnucash in MGA5, do you agree to require gnucash-devel in gnucash?
Comment 19 Sander Lepik 2015-02-12 09:52:56 CET
(In reply to José Jorge from comment #18)
> As a quick workaround to prevent users from getting a crashing gnucash in
> MGA5, do you agree to require gnucash-devel in gnucash?

What?! Make sure which package is missing and require it. Requiring -devel packages is not the way to do it!

CC: (none) => mageia

Comment 20 Doug Laidlaw 2015-02-12 10:08:43 CET
I can see José's reasoning, but I agree: a workaround and a bugfix are two different things.  

I have had my say.  I think I will unsubscribe and leave it to those who can contribute usefully.  I can't think straight at the moment.
Doug Laidlaw 2015-02-12 10:09:30 CET

CC: laidlaws => (none)

Comment 21 Olav Vitters 2015-02-12 20:20:23 CET
I wanted a good fix, but that's difficult (for me). I added the workaround to  gnucash-2.6.5-2.mga5.

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 22 Thomas Backlund 2015-02-12 20:33:40 CET
The proper fix would be to move the .so to the main package (if that's all it need) and filter out -devel requires...

Pulling in unneeded -devel stuff for everyone is not a nice fix

CC: (none) => tmb

Comment 23 Sander Lepik 2015-02-12 22:16:47 CET
At least don't call it as fixed.. We'll see if I have time to fix it more properly..

Status: RESOLVED => UNCONFIRMED
Resolution: FIXED => (none)
Ever confirmed: 1 => 0

Comment 24 Olav Vitters 2015-02-12 22:18:45 CET
If you move the .so, you move various -devel requirements to the main package!
Comment 25 Sander Lepik 2015-02-12 22:19:06 CET
Wrong status..

Status: UNCONFIRMED => NEW
Ever confirmed: 0 => 1

Comment 26 Sander Lepik 2015-02-12 22:19:44 CET
Are you sure it's .so not some package that is required by -devel package?
Comment 27 Thomas Backlund 2015-02-12 22:24:14 CET
(In reply to Olav Vitters from comment #24)
> If you move the .so, you move various -devel requirements to the main
> package!

well, you only changed from:

gnucash -> devel deps

to:

gnucash -> gnucash-devel -> devel deps...


Wich Is why I stated you kan keep the .so in main package and *filter out*
the devel deps

then you can have the -devel package require the main package to get the .so
and so on...
Comment 28 Olav Vitters 2015-02-12 22:54:01 CET
That's pretty ugly IMO. Proper fix is to have gnucash load the .so with the number.
Comment 29 Thomas Backlund 2015-02-13 07:21:11 CET
Yeah, feel free to fix gnucash...

but until that, It would be preferred to fix the package to not pull in -devel packages...
Comment 30 Sander Lepik 2015-02-13 21:00:29 CET
(In reply to Olav Vitters from comment #21)
> I wanted a good fix, but that's difficult (for me). I added the workaround
> to  gnucash-2.6.5-2.mga5.

I'm using --no-recommends and the difference with requirement on -devel is 67 extra packages - that's insane!
Comment 31 Sander Lepik 2015-02-13 23:09:14 CET
Should be fixed. Please reopen if there are still problems.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.