From owner-freebsd-gnome@FreeBSD.ORG Tue Jun 12 21:05:39 2012 Return-Path: Delivered-To: gnome@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72567106566B; Tue, 12 Jun 2012 21:05:39 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) by mx1.freebsd.org (Postfix) with ESMTP id 344FE8FC1C; Tue, 12 Jun 2012 21:05:39 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id q5CL5ROG017106; Tue, 12 Jun 2012 14:05:30 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <201206122105.q5CL5ROG017106@gw.catspoiler.org> Date: Tue, 12 Jun 2012 14:05:26 -0700 (PDT) From: Don Lewis To: mezz@FreeBSD.org In-Reply-To: <201205201627.q4KGRscj068314@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: gnome@FreeBSD.org Subject: Re: ports/167989: databases/evolution-data-server build fails on FreeBSD 10 with new Heimdal X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2012 21:05:39 -0000 On 20 May, mezz@FreeBSD.org wrote: > Synopsis: databases/evolution-data-server build fails on FreeBSD 10 with new Heimdal > > State-Changed-From-To: open->closed > State-Changed-By: mezz > State-Changed-When: Sun May 20 16:27:40 UTC 2012 > State-Changed-Why: > Committed, thanks! > > http://www.freebsd.org/cgi/query-pr.cgi?pr=167989 The patch to the configure script didn't work for me. The problem is that the extra include files weren't pulled in because they were inside a #ifdef/#endif block that referenced an undefined symbol. For some reason this sort of thing is done in a number of other places in configure, but it works there because they only include the header being tested, which ac_fn_c_check_header_compile also includes unconditionally. The following patch to the patch works for me: Index: files/patch-configure =================================================================== RCS file: /home/ncvs/ports/databases/evolution-data-server/files/patch-configure,v retrieving revision 1.13 diff -u -r1.13 patch-configure --- files/patch-configure 20 May 2012 16:27:31 -0000 1.13 +++ files/patch-configure 12 Jun 2012 15:40:32 -0000 @@ -1,5 +1,5 @@ ---- configure.orig 2012-05-19 23:39:42.000000000 -0500 -+++ configure 2012-05-19 23:42:47.000000000 -0500 +--- configure.orig 2010-11-14 22:59:14.000000000 -0800 ++++ configure 2012-06-12 08:40:11.000000000 -0700 @@ -14174,6 +14174,14 @@ $as_echo "#define _WIN32_WINNT 0x501" >>confdefs.h @@ -15,21 +15,27 @@ *) os_win32='no' NO_UNDEFINED='' -@@ -16196,6 +16204,8 @@ +@@ -16195,9 +16203,8 @@ + fi - ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" " #if HAVE_ET_COM_ERR_H -+ #include +- ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" " #if HAVE_ET_COM_ERR_H +- #include +- #endif ++ ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" " #include + #include - #include - #endif -@@ -16208,6 +16218,8 @@ + " + if test "x$ac_cv_header_et_com_err_h" = x""yes; then : +@@ -16207,9 +16214,8 @@ + fi - ac_fn_c_check_header_compile "$LINENO" "com_err.h" "ac_cv_header_com_err_h" " #if HAVE_COM_ERR_H -+ #include +- ac_fn_c_check_header_compile "$LINENO" "com_err.h" "ac_cv_header_com_err_h" " #if HAVE_COM_ERR_H +- #include +- #endif ++ ac_fn_c_check_header_compile "$LINENO" "com_err.h" "ac_cv_header_com_err_h" " #include + #include - #include - #endif + " + if test "x$ac_cv_header_com_err_h" = x""yes; then :