Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 32ACC1337B5B for ; Mon, 6 Dec 2010 15:38:48 -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 94959-10 for ; Mon, 6 Dec 2010 19:38:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mail.postgresql.org (Postfix) with SMTP id 767E91337B2F for ; Mon, 6 Dec 2010 15:38:35 -0400 (AST) Received: (qmail invoked by alias); 06 Dec 2010 19:38:33 -0000 Received: from a88-115-218-165.elisa-laajakaista.fi (EHLO [10.0.0.101]) [88.115.218.165] by mail.gmx.net (mp055) with SMTP; 06 Dec 2010 20:38:33 +0100 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX19A46ohrD1Atz/RU3Q7/QhD6rat44z+O+GjlM3GHg cHKEJ8NySG7Qrr Subject: Re: failing to compile v. 9.0.1 on debian squeeze with readline From: Peter Eisentraut To: Imre Oolberg Cc: pgsql-admin@postgresql.org In-Reply-To: <4CFC1236.4040909@auul.pri.ee> References: <4CFC1236.4040909@auul.pri.ee> Content-Type: text/plain; charset="UTF-8" Date: Mon, 06 Dec 2010 21:38:31 +0200 Message-ID: <1291664311.10677.32.camel@vanquo.pezone.net> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/46 X-Sequence-Number: 36275 On mån, 2010-12-06 at 00:29 +0200, Imre Oolberg wrote: > 4. compile > > $ 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 I compile PostgreSQL on Debian squeeze about 10 times a day and I have never seen that. Could you show the output of dpkg -l \*readline\*