On Mon, Jun 10, 2002 at 07:02:14AM -0700, Terry Lambert wrote:
> > one messy and temporary solution is to compile with
> > make CFLAGS=-Wp,-w CXXFLAGS=-Wp,-w
> > which tells gcc to pass -w to the preprocessor, and -w means inhibit
> > all warnings. with this, postgresql compiles and works fine.
> > for 'correct' solution - the configure script for postgresql must be
> > regenerated from configure.in, using the newer autoconf, but I am not
> > sure whether that would be successfull, as there were (AFAIK), some
> > incompatibilities between the two - but i may be wrong.
> > anyway, HTH
> 
> That's ugly.
> 
> Since it's jamming in includes anyway:
> 
>               By using both `-nostdinc' and `-I-', you can  limit
>               the include-file search file to only those directo-
>               ries you specify explicitly.
> 
> e.g.: you should be able to get it to work with warnings fully
> enabled, and explicit use of system include paths in the Makefile.
> 
> This might be a more permanent fix...

*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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to