ports/151773: devel/ORBit hangs in configure on amd64 -current

Anonymous swell.k at gmail.com
Fri Oct 29 16:40:17 UTC 2010


The following reply was made to PR ports/151773; it has been noted by GNATS.

From: Anonymous <swell.k at gmail.com>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: ports/151773: devel/ORBit hangs in configure on amd64 -current
Date: Fri, 29 Oct 2010 20:34:58 +0400

 Hmm, ac_cv_cpp_nostdinc check is confusing.
 
 %% libIDL/acinclude.m4
 AC_DEFUN(AC_CPP_NOSTDINC,
        [AC_CACHE_CHECK([how to ignore standard include path],
                ac_cv_cpp_nostdinc,
                [saved_CPPFLAGS="$CPPFLAGS"
                CPPFLAGS="$CPPFLAGS -I-"
                AC_TRY_CPP(,ac_cv_cpp_nostdinc=-I-,
                        [CPPFLAGS="$saved_CPPFLAGS -I"
                        AC_TRY_CPP(,ac_cv_cpp_nostdinc=-I,)])
                CPPFLAGS="$saved_CPPFLAGS"])
        AC_DEFINE_UNQUOTED(CPP_NOSTDINC, "$ac_cv_cpp_nostdinc")])
 %%
 
 And it hangs like following
 
   $ cpp -I conftest.c
   load: 0.07  cmd: cc1 50864 [ttyin] 0.86r 0.00u 0.00s 0% 10044k
 
 Below is my guess for a fix.
 
 --- a.diff begins here ---
 Index: devel/ORBit/files/patch-libIDL::configure
 ===================================================================
 RCS file: /a/.cvsup/ports/devel/ORBit/files/patch-libIDL::configure,v
 retrieving revision 1.2
 diff -u -p -r1.2 patch-libIDL::configure
 --- devel/ORBit/files/patch-libIDL::configure	30 Jan 2007 03:31:47 -0000	1.2
 +++ devel/ORBit/files/patch-libIDL::configure	29 Oct 2010 16:22:01 -0000
 @@ -1,5 +1,40 @@
  --- libIDL/configure.orig	Thu Jun  6 07:27:28 2002
  +++ libIDL/configure	Mon Jan 29 22:21:58 2007
 +@@ -2965,10 +2965,9 @@ if test "${ac_cv_cpp_nostdinc+set}" = se
 +   echo $ECHO_N "(cached) $ECHO_C" >&6
 + else
 +   saved_CPPFLAGS="$CPPFLAGS"
 +-               CPPFLAGS="$CPPFLAGS -I-"
 ++               CPPFLAGS="$CPPFLAGS -nostdinc"
 +                cat >conftest.$ac_ext <<_ACEOF
 + #line 2970 "configure"
 +-#include "confdefs.h"
 + 
 + _ACEOF
 + if { (eval echo "$as_me:2974: \"$ac_cpp conftest.$ac_ext\"") >&5
 +@@ -2988,11 +2987,11 @@ else
 +   ac_cpp_err=yes
 + fi
 + if test -z "$ac_cpp_err"; then
 +-  ac_cv_cpp_nostdinc=-I-
 ++  ac_cv_cpp_nostdinc=-nostdinc
 + else
 +   echo "$as_me: failed program was:" >&5
 +   cat conftest.$ac_ext >&5
 +-  CPPFLAGS="$saved_CPPFLAGS -I"
 ++  CPPFLAGS="$saved_CPPFLAGS"
 +                        cat >conftest.$ac_ext <<_ACEOF
 + #line 2997 "configure"
 + #include "confdefs.h"
 +@@ -3015,7 +3014,7 @@ else
 +   ac_cpp_err=yes
 + fi
 + if test -z "$ac_cpp_err"; then
 +-  ac_cv_cpp_nostdinc=-I
 ++  ac_cv_cpp_nostdinc=-I-
 + else
 +   echo "$as_me: failed program was:" >&5
 +   cat conftest.$ac_ext >&5
  @@ -5915,7 +5915,7 @@
     ;;
   
 --- a.diff ends here ---


More information about the freebsd-gnome mailing list