Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2007 03:45:26 GMT
From:      Landon Fuller <landonf@threerings.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   gnu/114517: Missing objc/objc-decls.h header
Message-ID:  <200707120345.l6C3jQAA047825@www.freebsd.org>
Resent-Message-ID: <200707120350.l6C3o49j069596@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         114517
>Category:       gnu
>Synopsis:       Missing objc/objc-decls.h header
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 12 03:50:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Landon Fuller
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
Three Rings Design, Inc.
>Environment:
System: FreeBSD lfreebsd7.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jul 11 13:06:03 PDT 2007 root@lfreebsd7.localdomain:/usr/obj/usr/src/sys/GENERIC i386
>Description:
GCC 4.2 includes a new Objective-C header, "objc-decls.h", that is not installed on 7.0-CURRENT.
>How-To-Repeat:
landonf@lfreebsd7:~> cat objc.m 
#include <objc/objc.h>
#include <objc/objc-api.h>

int main (int argc, const char *argv[]) {
        id class = objc_lookup_class("Object");
        return 0;
}

landonf@lfreebsd7:~> gcc objc.m -o test -lobjc                
In file included from objc.m:2:
/usr/include/objc/objc-api.h:33:24: error: objc-decls.h: No such file or directory
>Fix:
--- gnu/lib/libobjc/Makefile.orig	2007-07-11 20:36:28.000000000 -0700
+++ gnu/lib/libobjc/Makefile	2007-07-11 20:37:07.000000000 -0700
@@ -13,7 +13,7 @@
 	nil_method.c NXConstStr.m Object.m objects.c Protocol.m sarray.c \
 	selector.c sendmsg.c thr.c thr-objc.c exception.c
 
-INCS=	encoding.h hash.h objc-api.h objc-list.h objc.h runtime.h \
+INCS=	encoding.h hash.h objc-api.h objc-decls.h objc-list.h objc.h runtime.h \
 	sarray.h thr.h typedstream.h NXConstStr.h Object.h Protocol.h
 INCSDIR=${INCLUDEDIR}/objc
 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707120345.l6C3jQAA047825>