Re: guessing font width



On Thu, 14 May 2009, bill lam wrote:
I built the 1.9.3 tarball again and it completed without error

I tried again and found why 1.9.4 or later fail to build. In goffice 
file goffice-gtk.c 

1163 #ifndef HAVE_GTK_DIALOG_GET_RESPONSE_FOR_WIDGET
1164 /* This is public from 2.8 onwards.   */
1165 static gint
1166 gtk_dialog_get_response_for_widget (GtkDialog *dialog, GtkWidget *widget)                                
   
1167 {

This is the same inside goffice 0.7.3 and 0.7.6, however that macro was defined
in 0.7.6 and the header file in gtk does not have that `static' keyword, this
mismatch failed the compilation. By removing the static keyword, it compiles
successfully.

$ pkg-config --modversion gtk+-2.0
 2.12.12
$ gcc --version
 gcc (Debian 4.3.2-1.1) 4.3.2
$ uname -a
Linux debian 2.6.26-2-amd64 #1 SMP Fri Mar 27 04:02:59 UTC 2009 x86_64 GNU/Linux

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩198 錢起  贈闕下裴舍人
    二月黃鸝飛上林  春城紫禁曉陰陰  長樂鐘聲花外盡  龍池柳色雨中深
    陽和不散窮途恨  霄漢長懷捧日心  獻賦十年猶未遇  羞將白髮對華簪



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]