bugGNUstep - Bugs: bug #12296, Bug#299178: gnustep-gui: FTBFS...

Group
 
 

bug #12296: Bug#299178: gnustep-gui: FTBFS (amd64/gcc-4.0): array type has incomplete element type

Submitter:  None
Submitted:  Sat 12 Mar 2005 11:03:05 PM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 13 Mar 2005 05:37:10 PM UTC, comment #1: 

Fixed in CVS .. thanks.

Richard Frith-Macdonald <CaS>
Group Member
Sat 12 Mar 2005 11:03:05 PM UTC, original submission:  

Bug forwarded from the Debian Bug Tracking System.

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
 }

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-03-13 CaS StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code