From owner-freebsd-current Mon Jun 10 4:46:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from daemonz.org (TK212017094177.teleweb.at [212.17.94.177]) by hub.freebsd.org (Postfix) with SMTP id BA26437B413 for ; Mon, 10 Jun 2002 04:45:56 -0700 (PDT) Received: (qmail 91991 invoked by uid 1001); 10 Jun 2002 11:51:50 -0000 Date: Mon, 10 Jun 2002 13:51:50 +0200 From: Stanislav Grozev To: Shizuka Kudo Cc: freebsd-current@freebsd.org Subject: Re: My postgresql7 not working for new gcc Message-ID: <20020610115150.GA91765@meerkat.dungeon> References: <20020601195008.GJ17045@elvis.mu.org> <20020605113540.62177.qmail@web11402.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020605113540.62177.qmail@web11402.mail.yahoo.com> User-Agent: Mutt/1.3.99i 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 On Wed, Jun 05, 2002 at 04:35:40AM -0700, Shizuka Kudo wrote: > checking for readline/readline.h... no > checking for readline.h... no > checking for readline/history.h... no > checking for history.h... no > checking for openssl/ssl.h... no > configure: error: header file is > required for OpenSSL > actually that is a problem with the autoconf version used by postgresql. the new gcc 3.1 gives out a warning if one of the system include directories is also given as a -I argument (in this case -I/usr/include). the autoconf, when compiling the test program, mistakenly interprets this warning as an error, and decides that the feature is not present, thus giving that openssl/ssl.h is not present, and in fact it is. 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 -tacho -- [a lie is my shield] | [http://daemonz.org/ || tacho@daemonz.org] 0x44fc3339 || [02b5 798b 4bd1 97fb f8db 72e4 dca4 be03 44fc 3339] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message