• Bug#266112: ggz-gnome-client: FTBFS with gcc-3.4: conflicting types for

    From Andreas Jochens@1:229/2 to All on Mon Aug 16 21:00:11 2004
    From: [email protected]

    Package: ggz-gnome-client
    Severity: normal
    Tags: patch

    When building 'ggz-gnome-client' with gcc-3.4 I get the following error:

    then mv -f ".deps/login.Tpo" ".deps/login.Po"; \
    else rm -f ".deps/login.Tpo"; exit 1; \
    fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -DORBIT2=1 -pthread -DXTHREADS -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/
    include/libbonoboui-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -
    I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/libxml2 -g -Wall -O2 -MT ggzclient.o -MD -MP -MF ".deps/ggzclient.Tpo" \
    -c -o ggzclient.o `test -f 'ggzclient.c' || echo './'`ggzclient.c; \
    then mv -f ".deps/ggzclient.Tpo" ".deps/ggzclient.Po"; \
    else rm -f ".deps/ggzclient.Tpo"; exit 1; \
    fi
    ggzclient.c:87: error: conflicting types for 'ggz_table_left'
    ggzclient.c:67: error: previous declaration of 'ggz_table_left' was here ggzclient.c:87: error: conflicting types for 'ggz_table_left'
    ggzclient.c:67: error: previous declaration of 'ggz_table_left' was here ggzclient.c:67: warning: 'ggz_table_left' declared `static' but never defined make[3]: *** [ggzclient.o] Error 1
    make[3]: Leaving directory `/ggz-gnome-client-0.0.7/src'

    With the attached patch 'ggz-gnome-client' can be compiled using gcc-3.4.

    Regards
    Andreas Jochens

    diff -urN ../tmp-orig/ggz-gnome-client-0.0.7/src/ggzclient.c ./src/ggzclient.c --- ../tmp-orig/ggz-gnome-client-0.0.7/src/ggzclient.c 2002-10-29 01:59:19.000000000 +0100
    +++ ./src/ggzclient.c 2004-08-16 20:34:18.658121497 +0200
    @@ -64,7 +64,7 @@
    static GGZHookReturn ggz_entered_fail(GGZServerEvent id, void* event_data, void* user_data);
    static GGZHookReturn ggz_logout(GGZServerEvent id, void* event_data, void* user_data);
    static GGZHookReturn ggz_motd_loaded(GGZServerEvent id, void* event_data, void* user_data);
    -static GGZHookReturn ggz_table_left(GGZServerEvent id, void* event_data, void* user_data);
    +static GGZHookReturn ggz_table_left(GGZRoomEvent id, void* event_data, void* user_data);
    static GGZHookReturn ggz_server_error(GGZServerEvent id, void* event_data, void* user_data);
    static GGZHookReturn ggz_net_error(GGZServerEvent id, void* event_data, void* user_data);

    @@ -84,7 +84,6 @@
    static GGZHookReturn ggz_table_launch_fail(GGZRoomEvent id, void*, void*);
    static GGZHookReturn ggz_table_joined(GGZRoomEvent id, void*, void*);
    static GGZHookReturn ggz_table_joi