Package Details: pdftk 2.02-11

Git Clone URL: (read-only)
Package Base: pdftk
Description: Pdftk is a simple tool for doing everyday things with PDF documents
Upstream URL:
Licenses: GPL
Submitter: Snowman
Maintainer: valandil
Last Packager: valandil
Votes: 396
Popularity: 6.183099
First Submitted: 2006-04-29 04:57
Last Updated: 2016-08-31 15:20

Dependencies (2)

Required by (7)

Sources (2)

Latest Comments

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

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/ undefined reference to `libiconv_open'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/../../../../lib/ undefined reference to `libiconv_close'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/../../../../lib/ 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 -c 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().
==> ERROR: Makepkg was unable to build pdftk.
==> Restart building pdftk ? [y/N]

valandil commented on 2016-08-31 15:13

I can't think of an issue with adding -fPIC, so I added it.

valandil commented on 2016-08-24 06:51

I'll revisit the issue when I come back from vacation. For some reason, I have always been able to compile the package without needing the -fPIC flag.

alex.forencich commented on 2016-08-23 23:20

Is the -fPIC flag ever going to be added to this package?

All comments