Rafael Garcia-Suarez <[EMAIL PROTECTED]> writes:
>On 7/5/05, Nick Ing-Simmons <[EMAIL PROTECTED]> wrote:
>> Probing for existing libz (shared or not) would help those of us
>> the embed perl in other things which already link zlib.
>
>But IIUC zlib is embedded in a shared extension, not in perl itself.

Compress::Zlib is a perl extension.
It is linked against libz.a/libz.so on UNIX or zlib.lib/zlib.dll on Win32.

If the application which embeds perl _already_ links to libz.so 
then when Compress::Zlib is loaded into the embedded perl there are 
two copies of libz.so (or zlib.dll) referenced and that is "harmless"
(except on old BSD SunOS4).

But if Compress::Zlib links to private "zlib" code or libz.a then there 
are two copies of code and associated symbols in the application and 
that can cause confusion at best and bugs at worst.

Reply via email to