bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Sebastian Reitenbach
Subject: [bug #35342] SWK doesn't compile with clang --with patch
Date: Fri, 20 Jan 2012 13:19:57 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110613 SUSE/3.6.18-0.2.1 Firefox/3.6.18

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]