LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2013, 07:30 AM   #1
prushik
Member
 
Registered: Mar 2009
Location: Pennsylvania
Distribution: gentoo
Posts: 372

Rep: Reputation: 29
Very frustrating problem with GTK2 and Gnumeric


So I am trying to compile Gnumeric with GTK2.
Specifically I am using GTK2 version:
glib-2.39.1
atk-2.8.0
gdk-pixbuf-2.28.2
harfbuzz-0.9.24
pango-1.36.1
gtk+-2.24.22
(newest versions of each)

I am trying to compile Gnumeric 1.10.17 (last version which can compile with GTK2)

The blocker that I encounter is this:
Code:
gnm-dao.c: In function 'gnm_dao_destroy':
gnm-dao.c:118:44: error: 'GtkWidgetClass' has no member named 'destroy'
gnm-dao.c: In function 'gnm_dao_class_init':
gnm-dao.c:124:29: error: 'GtkWidgetClass' has no member named 'destroy'
I searched all over the internet, and I found other people having the same problem, but no solution (or even replies). I found a few patches which modify the specific lines of code that cause the problem:
https://mail.gnome.org/archives/comm.../msg01469.html
and
https://mail.gnome.org/archives/comm.../msg08893.html

However, these patches seem to replace the broken code with different code which has exactly the same problem. In fact, I applied these patches and the problem remains.

In addition, I found a post that says Gnumeric should be compiled with an older version of glib, although it seems to be related to a different problem:
https://mail.gnome.org/archives/comm.../msg02344.html
I had my doubts because the problem involves GtkWidgetClass, which is part of GTK not glib. I tried anyway and it failed with the same issue.

I also tried older versions of GTK2 and they all failed the same way. I checked GTK2 documentation and it seems that GtkWidgetClass never had a "destroy" member, however, both Gnumeric code and the patches I referenced earlier make a reference to this member (which causes the problem).

I tried older versions of gnumeric ranging from 1.6.x to 1.10.x and most failed on the same code (some failed earlier). I have previously compiled gnumeric successfully on other machines, so I know that this code worked at one point, and others do not seem to have this issue, so I must be missing something.
Another few posts which hint at solutions are:
http://www.mail-archive.com/blfs-sup.../msg14496.html and
http://osdir.com/ml/blfs-support/2012-04/msg00230.html

I cannot locate the goffice patch referred to in the link, but I am doubtful that the problem is in goffice (which built with no problems).

If required, I have kept a full list of every single software package I have installed. It is an x86_64 system by the way.

Thank you all for your help. If you know of a solution or a better place to ask, please let me know.
 
Old 12-03-2013, 02:21 PM   #2
jbrefort
LQ Newbie
 
Registered: Mar 2013
Location: Nantes (France)
Distribution: Debian
Posts: 3

Rep: Reputation: Disabled
Any patch applied?

In gnumeric 1.10.17, the class is cast to GtkObjectClass*, not GtkWidgetClass*, are you sure you have the original source code? Where did you download it from?
 
Old 12-03-2013, 05:55 PM   #3
prushik
Member
 
Registered: Mar 2009
Location: Pennsylvania
Distribution: gentoo
Posts: 372

Original Poster
Rep: Reputation: 29
I downloaded the code from here: http://ftp.acc.umu.se/pub/GNOME/sources/gnumeric/1.10/ which comes from the official GNUmeric website.

One of those patches that I posted casts the class (GtkWidgetClass *) so I must have posted the error after I applied the patch, sorry...

Just to confirm what you said.... I tried compiling it again from the stock source code and it worked perfectly....
I do not understand, I had so much trouble last night but now it works....
I searched all day for a solution...

I don't know, but thank you for the reply, I now know the solution but not what the problem was.
 
  


Reply

Tags
destroy, gnumeric, gtk2, gtkwidgetclass, sucks


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Frustrating OpenLDAP problem bbennett Linux - Server 9 02-15-2008 10:54 AM
One frustrating problem: I/o wait khoma Linux - Newbie 3 12-17-2007 05:39 PM
Frustrating problem with sound atanveer Linux - General 1 10-14-2007 07:02 PM
Frustrating Gdk problem. garamatt Linux - General 1 10-11-2003 10:28 PM
most frustrating linux problem bogler General 7 02-25-2003 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration