Hide Forgot
when I try to build gustep-base agains the new gcc-objc-4.6 compiler I will get the following error messages: /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:70:29: error: conflicting types for 'Method' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/objc-api.h:120:28: note: previous declaration of 'Method' was here /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:75:31: error: conflicting types for 'Category' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/objc-api.h:174:30: note: previous declaration of 'Category' was here /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:87:8: error: redefinition of 'struct objc_method_description' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/objc-api.h:69:8: note: originally defined here /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:257:57: error: macro "object_copy" passed 2 arguments, but takes just 1 /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:257:16: error: 'object_copy' redeclared as different kind of symbol /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/objc-api.h:333:16: note: previous declaration of 'object_copy' was here /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:1127:8: error: redefinition of 'struct objc_struct_layout' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/encoding.h:93:8: note: originally defined here /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:1136:18: error: conflicting types for 'objc_layout_structure' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/encoding.h:102:6: note: previous declaration of 'objc_layout_structure' was here /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:1138:19: error: conflicting types for 'objc_layout_structure_next_member' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/encoding.h:104:7: note: previous declaration of 'objc_layout_structure_next_member' was here /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:1139:18: error: conflicting types for 'objc_layout_finish_structure' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/encoding.h:105:6: note: previous declaration of 'objc_layout_finish_structure' was here /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:1142:18: error: conflicting types for 'objc_layout_structure_get_info' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/encoding.h:108:6: note: previous declaration of 'objc_layout_structure_get_info' was here /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:1127:8: error: redefinition of 'struct objc_struct_layout' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/encoding.h:93:8: note: originally defined here /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:1136:18: error: conflicting types for 'objc_layout_structure' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/encoding.h:102:6: note: previous declaration of 'objc_layout_structure' was here /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:1138:19: error: conflicting types for 'objc_layout_structure_next_member' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/encoding.h:104:7: note: previous declaration of 'objc_layout_structure_next_member' was here /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:1139:18: error: conflicting types for 'objc_layout_finish_structure' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/encoding.h:105:6: note: previous declaration of 'objc_layout_finish_structure' was here /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/runtime.h:1142:18: error: conflicting types for 'objc_layout_structure_get_info' /usr/lib/gcc/x86_64-redhat-linux/4.6.0/include/objc/encoding.h:108:6: note: previous declaration of 'objc_layout_structure_get_info' was here make[4]: *** [obj/Additions.obj/NSBundle+GNUstepBase.m.o] Error 1 GSMime.m: In function '-[GSMimeParser parseHeader:]': GSMime.m:1619:12: warning: variable 'supported' set but not used [-Wunused-but-set-variable] GSMime.m:1681:3: warning: variable 'localException' set but not used [-Wunused-but-set-variable] make[4]: *** [obj/Additions.obj/NSData+GNUstepBase.m.o] Error 1 make[4]: *** [obj/Additions.obj/GSInsensitiveDictionary.m.o] Error 1 make[4]: *** [obj/Additions.obj/GSObjCRuntime.m.o] Error 1 GSXML.m: In function '+[GSXMLDocument(XSLT) xsltTransformFile:stylesheet:params:]': GSXML.m:3943:3: warning: variable 'localException' set but not used [-Wunused-but-set-variable] GSXML.m: In function '+[GSXMLDocument(XSLT) xsltTransformXml:stylesheet:params:]': GSXML.m:4000:3: warning: variable 'localException' set but not used [-Wunused-but-set-variable] GSXML.m: In function '-[GSXMLDocument(XSLT) xsltTransform:params:]': GSXML.m:4081:3: warning: variable 'localException' set but not used [-Wunused-but-set-variable] GSXML.m: In function '-[GSXMLRPC initWithURL:certificate:privateKey:password:]': GSXML.m:5159:7: warning: variable 'localException' set but not used [-Wunused-but-set-variable] GSXML.m: In function '-[GSXMLRPC parseMethod:params:]': GSXML.m:5222:3: warning: variable 'localException' set but not used [-Wunused-but-set-variable] GSXML.m: In function '-[GSXMLRPC parseResponse:params:]': GSXML.m:5292:3: warning: variable 'localException' set but not used [-Wunused-but-set-variable] make[4]: *** [obj/Additions.obj/GSXML.m.o] Error 1 make[4]: *** [obj/Additions.obj/GSMime.m.o] Error 1 make[3]: *** [internal-subproject-all_] Error 2 make[2]: *** [Additions.all.subproject.variables] Error 2 make[1]: *** [internal-all] Error 2 make: *** [internal-all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.qLzI1r (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.qLzI1r (%build) Child returncode was: 1 EXCEPTION: Command failed. See logs for output. # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/gnustep-base.spec'] Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/mock/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/lib/python2.6/site-packages/mock/util.py", line 325, in do raise mock.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/gnustep-base.spec'] LEAVE do --> EXCEPTION RAISED You may find the koji build at http://koji.fedoraproject.org/koji/getfile?taskID=2738367&name=build.log
/* This file declares the "traditional" GNU Objective-C Runtime API. It is the API supported by older versions of the GNU Objective-C Runtime. Include this file to use it. This API is being replaced by the "modern" GNU Objective-C Runtime API, which is declared in objc/runtime.h. The "modern" API is very similar to the API used by the modern Apple/NeXT runtime. The last version of GCC supporting the traditional API is GCC 4.6. This file will not exist in later versions of GCC. Because the two APIs have some conflicting definitions (in particular, Method and Category are defined differently) you should include either objc/objc-api.h (to use the traditional GNU Objective-C Runtime API) or objc/runtime.h (to use the modern GNU Objective-C Runtime API), but not both. */ Therefore, it is a gnustep-base bug.
gnustep-base-1.22.0-2.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/gnustep-base-1.22.0-2.fc15
Package gnustep-base-1.22.0-2.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing gnustep-base-1.22.0-2.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/gnustep-base-1.22.0-2.fc15 then log in and leave karma (feedback).
gnustep-base-1.22.0-2.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.