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.