pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Imre Oolberg <imre@auul.pri.ee>
To: pgsql-admin@postgresql.org
Subject: failing to compile v. 9.0.1 on debian squeeze with readline
Date: Mon, 06 Dec 2010 00:29:10 +0200
Message-ID: <4CFC1236.4040909@auul.pri.ee> (raw)

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.



view thread (7+ messages)  latest in thread

Message-ID: <4CFC1236.4040909@auul.pri.ee>
Permalink:  ../4CFC1236.4040909@auul.pri.ee/
Also on:    postgresql.org/message-id/4CFC1236.4040909@auul.pri.ee

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: imre@auul.pri.ee
  Subject: Re: failing to compile v. 9.0.1 on debian squeeze with readline
  In-Reply-To: <4CFC1236.4040909@auul.pri.ee>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox