X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 09D73D7E85 for ; Wed, 7 Sep 2005 15:59:52 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 20795-02 for ; Wed, 7 Sep 2005 18:59:49 +0000 (GMT) Received: from mx1.surnet.cl (mx2.surnet.cl [216.155.73.181]) by svr1.postgresql.org (Postfix) with ESMTP id 9650FD7B89 for ; Wed, 7 Sep 2005 15:59:47 -0300 (ADT) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx1.surnet.cl with ESMTP; 07 Sep 2005 14:59:37 -0400 X-IronPort-AV: i="3.96,177,1122868800"; d="scan'208"; a="6357138:sNHT30692280" Received: from alvh.no-ip.org (216.155.85.134) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 4317C634000A5E70; Wed, 7 Sep 2005 14:59:48 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id B9A5FC2DC74; Wed, 7 Sep 2005 15:00:43 -0400 (CLT) Date: Wed, 7 Sep 2005 15:00:43 -0400 From: Alvaro Herrera To: Patrick Welche Cc: Josh Berkus , pgsql-hackers@postgresql.org, nathan wagner Subject: Re: uuid type for postgres Message-ID: <20050907190043.GG5953@surnet.cl> Mail-Followup-To: Patrick Welche , Josh Berkus , pgsql-hackers@postgresql.org, nathan wagner 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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050907174841.GD590@quartz.itdept.newn.cam.ac.uk> User-Agent: Mutt/1.5.10i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.338 required=5 tests=[AWL=-0.488, DNS_FROM_RFC_ABUSE=0.374, DNS_FROM_RFC_POST=1.376, FORGED_RCVD_HELO=0.05, RCVD_IN_NJABL_PROXY=1.026] X-Spam-Level: ** X-Archive-Number: 200509/360 X-Sequence-Number: 72757 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)