bugGNUstep - Bugs: bug #35342, SWK doesn't compile with clang...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #35342: SWK doesn't compile with clang --with patch

Submitted by:  Sebastian Reitenbach <buzzdee>
Submitted on:  Fri 20 Jan 2012 01:19:56 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Item Group: InstallationStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 02 Nov 2013 04:45:28 PM UTC, comment #1:

SWK currently compiles with clang.

Riccardo Mottola <rmottola>
Project Member
Fri 20 Jan 2012 01:19:56 PM UTC, original submission:

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.

Sebastian Reitenbach <buzzdee>
Project Member

 

Attached Files
file #24853:  patch-Sources_WebHistory_m added by buzzdee (645B - application/octet-stream - patch to fix compilation error)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rmottola (Posted a comment)
  • -unavailable- added by buzzdee (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 02 Nov 2013 04:45:28 PM UTCrmottolaStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 20 Jan 2012 01:19:56 PM UTCbuzzdeeAttached File-=>Added patch-Sources_WebHistory_m, #24853

    Back to the top


    Powered by Savane 3.1-cleanup