URL:
<http://savannah.gnu.org/bugs/?35342>
Summary: SWK doesn't compile with clang --with patch
Project: GNUstep
Submitted by: buzzdee
Submitted on: Fr 20 Jan 2012 13:19:56 GMT
Category: Libraries
Severity: 3 - Normal
Item Group: Installation
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
trying to compile SWK from SVN with clang fails with the following error
message
clang WebHistory.m -c \
-MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing
-fobjc-nonfragile-abi -D_NONFRAGILE_ABI -pthread -fPIC -DDEBUG
-fno-omit-frame-pointer -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -O2 -pipe -g
-DIWASHERECFLAGS -fgnu-runtime -fconstant-string-class=NSConstantString
-I./derived_src -I. -I/usr/local/include
-I/gnustep-simplewebkit-0.1_writes_to_HOME/GNUstep/Library/Headers
-I/usr/local/include \
-o obj/SimpleWebKit.obj/WebHistory.m.o
WebHistory.m:54:23: error: instance variable is already declared
NSMutableDictionary *_itemsByURL; // all items indexed
by URL
^
./derived_src/WebKit/WebHistory.h:40:23: note: previous definition is here
NSMutableDictionary *_itemsByURL; // all items
indexed by URL string
^
WebHistory.m:55:23: error: instance variable is already declared
NSMutableDictionary *_itemGroupsByDates; // all items grouped
(&ordered?) on a single day, indexed by date
^
./derived_src/WebKit/WebHistory.h:41:23: note: previous definition is here
NSMutableDictionary *_itemGroupsByDates; // all items grouped
(&ordered?) on a single day, indexed by date
^
WebHistory.m:56:6: error: instance variable is already declared
int _historyAgeInDaysLimit;
^
./derived_src/WebKit/WebHistory.h:42:6: note: previous definition is here
int _historyAgeInDaysLimit;
^
WebHistory.m:57:6: error: instance variable is already declared
int _historyItemLimit;
^
./derived_src/WebKit/WebHistory.h:43:6: note: previous definition is here
int _historyItemLimit;
^
4 errors generated.
removing the variable declaration in the .m file fixes the issue, see attached
patch.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fr 20 Jan 2012 13:19:56 GMT Name: patch-Sources_WebHistory_m Size:
645B By: buzzdee
patch to fix compilation error
<http://savannah.gnu.org/bugs/download.php?file_id=24853>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35342>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep