#31 Build error

closed-later
nobody
None
5
2010-10-02
2010-06-24
Anonymous
No

Build error on Arch Linux both i686 and x86_64.

In file included from /usr/include/gtk-2.0/gtk/gtk.h:233:0,
from options.c:10:
/usr/include/gtk-2.0/gtk/gtkitemfactory.h:47:1: warning: function declaration isnât a prototype
mv -f .deps/options.Tpo .deps/options.Po
gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wall -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Werror-implicit-function-declaration -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I../widgets -DPATH_CFG=\"/etc\" -DPATH_GRC=\"$HOME/\" -DPATH_ICN=\"/usr/share/gentoo/icons\" -DLOCALEDIR=\"/usr/share/locale\" -MT overwrite.o -MD -MP -MF .deps/overwrite.Tpo -c -o overwrite.o overwrite.c
odmultibutton.c: In function âod_multibutton_set_pageâ:
odmultibutton.c:76:4: error: implicit declaration of function âGTK_WIDGET_STATEâ
odmultibutton.c:89:2: error: implicit declaration of function âGTK_WIDGET_DRAWABLEâ
make[2]: *** [odmultibutton.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/include/gtk-2.0/gtk/gtk.h:233:0,
from gentoo.h:70,
from overwrite.c:11:
/usr/include/gtk-2.0/gtk/gtkitemfactory.h:47:1: warning: function declaration isnât a prototype
mv -f .deps/overwrite.Tpo .deps/overwrite.Po
make[2]: Leaving directory `/tmp/yaourt-tmp-rzn/aur-gentoo/src/gentoo-0.15.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-rzn/aur-gentoo/src/gentoo-0.15.6'
make: *** [all] Error 2
Aborting...

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-06-24

    full build log

     
  • Patrick Fardel

    Patrick Fardel - 2010-07-27

    hello,

    GTK_WIDGET_STATE and GTK_WIDGET_DRAWABLE seems to be deprecated [1] and should be replaced with gtk_widget_get_state() and gtk_widget_is_drawable().

    Not sure if this the way to do, but works :

    Manually (easy to do) in odmultibutton.c or using the following diff (saving the diff as patch.diff on top of the gentoo-0.15.6 source dir) and runnig :

    patch -p0 -u < patch.diff > plog.txt && cat plog.txt

    this will do it automaticaly, log to plog.txt and display the result ...

    Reversing the patch with :

    patch -p0 -u -R < patch.diff > plog.txt && cat plog.txt

    ubuntu 10.4 amd64

    [1]
    http://mail.gnome.org/archives/commits-list/2010-March/msg00014.html
    http://mail.gnome.org/archives/commits-list/2010-May/msg03782.html

    --cut--
    diff -U 0 gentoo-0.15.6/src/odmultibutton.c gentoo-0.15.6_patch/src/odmultibutton.c
    --- gentoo-0.15.6/src/odmultibutton.c 2009-06-23 22:57:22.000000000 +0200
    +++ gentoo-0.15.6_patch/src/odmultibutton.c 2010-07-27 09:58:55.000000000 +0200
    @@ -76,2 +76,2 @@
    - if(GTK_WIDGET_STATE(widget) != GTK_WIDGET_STATE(p))
    - gtk_widget_set_state(p, GTK_WIDGET_STATE(widget));
    + if(gtk_widget_get_state(widget) != gtk_widget_get_state(p))
    + gtk_widget_set_state(p, gtk_widget_get_state(widget));
    @@ -89 +89 @@
    - if(GTK_WIDGET_DRAWABLE(widget))
    + if(gtk_widget_is_drawable(widget))
    @@ -147 +147 @@
    - state = GTK_WIDGET_STATE(widget);
    + state = gtk_widget_get_state(widget);
    @@ -149 +149 @@
    - if(GTK_WIDGET_DRAWABLE(widget) && state != GTK_STATE_ACTIVE)
    + if(gtk_widget_is_drawable(widget) && state != GTK_STATE_ACTIVE)
    @@ -212 +212 @@
    - if(GTK_WIDGET_DRAWABLE(widget))
    + if(gtk_widget_is_drawable(widget))
    @@ -452 +452 @@
    - if(GTK_WIDGET_DRAWABLE(mb))
    + if(gtk_widget_is_drawable(mb))
    --cut--

     
  • Patrick Fardel

    Patrick Fardel - 2010-07-27

    well ...

    http://pastebin.com/06nETNHJ

    open it as "RAW" (top right of pastebin) and save it as patch.diff (be sure to select the "*.txt" format in the save-dialog of the browser, otherwise it may be saved in HTML format, witch is not what we want)

     
  • Emil Brink

    Emil Brink - 2010-10-02
    • status: open --> open-later
     
  • Emil Brink

    Emil Brink - 2010-10-02

    As pointed out in comments, this is due to GTK_WIDGET_STATE() being deprecated in recent enough versions of GTK+.

    I'll close this as LATER, since I've removed the reference in the codebase. There is no corresponding release yet though, which might be a bit confusing. Maybe it should just be CLOSED, who knows.

     
  • Emil Brink

    Emil Brink - 2010-10-02
    • status: open-later --> closed-later
     
  • Emil Brink

    Emil Brink - 2010-10-02

    Forgot to actually mark it as closed, which is what I meant to do. Sigh. Sorry.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks