Bug#353693: Looking for a autotools/libtool expert:Unnecessarily linked libraries
Ralf Wildenhues <Ralf.Wildenhues@gmx.de> wrote:
>> No, objdump shows less libraries, but still too much.
>
> Which ones should not be there?
$ objdump -p /sid/usr/bin/pdfetex | grep NEEDED
NEEDED libpng12.so.0
NEEDED libkpathsea.so.4
NEEDED libpoppler.so.0
NEEDED libcairo.so.2
NEEDED libXrender.so.1
NEEDED libX11.so.6
NEEDED libfontconfig.so.1
NEEDED libjpeg.so.62
NEEDED libfreetype.so.6
NEEDED libz.so.1
NEEDED libstdc++.so.6
NEEDED libm.so.6
NEEDED libgcc_s.so.1
NEEDED libc.so.6
At least libcairo is wrong; I think that also libfontconfig, libjpeg,
libfreetype, and maybe libX11 and libXrender are wrong, because
- we don't configure with --with-system-foolib for these libraries
- there's no mention of the strings fontconfig and freetype at all in
the sources related to pdfetex
- jpeg doesn't appear in any pdftex-related Makefile (snippet)
- without checking the sources, I'd be surprised if pdfetex used any X
header files, since it's supposed to be a pure commandline program.
Furthermore, none of these libraries is included in the upstream
tarball, but a static compile of pdftex with the standard upstream
configuration gives:
$ objdump -p /sid/usr/local/teTeX/bin/i686-pc-linux-gnu/pdfetex | grep NEEDED
NEEDED libstdc++.so.6
NEEDED libm.so.6
NEEDED libgcc_s.so.1
NEEDED libc.so.6
Regards, Frank
--
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)
Reply to: