Package Details: pdftk 2.02-12

Git Clone URL: https://aur.archlinux.org/pdftk.git (read-only)
Package Base: pdftk
Description: Pdftk is a simple tool for doing everyday things with PDF documents
Upstream URL: http://www.pdfhacks.com/pdftk
Licenses: GPL
Submitter: Snowman
Maintainer: valandil
Last Packager: valandil
Votes: 398
Popularity: 1.372442
First Submitted: 2006-04-29 04:57
Last Updated: 2017-06-26 11:02

Latest Comments

mkoloberdin commented on 2017-06-26 21:45

I've had to

ln -s /usr/bin/gij-6.3 /usr/bin/gij

in order to get it compiled. (after looking at the change history of the package I guess setting a corresponding env variable would achieve the same thing)

And the resulting binary does not run without LD_LIBRARY_PATH=/lib/gcc/x86_64-pc-linux-gnu/6.3.1
("pdftk: error while loading shared libraries: libgcj.so.17: cannot open shared object file: No such file or directory")

Please advise what is the most proper way to resolve this.

valandil commented on 2017-06-26 11:04

Oops, sorry, I forgot to push the new update! It should work now. ^_^

bitsfritz commented on 2017-06-26 11:00

stops compiling.
gcc-gcj no longer available, instead should be replaced by gcc63-gcj?

valandil commented on 2016-09-27 13:08

I can't reproduce this. I don't have libiconv installed. I'll try to look into the matter.

thx1138 commented on 2016-09-25 01:56

Installing libiconv 1.14-1 and adding "-liconv" to Makefile.Arch:
...
export LDLIBS= -lgcj -liconv

seems to fix the problem.

thx1138 commented on 2016-09-25 01:30

With:
gcc 6.2.1-1
gcc-gcj 6.2.1-1
gcc-gcj-ecj 4.9-1

pdftk build ends with:

g++ -O2 -fPIC attachments.o report.o passwords.o pdftk.o /var/build/pdftk/src/pdftk-2.02-dist/pdftk/../java/java_lib.o -lgcj -o pdftk
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/../../../../lib/libgcj.so: undefined reference to `libiconv_open'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/../../../../lib/libgcj.so: undefined reference to `libiconv_close'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/../../../../lib/libgcj.so: undefined reference to `libiconv'
collect2: error: ld returned 1 exit status
make: *** [Makefile.Base:49: pdftk] Error 1

valandil commented on 2016-09-09 15:06

@JanusDC, gcc was updated about 12 hours ago. I just haven't had time to update gcc-gcj.

JanusDC commented on 2016-09-09 15:03

I am experiencing the same issue as bakgwailo. I have gcc-gcj 6.1.1 and gcc 6.2.1. I do not see gcc 6.1.1 in the repo, nor AUR, and neither gcc-gcj 6.2.1.

valandil commented on 2016-09-01 11:22

@bakgwailo Make sure that your gcc and gcc-gcj versions match.

bakgwailo commented on 2016-09-01 03:30

Getting a compile error:

g++ -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers -fPIC -DPDFTK_VER=\"2.02\" -O2 -fPIC -I/tmp/yaourt-tmp-joe/aur-pdftk/src/pdftk-2.02-dist/pdftk/../java pdftk.cc -c
pdftk.cc:33:21: fatal error: gcj/cni.h: No such file or directory
#include <gcj/cni.h>
^
compilation terminated.
make: *** [Makefile.Base:46: pdftk.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build pdftk.
==> Restart building pdftk ? [y/N]

All comments