Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 035A41337B54 for ; Sun, 5 Dec 2010 18:49:54 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 63813-07 for ; Sun, 5 Dec 2010 22:49:47 +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 6CE771336FA7 for ; Sun, 5 Dec 2010 18:49:46 -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 oB5MngHv002141; Sun, 5 Dec 2010 17:49:43 -0500 (EST) To: Imre Oolberg cc: pgsql-admin@postgresql.org Subject: Re: failing to compile v. 9.0.1 on debian squeeze with readline In-reply-to: <4CFC1236.4040909@auul.pri.ee> References: <4CFC1236.4040909@auul.pri.ee> Comments: In-reply-to Imre Oolberg message dated "Mon, 06 Dec 2010 00:29:10 +0200" Date: Sun, 05 Dec 2010 17:49:42 -0500 Message-ID: <2140.1291589382@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: 201012/35 X-Sequence-Number: 36264 Imre Oolberg writes: > $ make > ... > gcc -O2 -Wall -Wmissing-prototypes ... > ... > postmaster/postmaster.o: In function `PostmasterMain': > postmaster.c:(.text+0x420c): undefined reference to `optreset' > tcop/postgres.o: In function `process_postgres_switches': > postgres.c:(.text+0x122b): undefined reference to `optreset' > utils/misc/ps_status.o: In function `set_ps_display': > ps_status.c:(.text+0xd6): undefined reference to `setproctitle' > collect2: ld returned 1 exit status > make[2]: *** [postgres] Error 1 > make[2]: Leaving directory `/opt/postgres/tmp/postgresql-9.0.1/src/backend' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/opt/postgres/tmp/postgresql-9.0.1/src' > make: *** [all] Error 2 > A workaround seems to ./configure with '--without-readline' (and the > above mentioned parameter values get st to 'no') but I would like to ask Maybe you need to lobby the Debian folks to revert to a less broken version of libreadline. It surely has got no business exporting either of those symbols. regards, tom lane