Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 22BA01337B4E for ; Fri, 25 Feb 2011 01:45:17 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 69749-04 for ; Fri, 25 Feb 2011 05:45:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 628E11337B4A for ; Fri, 25 Feb 2011 01:45:09 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p1P5j8YF010894; Fri, 25 Feb 2011 00:45:08 -0500 (EST) To: Stephan Doliov cc: pgsql-admin@postgresql.org Subject: Re: questions about the configure script for building postgres 9.0.3 from source In-reply-to: <633729.22152.qm@web38606.mail.mud.yahoo.com> References: <633729.22152.qm@web38606.mail.mud.yahoo.com> Comments: In-reply-to Stephan Doliov message dated "Thu, 24 Feb 2011 12:59:53 -0800" Date: Fri, 25 Feb 2011 00:45:08 -0500 Message-ID: <10893.1298612708@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/223 X-Sequence-Number: 36862 Stephan Doliov writes: > I trolled the archives as I was having difficulty in building Postgres 9.0.3 > from source. I was running configure with the following options (the pasted in > text of this I had wrapped in a shell script). I apologize in advance that > setting up the question takes a bit of context. > ./configure CFLAGS='-O2 -I /usr/local/include:/usr/include -L > /usr/local/lib64:/usr/local/lib:/usr/lib64:/usr/lib' --prefix=/usr/local > --enable-nls --enable-profiling --with-wal-segsize=64 --with-perl > --with-python --with-pam --with-ldap --with-openssl --with-ossp-uuid > --with-libxml --with-libxslt --with-system-tzdata=/usr/share/zoneinfo > --with-libs=/usr/local/lib64:/usr/local/lib:/usr/lib64:/usr/lib:/usr/apache2/lib > --with-includes=/usr/local/include:/usr/include > and I was constantly receiving the error that libreadline was not installed, > although I had personally installed it, verified its installation and ensured > that ldconfig could find it. Are you sure it's complaining about readline's library, and not readline's header files? That rather random --with-libs list draws my suspicion, particularly since it doesn't parallel your --with-includes list. > Upon inspecting config.log, I found many references to an error in conftest.c, > where various ifndef macros were suggesting a call to "choke me", which is both > invalid syntax (no semi colon and of course choke is not defined either in any > header files. That's pretty normal --- configure likes to try to compile things like #ifdef SYMBOL choke me #endif to find out whether SYMBOL is defined. (If it is, this'll draw a compile error, else not.) Elegance is not really something autoconf puts high priority on ... > So my questions are: > 1) upon not finding libs such as xml, xslt or the msgfmt binary, is the > configure script set (perhaps by bug) to report that libreadline is not > installed (when in fact it is?). No, I doubt that. > Another way of phrasing this question: does > configure misreport that which is missing? And that too. You'd need to show some actual evidence, and not a highly abstracted summary, to convince anyone that you've found a configure bug. regards, tom lane