osx - GNUStep base make error -
i installing gnustep on mac os x. using gnu c compiler(5.1). following steps readme.darwin present in gnu package. went fine until make step gnu base.
i getting following errors
gnustep-make 2.6.7. type 'gnumake print-gnustep-make-help' help. making in source ... rm -f dynamic-load.h cp simple-load.h dynamic-load.h /usr/local/share/gnustep/makefiles/mkinstalldirs . mv ../headers/gnustepbase/config.h . touch ./config.h /usr/local/share/gnustep/makefiles/mkinstalldirs ./gnustepbase mv ../headers/gnustepbase/gsconfig.h ./gnustepbase touch ./gnustepbase/gsconfig.h making in objectivec2 ... making subproject objectivec2... compiling file runtime.c ... in file included runtime.c:35:0: /usr/local/include/objc/objc-api.h:355:1: error: unknown type name ‘retval_t’ retval_t objc_msg_sendv(id, sel, arglist_t); /usr/local/include/objc/objc-api.h:355:34: error: unknown type name ‘arglist_t’ retval_t objc_msg_sendv(id, sel, arglist_t); /usr/local/include/objc/objc-api.h:433:33: error: unknown type name ‘metaclass’ method_t class_get_class_method(metaclass _class, sel asel); /usr/local/include/objc/objc-api.h: in function ‘class_get_class_name’: /usr/local/include/objc/objc-api.h:469:10: error: dereferencing pointer incomplete type ‘struct objc_class’ return cls_isclass(_class)?_class->name:((_class==nil)?"nil":0); /usr/local/include/objc/objc-api.h: @ top level: /usr/local/include/objc/objc-api.h:478:15: error: unknown type name ‘ metaclass’ static inline metaclass /usr/local/include/objc/objc-api.h: in function ‘object_get_class_name’: /usr/local/include/objc/objc-api.h:562:42: error: dereferencing pointer incomplete type ‘struct objc_class’ :((class)object)->name) /usr/local/include/objc/objc-api.h: @ top level: /usr/local/include/objc/objc-api.h:566:15: error: unknown type name ‘metaclass’ static inline metaclass in file included runtime.c:37:0: /usr/local/include/objc/encoding.h:71:6: error: unknown type name ‘arglist_t’ arglist_t argframe, /usr/local/include/objc/encoding.h:73:33: error: unknown type name ‘arglist_t’ char *method_get_next_argument (arglist_t argframe, /usr/local/include/objc/encoding.h:76:11: error: unknown type name ‘arglist_t’ arglist_t argframe, runtime.c: in function ‘class_getinstancemethodnonrecursive’: runtime.c:109:28: error: dereferencing pointer incomplete type ‘struct objc_class’ (methods = aclass->methods; runtime.c:118:31: error: dereferencing pointer incomplete type ‘const struct objc_selector’ if (method->method_name->sel_id == aselector->sel_id) runtime.c:118:52: error: dereferencing pointer incomplete type ‘const struct objc_selector’ if (method->method_name->sel_id == aselector->sel_id) runtime.c: in function ‘class_addprotocol’: runtime.c:252:22: warning: assignment incompatible pointer type [- wincompatible-pointer-types] protocols->list[0] = protocol; runtime.c: in function ‘objc_allocateclasspair’: runtime.c:1021:31: error: invalid application of ‘sizeof’ incomplete type ‘struct objc_class’ newclass = calloc(1, sizeof(struct objc_class) + extrabytes); runtime.c:1029:32: error: invalid application of ‘sizeof’ incomplete type ‘struct objc_class’ metaclass = calloc(1, sizeof(struct objc_class)); runtime.c:1037:37: error: invalid application of ‘sizeof’ incomplete type ‘struct objc_class’ metaclass->instance_size = sizeof(struct objc_class); runtime.c: in function ‘objc_allocatemetaclass’: runtime.c:1055:38: error: invalid application of ‘sizeof’ incomplete type ‘struct objc_class’ class metaclass = calloc(1, sizeof(struct objc_class) + extrabytes); runtime.c:1063:37: error: invalid application of ‘sizeof’ incomplete type ‘struct objc_class’ metaclass->instance_size = sizeof(struct objc_class); runtime.c: in function ‘object_getindexedivars’: runtime.c:1073:38: error: invalid application of ‘sizeof’ incomplete type ‘struct objc_class’ return ((char *) obj) + sizeof(struct objc_class); runtime.c: in function ‘objc_getprotocol’: runtime.c:1179:35: error: ‘gnu_protocol {aka struct objc_object_gnu}’ has no member named ‘protocol_name’ if (strcmp(pcllist->list[i]->protocol_name, name) == 0) runtime.c: in function ‘protocol_conformstoprotocol’: runtime.c:1202:39: error: dereferencing pointer incomplete type ‘protocol {aka struct objc_protocol}’
struct objc_protocol_list *list = p1->protocol_list;
runtime.c:1216:28: error: ‘gnu_protocol {aka struct objc_object_gnu}’ has no member named ‘protocol_name’ if (strcmp(list->list[i]->protocol_name, p2->protocol_name) == 0) runtime.c: in function ‘sel_isequal’: runtime.c:1419:10: warning: implicit declaration of function ‘sel_eq’ [-wimplicit-function-declaration] return sel_eq(sel1, sel2) ? yes : no; runtime.c: in function ‘class_getclassmethod’: runtime.c:392:1: warning: control reaches end of non-void function [- wreturn-type] } runtime.c: in function ‘class_getinstancesize’: runtime.c:409:1: warning: control reaches end of non-void function [- wreturn-type] } runtime.c: in function ‘class_getivarlayout’: runtime.c:481:1: warning: control reaches end of non-void function [- wreturn-type] }runtime.c: in function ‘class_getsuperclass’: runtime.c:544:1: warning: control reaches end of non-void function [- wreturn-type] } runtime.c: in function ‘objc_getmetaclass’: runtime.c:875:1: warning: control reaches end of non-void function [- wreturn-type] } runtime.c: in function ‘object_getindexedivars’: runtime.c:1076:1: warning: control reaches end of non-void function [- wreturn-type] } gnumake[4]: *** [obj/objectivec2.obj/runtime.c.o] error 1 gnumake[3]: *** [internal-subproject-all_] error 2 gnumake[2]: *** [objectivec2.all.subproject.variables] error 2 gnumake[1]: *** [internal-all] error 2 make: *** [internal-all] error 2
Comments
Post a Comment