pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Patrick Welche <prlw1@newn.cam.ac.uk>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-hackers@postgresql.org, nathan wagner <nw@hydaspes.if.org>
Subject: Re: uuid type for postgres
Date: Wed, 7 Sep 2005 15:00:43 -0400
Message-ID: <20050907190043.GG5953@surnet.cl> (raw)
In-Reply-To: <20050907174841.GD590@quartz.itdept.newn.cam.ac.uk>
References: <20050906135057.GA24136@granicus.if.org>
	<7CDBCE29-55BE-4EE3-8868-F50DB1E914F6@refractions.net>
	<20050907051508.GA3572@granicus.if.org>
	<200509070945.17916.josh@agliodbs.com>
	<20050907174841.GD590@quartz.itdept.newn.cam.ac.uk>

On Wed, Sep 07, 2005 at 06:48:41PM +0100, Patrick Welche wrote:
> On Wed, Sep 07, 2005 at 09:45:17AM -0700, Josh Berkus wrote:
> > > Nathan wrote:
> > 
> > > Quite a list.  I wonder what readline is doing there.
> > 
> > Readline is for PSQL command completion and history.  As for the rest, they 
> > are *optional* modules that apparently your RPM builder chose to include; I 
> > build from source and my only dependencies are bison, flex, gcc and perl.
> 
> Still seems odd to me: I would expect psql to have readline, not postgres.

It's an issue with the linker.  I seem to remember that 8.1 uses the
--as-needed flag to ld, which means it will only link the libraries that
each executable actually uses.

Hmm, poking my build, this doesn't seem to be the case:

$ ldd `which postgres`
        linux-gate.so.1 =>  (0xffffe000)
        libz.so.1 => /usr/lib/libz.so.1 (0x41c54000)
        libreadline.so.5 => /lib/libreadline.so.5 (0xb7f51000)
        libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0xb7f23000)
        libresolv.so.2 => /lib/tls/libresolv.so.2 (0x41c6a000)
        libnsl.so.1 => /lib/tls/libnsl.so.1 (0x41c25000)
        libdl.so.2 => /lib/tls/libdl.so.2 (0x4118f000)
        libm.so.6 => /lib/tls/libm.so.6 (0x41153000)
        libc.so.6 => /lib/tls/libc.so.6 (0x41019000)
        libncurses.so.5 => /lib/libncurses.so.5 (0xb7ee0000)
        /lib/ld-linux.so.2 (0x41000000)

This is a fairly recent 8.1, maybe post-beta1.  Not sure what happened.
I certainly don't see the --as-needed in LDFLAGS:

$ pg_config  | grep LDFLA
LDFLAGS = -Wl,-rpath,/pg/install/00orig/lib
LDFLAGS_SL = 

-- 
Alvaro Herrera -- Valdivia, Chile         Architect, www.EnterpriseDB.com
"¿Que diferencia tiene para los muertos, los huérfanos, y aquellos que han
perdido su hogar, si la loca destrucción ha sido realizada bajo el nombre
del totalitarismo o del santo nombre de la libertad y la democracia?" (Gandhi)



view thread (51+ messages)  latest in thread

Message-ID: <20050907190043.GG5953@surnet.cl>
Permalink:  ../20050907190043.GG5953@surnet.cl/
Also on:    postgresql.org/message-id/20050907190043.GG5953@surnet.cl

 · 

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-sql@postgresql.org
  Cc: alvherre@alvh.no-ip.org, prlw1@newn.cam.ac.uk, josh@agliodbs.com, nw@hydaspes.if.org
  Subject: Re: uuid type for postgres
  In-Reply-To: <20050907190043.GG5953@surnet.cl>

* 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