tag 667316 patch thanks On Tue, Apr 03, 2012 at 11:11:30PM +0000, Matthias Klose wrote: [...] > configure: error: Could not locate a working Objective-C runtime.
Patch below (tested with GCC 4.7.0, 4.6.2, and 4.4.5). Cheers, Matej
--- openvpn-auth-ldap-2.0.3~/debian/patches/gobjc_4.7_runtime.patch +++ openvpn-auth-ldap-2.0.3/debian/patches/gobjc_4.7_runtime.patch @@ -0,0 +1,56 @@ +Description: Fix build failure with GCC 4.7 + - aclocal.m4 (OD_OBJC_RUNTIME): Check for modern GNU runtime (GCC 4.6+). +Bug-Debian: http://bugs.debian.org/667316 +Author: Matej Vela <v...@debian.org> +Last-Update: 2012-05-20 + +--- a/aclocal.m4 ++++ b/aclocal.m4 +@@ -156,11 +156,20 @@ + AC_LINK_IFELSE([ + AC_LANG_PROGRAM([ + #include <objc/objc.h> ++ #ifdef __GNU_LIBOBJC__ ++ #include <objc/runtime.h> ++ #else + #include <objc/objc-api.h> ++ #endif + ], [ ++ #ifdef __GNU_LIBOBJC__ ++ Class class = objc_lookUpClass("Object"); ++ puts(class_getName(class)); ++ #else + id class = objc_lookup_class("Object"); + id obj = @<:@class alloc@:>@; + puts(@<:@obj name@:>@); ++ #endif + ]) + ], [ + od_cv_objc_runtime_gnu="yes" +--- a/configure ++++ b/configure +@@ -6459,15 +6459,24 @@ + /* end confdefs.h. */ + + #include <objc/objc.h> ++ #ifdef __GNU_LIBOBJC__ ++ #include <objc/runtime.h> ++ #else + #include <objc/objc-api.h> ++ #endif + + int + main () + { + ++ #ifdef __GNU_LIBOBJC__ ++ Class class = objc_lookUpClass("Object"); ++ puts(class_getName(class)); ++ #else + id class = objc_lookup_class("Object"); + id obj = [class alloc]; + puts([obj name]); ++ #endif + + ; + return 0; --- openvpn-auth-ldap-2.0.3~/debian/patches/series +++ openvpn-auth-ldap-2.0.3/debian/patches/series @@ -999,0 +999,1 @@ +gobjc_4.7_runtime.patch