Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-03-2013, 08:30 AM   #1
Registered: Mar 2009
Location: Pennsylvania
Distribution: Lubuntu, BetterLinux
Posts: 370

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:
(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:
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:

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:
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: and

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, 03:21 PM   #2
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, 06:55 PM   #3
Registered: Mar 2009
Location: Pennsylvania
Distribution: Lubuntu, BetterLinux
Posts: 370

Original Poster
Rep: Reputation: 29
I downloaded the code from here: 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.


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 11:54 AM
One frustrating problem: I/o wait khoma Linux - Newbie 3 12-17-2007 06:39 PM
Frustrating problem with sound atanveer Linux - General 1 10-14-2007 08:02 PM
Frustrating Gdk problem. garamatt Linux - General 1 10-11-2003 11:28 PM
most frustrating linux problem bogler General 7 02-25-2003 05:45 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:18 AM.

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