On 2007-05-27 23:28:56 +0200, Aurélien GÉRÔME wrote: > Unfortunately, even though pdftk now builds fine, it crashes at > runtime. > > $ pdftk > libgcj failure: gcj linkage error. > Incorrect library ABI version detected. Aborting.
pdftk in Ubuntu gutsy has the same problem. If my analysis is correct than that's because it uses some local copies of gcc-4.1 files. If I modify the build to not use them (a comment in pdftk/Makefile.Base states that they were introduced as some old version of libgcj doesn't have MD5) pdftk works again. I've attached the changes I did to fix it in Ubuntu. Regards Michael
diff -u pdftk-1.40/debian/patches/00list pdftk-1.40/debian/patches/00list --- pdftk-1.40/debian/patches/00list +++ pdftk-1.40/debian/patches/00list @@ -1,0 +2 @@ +abi-mismatch only in patch2: unchanged: --- pdftk-1.40.orig/debian/patches/abi-mismatch.dpatch +++ pdftk-1.40/debian/patches/abi-mismatch.dpatch @@ -0,0 +1,27 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## abi-mismatch.dpatch by Michael Bienia <[EMAIL PROTECTED]> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix libgcj linkage error about ABI mismatch when running pdftk + [EMAIL PROTECTED]@ +diff -urNad pdftk-1.40~/java_libs/com/lowagie/text/pdf/PdfEncryption.java pdftk-1.40/java_libs/com/lowagie/text/pdf/PdfEncryption.java +--- pdftk-1.40~/java_libs/com/lowagie/text/pdf/PdfEncryption.java 2006-07-27 01:02:28.000000000 +0200 ++++ pdftk-1.40/java_libs/com/lowagie/text/pdf/PdfEncryption.java 2007-09-14 17:34:37.000000000 +0200 +@@ -50,7 +50,7 @@ + + package com.lowagie.text.pdf; + +-import java_local.security.MessageDigest; // ssteward ++import java.security.MessageDigest; // ssteward + import com.lowagie.text.ExceptionConverter; + + /** +diff -urNad pdftk-1.40~/pdftk/Makefile.Debian pdftk-1.40/pdftk/Makefile.Debian +--- pdftk-1.40~/pdftk/Makefile.Debian 2006-09-21 18:36:16.000000000 +0200 ++++ pdftk-1.40/pdftk/Makefile.Debian 2007-09-14 17:33:14.000000000 +0200 +@@ -36,3 +36,4 @@ + + # + include Makefile.Base ++libgcj_local_libs =