pg.ddx.io pgsql-hackers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Thomas Hallgren <thhal@mailblocks.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Use of zlib
Date: Fri, 24 Sep 2004 10:12:59 -0400
Message-ID: <41542B6B.3080607@dunslane.net> (raw)
In-Reply-To: <ciuafp$n4u$1@sea.gmane.org>
References: <ciuafp$n4u$1@sea.gmane.org>
Thomas Hallgren wrote:
> Problem:
> PL/Java use a JVM. On some platforms and with some JVM's (Sun's in
> particular) a libzip.so is bundled that contains a 1.1.3 version of
> functions also provided in zlib (why they do this is beyond me, but
> they do so I'll have to live with it). PostgreSQL is linked with zlib
> by default. This resuls in a conflict which resuls in a JVM crash.
>
> I can circumvein this crash by using LD_PRELOAD to force a load of the
> JVM bundled libzip.so but I suspect that might result in a crash as
> soon as PostgreSQL calls on zlib to do something. It's of course
> possible to configure postgresql with --without-zlib also provided you
> have accesst o the source.
>
> Question:
> From what I can understand from the documentation, the only utility in
> PostgreSQL that actually uses zlib is pg_dump? If so, why is the
> postgres process linked with -lz?
>
>
I did a small experiment by installing binutils 2.15 and adding
-Wl,--as-needed to the LDFLAGS, as Tom had suggested might be useful.
This seemed to work quite well and trimmed back the needed libs quite a
bit. However, when you configure --with-openssl, libz is again linked in.
Not sure where that leaves us.
cheers
andrew
view thread (14+ messages) latest in thread
Message-ID: <41542B6B.3080607@dunslane.net> Permalink: ../41542B6B.3080607@dunslane.net/ Also on: postgresql.org/message-id/41542B6B.3080607@dunslane.net ·
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-hackers@postgresql.org Cc: andrew@dunslane.net, thhal@mailblocks.com Subject: Re: Use of zlib In-Reply-To: <41542B6B.3080607@dunslane.net> * 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