[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Looking for a autotools/libtool expert: Unnecessarily linked libraries

On Thu, Mar 02, 2006 at 01:14:54PM +0100, Frank Küster wrote:
> tags 353693 help
> thanks

> The Problem:

> - Binaries in the tetex-bin package are unnecessarily linked against
>   libraries they do not use directly, but only indirectly through other
>   libraries [1].  

> - The solution described at [2] doesn't work, probably because the
>   package doesn't use automake.

> You:

> - Have some knowledge of the internal workings of autotools and libtool,
>   or

> - You want to take the opportunity to finally learn about these
>   internals

> - You have some time left 

> - You want to have fun debugging this issue, which isn't an important
>   problem now, but might get really annoying in the future

Your tests for whether the binary is linked correctly are broken.  ldd is
recursive, and will always show the dependencies of libpoppler in its
output, regardless of whether your binary is linked to those dependencies

The test you want is "objdump -p /usr/bin/pdfetex |grep NEEDED".

For me, running the commands

  cd texk
  libtoolize -f -c
  cp /usr/share/aclocal/libtool.m4 libtool.m4

works, after editing kpathsea/withenable.ac to not try to use
AM_MAINTAINER_MODE (obviously irrelevant if you're not using automake). 
This eliminates dependencies on libcairo.so.2, libXrender.so.1, and
libX11.so.6 -- the rest of the dependencies seem to come from somewhere
other than libpoppler.

> Looking forward to receiving your application, including a short,
> handwritten resume and desired salary ;-),

I'm not picky about salary, but I want a corner office with a view.

Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@debian.org                                   http://www.debian.org/

Attachment: handwritten_resume.pdf
Description: Adobe PDF document

Attachment: signature.asc
Description: Digital signature

Reply to: