2014.10.02 12:04 "[Tiff] Vulnerability CVE-2010-2596", by Petr Hracek

2014.10.07 20:37 "Re: [Tiff] build a static tiff2pdf", by Joel Costigliola

Hi Bob

Using your suggestion did not solve the problem unfortunately but your help is appreciated.

I know building static binaries is not standard but in my case it makes sense, I'm writing software for clinicians that need to see lab results in TIFF format.

As we don't have a TIFF viewer in our application we convert tiff to pdf, we want static binaries to ease our software installation by not having to install the required shared libraries in each target systems.

I need now to find the correct option to build a static tiff2pdf binary, I already tried ' LDFLAGS=-static' without success.



From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Sent: Wednesday, 8 October 2014 03:38 a.m.
To: Joel Costigliola
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] build a static tiff2pdf

On Tue, 7 Oct 2014, Joel Costigliola wrote:

> Hey,
> I'm trying to build a static binaries, to embedd tiff2pdf in my java application.
> I'm running Ubuntu 14.04, I have been able to build a tiff2pdf binary using shared libraries but I failed to build a
> static one.

You don't really want to build a static libtiff. Modern systems
depend on shared libraries so that binaries can run on multiple
systems. The only library which looks like a problem in your linkage
is libjpeg.so.7.

Perhaps using

   ./configure LIBS='/usr/lib/x86_64-linux-gnu/libjpeg.a'

(adapted for your system) might help with the JPEG linkage problem.

Otherwise you will need to learn about exotic linker options.

Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/