Bug#299178: [Debian GNUstep maintainers] Bug#299178: gnustep-gui: FTBFS (amd64/gcc-4.0): array type has incomplete element type

Eric Heintzmann Eric Heintzmann <eric@tuxfamily.org>, 299178@bugs.debian.org
Mon, 14 Mar 2005 19:52:08 +0100


tag 299178 |+ fixed-upstream|
thank

Bug fixed in upstream CVS by Richard Frith-Macdonald.

Thanks


Andreas Jochens wrote:

>Package: gnustep-gui
>Severity: normal
>Tags: patch
>
>When building 'gnustep-gui' on amd64 with gcc-4.0,
>I get the following error:
>
>gcc Functions.m -c \
>      -MMD -MP -DGNUSTEP_INSTALL_PREFIX=/usr/lib/GNUstep/System -DGNUSTEP_TARGET_DIR=\".\" -DGNUSTEP_TARGET_CPU=\"x86_64\" -DGNUSTEP_TARGET_OS=\"linux-gnu\" -DLIBRARY_COMBO=\"gnu-gnu-gnu\" -DBACKEND_BUNDLE=1 -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -DGSWARN -DGSDIAGNOSE -O2 -fno-strict-aliasing -fgnu-runtime -Wall -fconstant-string-class=NSConstantString -I../Headers/Additions -I../Headers -I./. -I. -I/root/GNUstep/Library/Headers -I/usr/local/lib/GNUstep/Local/Library/Headers -I/usr/local/lib/GNUstep/Network/Library/Headers -I/usr/lib/GNUstep/System/Library/Headers \
>       -o shared_obj/Functions.o
>In file included from Functions.m:36:
>../Headers/AppKit/NSGraphics.h:235: error: array type has incomplete element type
>Functions.m:827: error: array type has incomplete element type
>make[3]: *** [shared_obj/Functions.o] Error 1
>
>With the attached patch 'gnustep-gui' can be compiled
>on amd64 using gcc-4.0.
>
>Regards
>Andreas Jochens
>
>diff -urN ../tmp-orig/gnustep-gui-0.9.4/Headers/AppKit/NSGraphics.h ./Headers/AppKit/NSGraphics.h
>--- ../tmp-orig/gnustep-gui-0.9.4/Headers/AppKit/NSGraphics.h	2003-09-20 04:57:45.000000000 +0200
>+++ ./Headers/AppKit/NSGraphics.h	2005-03-12 10:42:41.387659015 +0100
>@@ -232,7 +232,7 @@
> 
> // Context information
> APPKIT_EXPORT void NSCountWindowsForContext(int context, int *count);
>-APPKIT_EXPORT void NSWindowListForContext(int context, int size, int list[][]);
>+APPKIT_EXPORT void NSWindowListForContext(int context, int size, int **list);
> APPKIT_EXPORT int NSGetWindowServerMemory(int context, int *virtualMemory, 
> 					   int *windowBackingMemory, 
> 					   NSString **windowDumpStream);
>diff -urN ../tmp-orig/gnustep-gui-0.9.4/Source/Functions.m ./Source/Functions.m
>--- ../tmp-orig/gnustep-gui-0.9.4/Source/Functions.m	2004-02-08 14:07:24.000000000 +0100
>+++ ./Source/Functions.m	2005-03-12 10:43:45.414796253 +0100
>@@ -824,7 +824,7 @@
> }
> 
> void 
>-NSWindowListForContext(int context, int size, int list[][])
>+NSWindowListForContext(int context, int size, int **list)
> {
> // TODO
> }
>
>
>_______________________________________________
>Debian GNUstep maintainers mailing list
>pkg-GNUstep-maintainers@lists.alioth.debian.org
>http://lists.alioth.debian.org/mailman/listinfo/pkg-gnustep-maintainers
>  
>