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

Group
 
 

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

Submitter:  Sebastian Reitenbach <buzzdee>
Submitted:  Fri 20 Jan 2012 01:19:56 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Item Group:  Installation Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

SWK currently compiles with clang.

Riccardo Mottola <rmottola>
Group 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>
Group Member

 

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

Attach Files:
   
   
Comment:
   

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
  • -email is unavailable- added by rmottola (Posted a comment)
  • -email is unavailable- added by buzzdee (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-02 rmottola StatusNone Fixed
        Open/ClosedOpen Closed
    2012-01-20 buzzdee Attached File- Added patch-Sources_WebHistory_m, #24853

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code