From owner-freebsd-current Mon Jun 10 11:10:51 2002 Delivered-To: freebsd-current@freebsd.org Received: from web11405.mail.yahoo.com (web11405.mail.yahoo.com [216.136.131.235]) by hub.freebsd.org (Postfix) with SMTP id EB15837B66F for ; Mon, 10 Jun 2002 11:09:39 -0700 (PDT) Message-ID: <20020610180939.94228.qmail@web11405.mail.yahoo.com> Received: from [203.198.23.169] by web11405.mail.yahoo.com via HTTP; Mon, 10 Jun 2002 11:09:39 PDT Date: Mon, 10 Jun 2002 11:09:39 -0700 (PDT) From: Shizuka Kudo Subject: Re: My postgresql7 not working for new gcc To: obrien@freebsd.org, Terry Lambert Cc: Stanislav Grozev , Shizuka Kudo , freebsd-current@freebsd.org In-Reply-To: <20020610083921.A37639@dragon.nuxi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --- David O'Brien wrote: > > *sigh*, why not a *real* fix? > > --- configure.in.orig Thu Sep 27 01:03:56 2001 > +++ configure.in Mon Apr 29 13:20:27 2002 > @@ -200,7 +200,9 @@ > done > if test "$ac_found_openssl_lib_dir" != "no"; then > echo "found in $ac_found_openssl_lib_dir" > - INCLUDES="-I$ac_found_openssl_inc_dir $INCLUDES" > + if test "$ac_found_openssl_inc_dir" != > "/usr/include"; then > + INCLUDES="-I$ac_found_openssl_inc_dir > $INCLUDES" > + fi > DEFINES="-DOPENSSL $DEFINES" > else > echo "not found." > > > You'll note that they bother with this kind of check > for other headers, > but for some reason didn't consider it for openssl > headers. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of > the message Hi David, Which version of postgresql that you are using? I have cvsupped the postgresql7 ports and didn't find what you referred here. However, I didn't manage to patch "configure" not to include "/usr/include" based on your advice. Here's the patch if anyone is interested. Thanks --- configure.orig Mon Mar 18 23:04:09 2002 +++ configure Mon Jun 10 18:06:57 2002 @@ -1697,7 +1697,9 @@ # SRCH_INC comes from the template file for dir in $with_includes $SRCH_INC; do if test -d "$dir"; then - INCLUDES="$INCLUDES -I$dir" + if test "$dir" != "/usr/include"; then + INCLUDES="$INCLUDES -I$dir" + fi else echo "configure: warning: *** Include directory $dir does not exist." 1>&2 fi @@ -2008,7 +2010,9 @@ if test -d "$krb4_prefix/include"; then - INCLUDES="$INCLUDES -I$krb4_prefix/include" + if test "$krb4_prefix/include" != "/usr/include"; then + INCLUDES="$INCLUDES -I$krb4_prefix/include" + fi fi if test -d "$krb4_prefix/lib"; then LIBDIRS="$LIBDIRS -L$krb4_prefix/lib" @@ -2053,7 +2057,9 @@ if test -d "$krb5_prefix/include"; then - INCLUDES="$INCLUDES -I$krb5_prefix/include" + if test "$krb5_prefix/include" != "/usr/include"; then + INCLUDES="$INCLUDES -I$krb5_prefix/include" + fi fi if test -d "$krb5_prefix/lib"; then LIBDIRS="$LIBDIRS -L$krb5_prefix/lib" @@ -2158,7 +2164,9 @@ if test -d "${openssl_prefix}/include" ; then - INCLUDES="$INCLUDES -I${openssl_prefix}/include" + if test "${openssl_prefix}/include" != "/usr/include"; then + INCLUDES="$INCLUDES -I${openssl_prefix}/include" + fi fi if test -d "${openssl_prefix}/lib" ; then LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib" __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message