Re: Use of zlib

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Thomas Hallgren <thhal(at)mailblocks(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Use of zlib
Date: 2004-09-26 04:28:15
Message-ID: Pine.LNX.4.44.0409260625340.9559-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, 25 Sep 2004, Bruce Momjian wrote:

> I am confused. I just checked my backend binary and I don't see any
> unusual libs required:
>
> $ ldd postgres
> libz.so => /usr/lib/libz.so (0x2833f000)
> libncurses.so.5 => /shlib/libncurses.so.5 (0x2834e000)
> libdl.so => /shlib/libdl.so (0x2838c000)
> libm.so => /shlib/libm.so.0.0 (0x2838f000)
> libgcc.so.1 => /shlib/libgcc.so.1 (0x283a0000)
> libc.so.2 => /shlib/libc.so.2 (0x283ac000)
>
> The libncurses is a little unusual but I don't see libreadline in there
> even though it is on the link line.
>
> Are some OS's adding libs that aren't required by the binary?

This is the output in Fedora Core 2, and it includes readline:

$ ldd /usr/bin/postgres
linux-gate.so.1 => (0x00240000)
libpam.so.0 => /lib/libpam.so.0 (0x00cf1000)
libssl.so.4 => /lib/libssl.so.4 (0x0014e000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x00241000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x0052a000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00e56000)
libz.so.1 => /usr/lib/libz.so.1 (0x00aca000)
libreadline.so.4 => /usr/lib/libreadline.so.4 (0x00111000)
libtermcap.so.2 => /lib/libtermcap.so.2 (0x00f25000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00406000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00f8a000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00215000)
libdl.so.2 => /lib/libdl.so.2 (0x00908000)
libm.so.6 => /lib/tls/libm.so.6 (0x008a5000)
libc.so.6 => /lib/tls/libc.so.6 (0x00592000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00a57000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00ccd000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x004ca000)

--
/Dennis Björklund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dennis Bjorklund 2004-09-26 04:57:59 Get rid of Money
Previous Message Stephan Szabo 2004-09-26 03:11:41 Re: How to add locale support for each column?