From owner-freebsd-current Mon Jun 10 7: 4: 3 2002 Delivered-To: freebsd-current@freebsd.org Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id B428A37B40A for ; Mon, 10 Jun 2002 07:03:56 -0700 (PDT) Received: from pool0033.cvx22-bradley.dialup.earthlink.net ([209.179.198.33] helo=mindspring.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17HPlx-0001zp-00; Mon, 10 Jun 2002 07:03:54 -0700 Message-ID: <3D04B166.950171E2@mindspring.com> Date: Mon, 10 Jun 2002 07:02:14 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Stanislav Grozev Cc: Shizuka Kudo , freebsd-current@freebsd.org Subject: Re: My postgresql7 not working for new gcc References: <20020601195008.GJ17045@elvis.mu.org> <20020605113540.62177.qmail@web11402.mail.yahoo.com> <20020610115150.GA91765@meerkat.dungeon> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Stanislav Grozev wrote: > 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 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... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message