Re: [MacPorts] #34232: cctools 822 Rev 2 fails to build: error: redefinition of ‘struct objc_super’

MacPorts noreply at macports.org
Fri Apr 27 16:31:50 PDT 2012


#34232: cctools 822 Rev 2 fails to build: error: redefinition of ‘struct
objc_super’
------------------------------------+---------------------------------------
 Reporter:  jmstephensjr@…          |       Owner:  jeremyhu@…           
     Type:  defect                  |      Status:  assigned             
 Priority:  Normal                  |   Milestone:                       
Component:  ports                   |     Version:  2.0.4                
 Keywords:                          |        Port:  cctools              
------------------------------------+---------------------------------------
Changes (by jeremyhu@…):

  * status:  new => assigned


Comment:

 {{{
 /usr/bin/gcc-4.2  -Os -g -Wall -I./../include -I.
 -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_
 -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -DEFI_SUPPORT
 -I/opt/local/include -arch x86_64 -I/opt/local/libexec/llvm-3.0/include
 -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
 -D__STDC_LIMIT_MACROS -O3  -g -fno-common -c -o ./print_objc.o
 print_objc.c
 In file included from /usr/include/objc/objc-runtime.h:2,
                  from print_objc.c:34:
 /usr/include/objc/message.h:33: error: redefinition of ‘struct objc_super’
 /usr/include/objc/message.h:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
 ‘__attribute__’ before ‘id’
 /usr/include/objc/message.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
 ‘__attribute__’ before ‘id’
 /usr/include/objc/message.h:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
 ‘__attribute__’ before ‘void’
 /usr/include/objc/message.h:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
 ‘__attribute__’ before ‘void’
 /usr/include/objc/message.h:99: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
 ‘__attribute__’ before ‘long’
 /usr/include/objc/message.h:114: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
 ‘__attribute__’ before ‘id’
 /usr/include/objc/message.h:116: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
 ‘__attribute__’ before ‘void’
 /usr/include/objc/message.h:135: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
 ‘__attribute__’ before ‘id’
 /usr/include/objc/message.h:137: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
 ‘__attribute__’ before ‘void’
 /usr/include/objc/message.h:156: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
 ‘__attribute__’ before ‘id’
 /usr/include/objc/message.h:157: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
 ‘__attribute__’ before ‘void’
 print_objc.c: In function ‘print_objc_segment’:
 print_objc.c:638: warning: implicit declaration of function ‘CLS_GETINFO’
 print_objc.c:638: error: ‘CLS_META’ undeclared (first use in this
 function)
 print_objc.c:638: error: (Each undeclared identifier is reported only once
 print_objc.c:638: error: for each function it appears in.)
 print_objc.c:677: error: ‘CLS_CLASS’ undeclared (first use in this
 function)
 make[1]: *** [print_objc.o] Error 1
 }}}

 Please attach the preprocessed source by running:

 {{{
 cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-822/otool
 /usr/bin/gcc-4.2  -Os -g -Wall -I./../include -I.
 -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_
 -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -DEFI_SUPPORT
 -I/opt/local/include -arch x86_64 -I/opt/local/libexec/llvm-3.0/include
 -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
 -D__STDC_LIMIT_MACROS -O3  -g -fno-common -E -o ~/Desktop/print_objc.pp.c
 print_objc.c
 }}}

 You should attach the file print_objc.pp.c from your Desktop.

-- 
Ticket URL: <https://trac.macports.org/ticket/34232#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list