bugGNUstep - Bugs: bug #33502, SOPE can't be compiled with...

 
 

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

bug #33502: SOPE can't be compiled with current gnustep and gcc 4.6

Submitted by:  Bernhard Rosenkraenzer <bero>
Submitted on:  Thu 09 Jun 2011 02:06:05 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Item Group: BugStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 09 Jun 2011 02:45:01 PM UTC, comment #1:

The problem is that SOPE has no been updated to use the Modern
Objective-C runtime API when using the GNU runtime.

The file that doesn't compiles starts with

#if GNU_RUNTIME
# include <objc/objc-api.h>
# include <objc/encoding.h>
#endif

... but objc/objc-api.h and objc/encoding.h are deprecated in
GCC 4.6.0 and no longer even exist in GCC 4.7.0!

So, of course the code doesn't compile. Nothing to do with
GNUstep.

See

http://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcc/GNU-Objective_002dC-runtime-API.html#GNU-Objective_002dC-runtime-API

for more information.

Thanks

Nicola Pero <nico>
Project Member
Thu 09 Jun 2011 02:06:05 PM UTC, original submission:

Attempting to build SOPE 1.3.7a (http://www.sogo.nu/files/downloads/SOGo/Sources/SOPE-1.3.7a.tar.gz) with current gnustep and gcc 4.6.x results in this error:

In file included from EOKeyValueCoding.m:27:0:
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/objc-api.h:46:3: error: #error You can not include both objc/objc-api.h and objc/runtime.h. Include objc/objc-api.h for the traditional GNU Objective-C Runtime API and objc/runtime.h for the modern one.
In file included from EOKeyValueCoding.m:27:0:
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/objc-api.h:69:8: error: redefinition of 'struct objc_method_description'
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/runtime.h:87:8: note: originally defined here
In file included from EOKeyValueCoding.m:27:0:
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/objc-api.h:120:28: error: conflicting types for 'Method'
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/runtime.h:70:29: note: previous declaration of 'Method' was here
In file included from EOKeyValueCoding.m:27:0:
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/objc-api.h:174:30: error: conflicting types for 'Category'
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/runtime.h:75:31: note: previous declaration of 'Category' was here
In file included from EOKeyValueCoding.m:28:0:
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/encoding.h:93:8: error: redefinition of 'struct objc_struct_layout'
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/runtime.h:1129:8: note: originally defined here
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/encoding.h:102:6: error: conflicting types for 'objc_layout_structure'
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/runtime.h:1138:18: note: previous declaration of 'objc_layout_structure' was here
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/encoding.h:104:7: error: conflicting types for 'objc_layout_structure_next_member'
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/runtime.h:1140:19: note: previous declaration of 'objc_layout_structure_next_member' was here
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/encoding.h:105:6: error: conflicting types for 'objc_layout_finish_structure'
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/runtime.h:1141:18: note: previous declaration of 'objc_layout_finish_structure' was here
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/encoding.h:108:6: error: conflicting types for 'objc_layout_structure_get_info'
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/runtime.h:1144:18: note: previous declaration of 'objc_layout_structure_get_info' was here
make[5]: *** [obj/libEOControl.obj/EOKeyValueCoding.m.o] Error 1

The SOPE guys have looked at it and concluded it is a gnustep bug and should be fixed here.
http://www.sogo.nu/bugs/view.php?id=1278#c2554

Bernhard Rosenkraenzer <bero>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by nico (Posted a comment)
  • -unavailable- added by bero (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 09 Jun 2011 02:45:23 PM UTCnicoStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1