Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 753FE1337B67 for ; Sun, 5 Dec 2010 18:37:55 -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 58409-09 for ; Sun, 5 Dec 2010 22:37:49 +0000 (UTC) X-Greylist: delayed 00:08:20.191783 by SQLgrey-1.7.6 Received: from smtp1a.aso.ee (smtp1a.aso.ee [213.184.32.86]) by mail.postgresql.org (Postfix) with ESMTP id 1B0011337B56 for ; Sun, 5 Dec 2010 18:37:47 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1a.aso.ee (Postfix) with ESMTP id ED2754D8EB for ; Mon, 6 Dec 2010 00:29:25 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at smtp1a.avalik.kit Received: from smtp1a.aso.ee ([127.0.0.1]) by localhost (smtp1a.avalik.kit [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QR5kBsNsO1Vg for ; Mon, 6 Dec 2010 00:29:25 +0200 (EET) Received: from [172.19.10.10] (unknown [172.19.10.10]) by smtp1a.aso.ee (Postfix) with ESMTP id D24FD4D8E7 for ; Mon, 6 Dec 2010 00:29:25 +0200 (EET) Message-ID: <4CFC1236.4040909@auul.pri.ee> Date: Mon, 06 Dec 2010 00:29:10 +0200 From: Imre Oolberg User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: failing to compile v. 9.0.1 on debian squeeze with readline Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201012/34 X-Sequence-Number: 36263 Hi! I am trying to compile PostgreSQL v. 9.0.1 on coming Debian Squeeze (as installed with Debian Installer 6.0 Beta1 release, http://www.debian.org/devel/debian-installer/) amd64 doing following steps 1. install required dependecies (i have done similarly on debian lenny like apt-get build-dep postgresql-8.3 and compiling successfully v. 8.4.5) # apt-get build-dep postgresql-8.4 2. run configure $ ./configure --prefix=/tmp/postgresql 1>/tmp/1.log 2>/tmp/2.log 3. check sensitive parameters' values $ egrep "for optreset|for setproctitle" /tmp/1.log checking for setproctitle... yes checking for optreset... yes 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 1. does leaving readline out affect only client side, i.e. psql program from the result of the compilation 2. if it is possible to use PG v. 9.x on Debian Squeeze while having PG compiled with readline support (or something functionally similar) I am not sure when exactly new behavior came about but sometimes this summer it was possible to have Debian Squeeze of that time and v. 9. beta compiled with readline successfully. Best regards, Imre PS The same happens with v. 9.1alpha2.