Bug#338313: [Pkg-openssl-devel] Bug#338313: zlib wanted when building
against openssl
Kurt Roeckx
kurt at roeckx.be
Wed Nov 9 19:56:04 UTC 2005
severity 338313 serious
thanks
On Wed, Nov 09, 2005 at 12:45:53PM +0000, Alex Hudson wrote:
> Package: libssl-dev
> Version: 0.9.8a-3
>
> The package libssl0.9.8 in testing/unstable has a new dependency on
> zlib1g which isn't present in libssl0.9.7 in stable. When compiling
> software against the matching libssl-dev, autotools seems to add -lz
> into the needed openssl flags, causing bugs such as #337873 (this bug
> was caused by a unrelated NMU, which happened to take place after libssl
> was updated).
>
> Now, given the software being compiled (hula, in this case) doesn't have
> a dependency on zlib, -lz shouldn't be being added - you shouldn't need
> to link to zlib in order to link to openssl. So, I'm assuming this is a
> shlibs problem on libssl-dev?
This seems to be cause by pkg-config, who think it's a good idea to
link to all libraries.
Adding a Depends from libssl-dev to libz-dev should fix
this, since this is atleast required for static linking, and as
long as we support static linking this is needed.
But the proper fix is to generate .pc files that don't tell you
to link to -lz for shared linking.
Kurt
More information about the Pkg-openssl-devel
mailing list