[xml/sgml-pkgs] Bug#801989: libxslt must be linked with libm

Aurelien Jarno aurelien at aurel32.net
Sun Aug 14 20:15:01 UTC 2016


control: severity -1 grave
control: tag -1 + patch

On 2015-10-16 18:17, Max Kellermann wrote:
> Package: libxslt1-dev
> Version: 1.1.28-2+b2
> 
> Various programs fail to link unless they just happen to specify
> "-lm":
> 
>  /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libxslt.so: error: undefined reference to 'pow'
>  /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libxslt.so: error: undefined reference to 'floor'
>  /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libxslt.so: error: undefined reference to 'fmod'

The problem is that libxslt.so is using symbols from libm.so.6 without
being linked with it. This causes two issues:
- The above build failure.
- The symbols are not correctly versioned. This means the latest version
  of the symbols will always be used. This will break if later the glibc
  provide the symbol in a different version.

Both of this issues clearly deserve a severity grave. You will find
attached a patch to drop in debian/patches that fixes the issue.

Aurelien

PS: it would be nice if you can also pass --parallel to the "dh $@
call", that will make the package to build a bit faster.

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien at aurel32.net                 http://www.aurel32.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-Link-with-libm.patch
Type: text/x-diff
Size: 445 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20160814/b3447b76/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20160814/b3447b76/attachment.sig>


More information about the debian-xml-sgml-pkgs mailing list