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

Bug#264778: gtk-menu: FTBFS with gcc-3.4: storage size of 'action' isn't known



Package: gtk-menu
Severity: normal
Tags: patch

When building 'gtk-menu' with gcc-3.4 I get the following error:

gtk-menu.c: In function `install_signal_handlers':
gtk-menu.c:74: error: storage size of 'action' isn't known
gtk-menu.c:77: warning: implicit declaration of function `sigemptyset'
gtk-menu.c:79: warning: implicit declaration of function `sigaction'
gtk-menu.c:74: warning: unused variable `action'
gtk-menu.c: In function `fork_exec':
gtk-menu.c:202: warning: implicit declaration of function `strdup'
gtk-menu.c:202: warning: assignment makes pointer from integer without a cast
gtk-menu.c:210: warning: implicit declaration of function `putenv'
make[1]: *** [gtk-menu.o] Error 1
make[1]: Leaving directory `/gtk-menu-0.0.0.cvs20010710'
make: *** [build-stamp] Error 2

With the attached patch 'gtk-menu' can be compiled using gcc-3.4.

Regards
Andreas Jochens

diff -urN ../tmp-orig/gtk-menu-0.0.0.cvs20010710/Makefile ./Makefile
--- ../tmp-orig/gtk-menu-0.0.0.cvs20010710/Makefile	2001-07-10 17:29:21.000000000 +0200
+++ ./Makefile	2004-08-10 11:42:59.349010014 +0200
@@ -1,4 +1,4 @@
-CFLAGS=-g -ansi-error -pedantic -Wall `gtk-config --cflags`
+CFLAGS=-g -pedantic -Wall `gtk-config --cflags`
 LDFLAGS=
 GTK_LDFLAGS=${LDFLAGS} `gtk-config --libs`
 



Reply to: