Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Cannot compile PDFTK
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
maguire
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 103
Location: Longmont, Colorado

PostPosted: Thu Dec 29, 2011 5:55 pm    Post subject: [SOLVED] Cannot compile PDFTK Reply with quote

Hello all:

I did an update on my system (it had been a while), and everything went fine. However, because I was considering removing the slotted GCC 4.4.5 (I had switched to 4.5.3), I decided I would recompile everything just to be sure. PDFTK was the only package to cause me problems. I can't get either the pdftk-1.44 or the pdftk-1.41-r2 to work! It appears to me that the 1.41-r2 version was specifically made to compile with GCC 4.5, but I get an error in the patch phase. Any help is appreciated! Thanks!

Code:

$ cat /var/tmp/portage/app-text/pdftk-1.41-r2/temp/build.log
 * Package:    app-text/pdftk-1.41-r2
 * Repository: gentoo
 * Maintainer: printing@gentoo.org java@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking pdftk-1.41.tar.gz to /var/tmp/portage/app-text/pdftk-1.41-r2/work
>>> Unpacking pdftk-1.41-makefile.patch to /var/tmp/portage/app-text/pdftk-1.41-r2/work
unpack pdftk-1.41-makefile.patch: file format not recognized. Ignoring.
>>> Source unpacked in /var/tmp/portage/app-text/pdftk-1.41-r2/work
>>> Preparing source in /var/tmp/portage/app-text/pdftk-1.41-r2/work/pdftk-1.41/pdftk ...
 * Applying pdftk-1.41-gcc-4.3.patch ...                                 [ ok ]
 * Applying pdftk-1.41-gcc-4.4.patch ...                                 [ ok ]
 * Applying pdftk-1.41-honor-ldflags.patch ...                           [ ok ]
 * Applying pdftk-1.41-makefile.patch ...

 * Failed Patch: pdftk-1.41-makefile.patch !
 *  ( /var/tmp/portage/app-text/pdftk-1.41-r2/distdir/pdftk-1.41-makefile.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/app-text/pdftk-1.41-r2/temp/pdftk-1.41-makefile.patch.out

 * ERROR: app-text/pdftk-1.41-r2 failed (prepare phase):
 *   Failed Patch: pdftk-1.41-makefile.patch!
 *
 * Call stack:
 *     ebuild.sh, line   75:  Called src_prepare
 *   environment, line 2122:  Called epatch '/var/tmp/portage/app-text/pdftk-1.41-r2/distdir/pdftk-1.41-makefile.patch'
 *   environment, line 1045:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 *
 * If you need support, post the output of 'emerge --info =app-text/pdftk-1.41-r2',
 * the complete build log and the output of 'emerge -pqv =app-text/pdftk-1.41-r2'.
 * The complete build log is located at '/var/tmp/portage/app-text/pdftk-1.41-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/pdftk-1.41-r2/temp/environment'.
 * S: '/var/tmp/portage/app-text/pdftk-1.41-r2/work/pdftk-1.41/pdftk'


Code:

$ cat /var/tmp/portage/app-text/pdftk-1.41-r2/temp/pdftk-1.41-makefile.patch.out
***** pdftk-1.41-makefile.patch *****
PWD: /var/tmp/portage/app-text/pdftk-1.41-r2/work/pdftk-1.41

=====================================

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/app-text/pdftk-1.41-r2/distdir/pdftk-1.41-makefile.patch'

=====================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur pdftk-1.43.orig/pdftk/Makefile.Debian pdftk-1.43/pdftk/Makefile.Debian
|--- pdftk-1.43.orig/pdftk/Makefile.Debian      2010-09-15 16:50:56.000000000 +0100
|+++ pdftk-1.43/pdftk/Makefile.Debian   2010-10-09 13:35:25.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch program exited with status 1
=====================================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/app-text/pdftk-1.41-r2/distdir/pdftk-1.41-makefile.patch'

=====================================
patching file pdftk/Makefile.Debian
Hunk #1 FAILED at 29.
Hunk #2 FAILED at 72.
2 out of 2 hunks FAILED -- saving rejects to file pdftk/Makefile.Debian.rej

patch program exited with status 1
=====================================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/app-text/pdftk-1.41-r2/distdir/pdftk-1.41-makefile.patch'

=====================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur pdftk-1.43.orig/pdftk/Makefile.Debian pdftk-1.43/pdftk/Makefile.Debian
|--- pdftk-1.43.orig/pdftk/Makefile.Debian      2010-09-15 16:50:56.000000000 +0100
|+++ pdftk-1.43/pdftk/Makefile.Debian   2010-10-09 13:35:25.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch program exited with status 1
=====================================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/app-text/pdftk-1.41-r2/distdir/pdftk-1.41-makefile.patch'

=====================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur pdftk-1.43.orig/pdftk/Makefile.Debian pdftk-1.43/pdftk/Makefile.Debian
|--- pdftk-1.43.orig/pdftk/Makefile.Debian      2010-09-15 16:50:56.000000000 +0100
|+++ pdftk-1.43/pdftk/Makefile.Debian   2010-10-09 13:35:25.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch program exited with status 1
=====================================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/app-text/pdftk-1.41-r2/distdir/pdftk-1.41-makefile.patch'

=====================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur pdftk-1.43.orig/pdftk/Makefile.Debian pdftk-1.43/pdftk/Makefile.Debian
|--- pdftk-1.43.orig/pdftk/Makefile.Debian      2010-09-15 16:50:56.000000000 +0100
|+++ pdftk-1.43/pdftk/Makefile.Debian   2010-10-09 13:35:25.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch program exited with status 1


Code:

$ emerge --info =app-text/pdftk-1.41-r2
Portage 2.1.10.41 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 2.6.30-gentoo-r5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 29 Dec 2011 09:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.wetzlmayr.com/ http://gentoo.arcticnetwork.ca/ http://www.cyberuse.com/gentoo/ http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.binarycompass.org http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac alsa amd64 avi berkdb bitmap-fonts bzip2 cddb cdparanoia cdr cleartype corefonts cups curl cxx dbus dri dvd dvdr dvdread encode ethereal ffmpeg fftw foomaticdb gcj gdbm gif ginac gmp hddtemp imagemagick ipc java jpeg kpathsea lame lcms less libwww loop-aes lua mad mbox midi mjpeg mmx mozilla mp3 mpeg mplayer multilib ncurses netcdf nfsv3 nptl nptlonly opengl oss pam pcre pdf perl plotutils png ppds python python2 quicktime readline sasl sdl slang slp sndfile spell sse sse2 ssl static-libs svg syslog tcltk tcpd tetex threads tiff truetype truetype-fonts type1 type1-fonts udev usb xinerama xml xml2 xorg xpm xv zlib" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Code:

$ emerge -pqv =app-text/pdftk-1.41-r2
[ebuild  N    ] app-text/pdftk-1.41-r2  USE="-nodrm"


Code:

$ head -n162 /var/tmp/portage/app-text/pdftk-1.41-r2/temp/environment
declare -x ABI="amd64"
declare -x ALSA_CARDS=""
declare -x ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
declare -x APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
declare -x ARCH="amd64"
declare -x BOOTSTRAP_USE="cxx unicode multilib"
declare -x CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump"
declare -x CAMERAS="ptp2"
declare -x CBUILD="x86_64-pc-linux-gnu"
declare -x CCACHE="ccache"
declare -x CFLAGS="-march=native -O2 -pipe"
declare -x CFLAGS_amd64="-m64"
declare -x CFLAGS_default
declare -x CFLAGS_x32="-mx32"
declare -x CFLAGS_x86="-m32"
declare -x CHOST="x86_64-pc-linux-gnu"
declare -x CHOST_amd64="x86_64-pc-linux-gnu"
declare -x CHOST_default="x86_64-pc-linux-gnu"
declare -x CHOST_x32="x86_64-pc-linux-gnu"
declare -x CHOST_x86="i686-pc-linux-gnu"
declare -x COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
declare -x COLORFGBG="15;0"
declare -x COLUMNS="129"
declare -x CROSSCOMPILE_OPTS=""
declare -x CTARGET_default="x86_64-pc-linux-gnu"
declare -x CVSUMASK="007"
declare -x CXXFLAGS="-march=native -O2 -pipe"
declare -x DEFAULT_ABI="amd64"
declare -x DEFINED_PHASES=" compile install prepare"
declare DEPEND=">=sys-devel/gcc-4.3.1[gcj] "
declare DESCRIPTION="A tool for manipulating PDF documents"
declare -x DESTTREE="/usr"
declare -x DIROPTIONS="-m0755"
declare -x EAPI="2"
declare -x ELIBC="glibc"
declare -x ENSCRIPT="--media=Letter --columns=1 --borders --margins=40:40:40:40 --font=Courier7 --fancy-header=maguire --mark-wrapped-lines=box"
declare -- EPATCH_EXCLUDE=""
declare -- EPATCH_FORCE="no"
declare -- EPATCH_MULTI_MSG="Applying various patches (bugfixes/updates) ..."
declare -- EPATCH_OPTS="-g0 -E --no-backup-if-mismatch"
declare -- EPATCH_SINGLE_MSG=""
declare -- EPATCH_SOURCE="/var/tmp/portage/app-text/pdftk-1.41-r2/work/patch"
declare -- EPATCH_SUFFIX="patch.bz2"
declare -x EXEOPTIONS="-m0755"
declare -x FCFLAGS=""
declare -x FETCHCOMMAND_SSH="bash -c \"x=\\\${2#ssh://} ; host=\\\${x%%/*} ; port=\\\${host##*:} ; host=\\\${host%:*} ; [[ \\\${host} = \\\${port} ]] && port=22 ; exec rsync --rsh=\\\"ssh -p\\\${port}\\\" -avP \\\"\\\${host}:/\\\${x#*/}\\\" \\\"\\\$1\\\"\" rsync \"\${DISTDIR}/\${FILE}\" \"\${URI}\""
declare -x FFLAGS=""
declare -x GCC_SPECS=""
declare -x GDK_USE_XFT="1"
declare -x GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx"
declare -x GRUB_PLATFORMS=""
declare -x GSETTINGS_BACKEND="gconf"
declare -x GS_OPTIONS="-dPDFSETTINGS=/prepress -dAutoRotatePages=/PageByPage"
declare -x HISTFILESIZE="5000"
declare -x HISTIGNORE="&:[bf]g"
declare -x HISTSIZE="5000"
declare HOMEPAGE="http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/"
declare -x HUSHLOGIN="FALSE"
declare -x INHERITED=" multilib toolchain-funcs portability user eutils"
declare -x INPUT_DEVICES="evdev"
declare -x INSDESTTREE=""
declare -x INSOPTIONS="-m0644"
declare IUSE="nodrm "
declare -x JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
declare -x JAVA_HOME="/etc/java-config-2/current-system-vm"
declare -x JDK_HOME="/etc/java-config-2/current-system-vm"
declare -x KERNEL="linux"
declare -x KERNEL_ABI="amd64"
declare -x KEYWORDS="~amd64 ~ppc ~x86"
declare -x KV=""
declare -x LANG="en_US.UTF8"
declare -x LCD_DEVICES=""
declare -x LC_COLLATE="C"
declare -x LDFLAGS="-Wl,-O1 -Wl,--as-needed"
declare -x LDFLAGS_amd64="-m elf_x86_64"
declare -x LDFLAGS_default
declare -x LDFLAGS_x32="-m elf32_x86_64"
declare -x LDFLAGS_x86="-m elf_i386"
declare -x LIBDIR_amd64="lib64"
declare -x LIBDIR_amd64_fbsd="lib64"
declare -x LIBDIR_default="lib"
declare -x LIBDIR_n32="lib32"
declare -x LIBDIR_n64="lib64"
declare -x LIBDIR_o32="lib"
declare -x LIBDIR_ppc="lib32"
declare -x LIBDIR_ppc64="lib64"
declare -x LIBDIR_s390="lib32"
declare -x LIBDIR_s390x="lib64"
declare -x LIBDIR_sparc32="lib32"
declare -x LIBDIR_sparc64="lib64"
declare -x LIBDIR_x32="libx32"
declare -x LIBDIR_x86="lib32"
declare -x LIBDIR_x86_fbsd="lib32"
declare -x LIBOPTIONS="-m0644"
declare -x LICENSE="GPL-2"
declare -x LINGUAS="en"
declare -x MAIL="/var/mail/maguire"
declare -x MAKEOPTS="-j8"
declare -x MULTILIB_ABIS="amd64 x86"
declare -x MULTILIB_STRICT_DENY="64-bit.*shared object"
declare -x MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
declare -x MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev)"
declare -x NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
declare -x OPENGL_PROFILE="xorg-x11"
declare -x PARINIT="w65j0rTbgqR B=.,?_A_a Q=_s>|"
declare -x PATH="/usr/lib64/portage/bin/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3"
declare PDEPEND=""
declare -x PHP_TARGETS=""
declare -a PORTAGE_DOCOMPRESS='([0]="/usr/share/doc" [1]="/usr/share/info" [2]="/usr/share/man")'
declare -a PORTAGE_DOCOMPRESS_SKIP='([0]="/usr/share/doc/pdftk-1.41-r2/html")'
declare -x PORTAGE_NICENESS="5"
declare -x PRELINK_PATH_MASK="/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so"
declare -x PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
declare -x PROMPT_COMMAND="echo -ne \"\\033]0;\"\`xprop -id \$WINDOWID | grep \"WM_CLASS.STRING. = \" | cut -d\\\" -f 2\`\"\\007\""
declare -x PROPERTIES=""
declare -x PROVIDE=""
declare -x PYTHON="python2.7"
declare -x PYTHONDOCS="/usr/share/doc/python-docs-2.7.1/html/library"
declare -x PYTHONDOCS_2_7="/usr/share/doc/python-docs-2.7.1/html/library"
declare -x PYTHONDOCS_3_1="/usr/share/doc/python-docs-3.1.3/html/library"
declare -x PYTHONDONTWRITEBYTECODE="1"
declare -x RDEPEND=">=sys-devel/gcc-4.3.1[gcj] "
declare REQUIRED_USE=""
declare -x RESTRICT=""
declare -x RESUMECOMMAND_SSH="bash -c \"x=\\\${2#ssh://} ; host=\\\${x%%/*} ; port=\\\${host##*:} ; host=\\\${host%:*} ; [[ \\\${host} = \\\${port} ]] && port=22 ; exec rsync --rsh=\\\"ssh -p\\\${port}\\\" -avP \\\"\\\${host}:/\\\${x#*/}\\\" \\\"\\\$1\\\"\" rsync \"\${DISTDIR}/\${FILE}\" \"\${URI}\""
declare -x RUBY_TARGETS="ruby18"
declare -x S="/var/tmp/portage/app-text/pdftk-1.41-r2/work/pdftk-1.41/pdftk"
declare -x SANDBOX_DEBUG="0"
declare -x SANDBOX_DENY=""
declare -x SANDBOX_PID="12757"
declare -x SANDBOX_PREDICT="/var/tmp/portage/app-text/pdftk-1.41-r2/homedir:/dev/crypto:/var/cache/fontconfig"
declare -x SANDBOX_READ="/:/var/tmp"
declare -x SANDBOX_VERBOSE="1"
declare -x SANDBOX_WRITE=":/dev/console:/dev/fd:/dev/full:/dev/null:/dev/pts/:/dev/pty:/dev/shm:/dev/tts:/dev/tty:/dev/vc/:/dev/zero:/proc/self/fd:/tmp/:/usr/lib/cf:/usr/lib/conftest:/usr/lib32/cf:/usr/lib32/conftest:/usr/lib64/cf:/usr/lib64/conftest:/usr/tmp/cf:/usr/tmp/conftest:/var/tmp:/var/tmp/:/var/tmp/portage/app-text/pdftk-1.41-r2/homedir/.bash_history"
declare -x SLOT="0"
declare SRC_URI="http://www.pdfhacks.com/pdftk/pdftk-1.41.tar.gz
        http://aur.archlinux.org/packages/pdftk/pdftk/makefile.patch -> pdftk-1.41-makefile.patch"
declare -x SUDO_COMMAND="/usr/bin/emerge pdftk"
declare -x SUDO_GID="500"
declare -x SUDO_UID="500"
declare -x SUDO_USER="maguire"
declare -x SYMLINK_LIB="yes"
declare -x TEXINPUTS=".:/home/maguire/latex/:"
declare -x USE="amd64 elibc_glibc kernel_linux multilib userland_GNU"
declare -x USERLAND="GNU"
declare -x USERNAME="root"
declare -x VIDEO_CARDS=""
declare -x VISUAL="/usr/local/bin/gvim_-f"
declare -x WINDOWID="25165826"
declare -x WINDOWPATH="7"
declare -x XDG_CONFIG_DIRS="/etc/xdg"
declare -x XDG_DATA_DIRS="/usr/local/share:/usr/share"
declare -x XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
declare -x _E_DOCDESTTREE_=""
declare -x _E_EXEDESTTREE_=""
declare -- ___ECLASS_ONCE_EUTILS="recur -_+^+_- spank"
declare -- ___ECLASS_ONCE_MULTILIB="recur -_+^+_- spank"
declare -- ___ECLASS_ONCE_PORTABILITY="recur -_+^+_- spank"
declare -- ___ECLASS_ONCE_TOOLCHAIN_FUNCS="recur -_+^+_- spank"
declare -- ___ECLASS_ONCE_USER="recur -_+^+_- spank"
declare -- phase_func
_assert_pkg_ebuild_phase ()

_________________
BillyBear: I'm scared Poncho.
Poncho: Bullsh!t. You ain't afraid of no man!
BillyBear: There's something out there waiting for us, and it ain't no man. We're all gonna die.
<ominous music>
<enter Hillary Clinton>
;-)


Last edited by maguire on Tue Jan 03, 2012 5:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
maguire
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 103
Location: Longmont, Colorado

PostPosted: Thu Dec 29, 2011 6:02 pm    Post subject: ...and the error trying to compile pdftk-1.44 Reply with quote

And for completeness, here is what I get when I try to emerge pdftk-1.44:

Code:

...
gcjh -force --classpath=":/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java:." org/bouncycastle/asn1/IndefiniteLengthInputStream
gcjh: unrecognized option '-m64'
gcjh: Try 'gcjh -help' for more information
make[1]: [org/bouncycastle/asn1/IndefiniteLengthInputStream.h] Error 1 (ignored)
gjar -cf java_lib.jar com/lowagie/*/*/*/*.class com/lowagie/*/*/*.class com/lowagie/*/*.class org/bouncycastle/*/*.class org/bouncycastle/*/*/*.class com/lowagie/text/pdf/fonts/Helvetica-Oblique.afm com/lowagie/text/pdf/fonts/Courier.afm com/lowagie/text/pdf/fonts/Helvetica-BoldOblique.afm com/lowagie/text/pdf/fonts/Courier-Bold.afm com/lowagie/text/pdf/fonts/Times-Roman.afm com/lowagie/text/pdf/fonts/Times-Bold.afm com/lowagie/text/pdf/fonts/Courier-Oblique.afm com/lowagie/text/pdf/fonts/Symbol.afm com/lowagie/text/pdf/fonts/Courier-BoldOblique.afm com/lowagie/text/pdf/fonts/Helvetica.afm com/lowagie/text/pdf/fonts/Helvetica-Bold.afm com/lowagie/text/pdf/fonts/Times-Italic.afm com/lowagie/text/pdf/fonts/ZapfDingbats.afm com/lowagie/text/pdf/fonts/Times-BoldItalic.afm
gcj -Wall -fsource=1.3 -O2 --encoding=UTF-8 --classpath=":/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java:." -c java_lib.jar
make[1]: Leaving directory `/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java'
g++ -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers -DPDFTK_VER=\"1.44\" -Wall -Wextra -Weffc++ -O2 -I../java pdftk.cc -c
pdftk.cc:60:39: fatal error: com/lowagie/text/Document.h: No such file or directory
compilation terminated.
make: *** [pdftk.o] Error 1
emake failed
 * ERROR: app-text/pdftk-1.44 failed (compile phase):
 *   Compilation failed.
 *
 * Call stack:
 *     ebuild.sh, line  75:  Called src_compile
 *   environment, line 2106:  Called die
 * The specific snippet of code:
 *       emake -j1 -f "${S}"/Makefile.Debian || die "Compilation failed."
 *
 * If you need support, post the output of 'emerge --info =app-text/pdftk-1.44',
 * the complete build log and the output of 'emerge -pqv =app-text/pdftk-1.44'.
 * The complete build log is located at '/var/tmp/portage/app-text/pdftk-1.44/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/pdftk-1.44/temp/environment'.
 * S: '/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/pdftk'


Code:

$ emerge --info =app-text/pdftk-1.44
Portage 2.1.10.41 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 2.6.30-gentoo-r5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 29 Dec 2011 09:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.wetzlmayr.com/ http://gentoo.arcticnetwork.ca/ http://www.cyberuse.com/gentoo/ http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.binarycompass.org http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac alsa amd64 avi berkdb bitmap-fonts bzip2 cddb cdparanoia cdr cleartype corefonts cups curl cxx dbus dri dvd dvdr dvdread encode ethereal ffmpeg fftw foomaticdb gcj gdbm gif ginac gmp hddtemp imagemagick ipc java jpeg kpathsea lame lcms less libwww loop-aes lua mad mbox midi mjpeg mmx mozilla mp3 mpeg mplayer multilib ncurses netcdf nfsv3 nptl nptlonly opengl oss pam pcre pdf perl plotutils png ppds python python2 quicktime readline sasl sdl slang slp sndfile spell sse sse2 ssl static-libs svg syslog tcltk tcpd tetex threads tiff truetype truetype-fonts type1 type1-fonts udev usb xinerama xml xml2 xorg xpm xv zlib" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Code:

$ emerge -pqv =app-text/pdftk-1.44
[ebuild  N    ] app-text/pdftk-1.44


And the build environment is the same as my prior post.

Thanks for any help!
_________________
BillyBear: I'm scared Poncho.
Poncho: Bullsh!t. You ain't afraid of no man!
BillyBear: There's something out there waiting for us, and it ain't no man. We're all gonna die.
<ominous music>
<enter Hillary Clinton>
;-)
Back to top
View user's profile Send private message
maguire
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 103
Location: Longmont, Colorado

PostPosted: Fri Dec 30, 2011 6:13 pm    Post subject: Reply with quote

Anyone? I'm desperate!

I---stupidly---removed the working installation while I was trying to get PDFTK to compile with the latest compiler, and now, no matter what I try, I can't get it to install!

I use PDFTK everyday at work, so I'm in trouble until I get this figured-out.

Thanks!
_________________
BillyBear: I'm scared Poncho.
Poncho: Bullsh!t. You ain't afraid of no man!
BillyBear: There's something out there waiting for us, and it ain't no man. We're all gonna die.
<ominous music>
<enter Hillary Clinton>
;-)
Back to top
View user's profile Send private message
jormartr
Apprentice
Apprentice


Joined: 02 Jan 2008
Posts: 174

PostPosted: Fri Dec 30, 2011 7:27 pm    Post subject: Reply with quote

There are binpkgs somewhere, you could get it and install localy.

If you have problems, I could send you the binary package (tbz2) from my computer and you can install it with emerge -k pdftk (this is something similar as when you install firefox-bin or libreoffice-bin).
Back to top
View user's profile Send private message
jormartr
Apprentice
Apprentice


Joined: 02 Jan 2008
Posts: 174

PostPosted: Fri Dec 30, 2011 7:48 pm    Post subject: Reply with quote

32 bit pdftk.tbz2
64 bit pdftk.tbz2

copy the appropiate into /usr/portage/packages/app-text, and execute emerge -k pdftk. Should work.

If you don't trust my binary files (something I would understand very well) you can search for these files on binary packages repositories, whose url's now I do not know...

Hope this helps.
Back to top
View user's profile Send private message
gene128
n00b
n00b


Joined: 30 Jul 2009
Posts: 13

PostPosted: Fri Dec 30, 2011 7:59 pm    Post subject: Reply with quote

You might also look at app-text/jpdftweak, which has capabilities somewhat like pdftk.
Back to top
View user's profile Send private message
maguire
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 103
Location: Longmont, Colorado

PostPosted: Fri Dec 30, 2011 8:43 pm    Post subject: Reply with quote

jormartr and gene128:

You guys are lifesavers! Thanks!

gene128: I tried to download your 64-bit binary, but I ended-up with an empty file. So, I searched for an RPM and used 'rpm2targz' to convert it. For the time being, I just stuck the binary in /usr/bin/. I've been compiling my own for so long, it just never occurred to me to try to find a binary somewhere! :oops: Thanks again for the help!
_________________
BillyBear: I'm scared Poncho.
Poncho: Bullsh!t. You ain't afraid of no man!
BillyBear: There's something out there waiting for us, and it ain't no man. We're all gonna die.
<ominous music>
<enter Hillary Clinton>
;-)
Back to top
View user's profile Send private message
aunxx
n00b
n00b


Joined: 03 Jan 2012
Posts: 6

PostPosted: Tue Jan 03, 2012 11:57 am    Post subject: Reply with quote

Hi,

Had what seemed to be the same problem which I traced to a rogue "-m64" in the flags being passed to gcjh.
Using
Code:
emerge -v --info pdftk | grep m64
I found it was being set in CFLAGS_amd64.
Code:
CFLAGS_amd64="" emerge -av pdftk
then worked for me.

Aunxx.
Back to top
View user's profile Send private message
maguire
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 103
Location: Longmont, Colorado

PostPosted: Tue Jan 03, 2012 5:27 pm    Post subject: Reply with quote

AUNXX:

Thanks for figuring that out! I saw the compilation complaining about the "-m64" flag, but I was not sure where that came from, or whether that was the true cause of the error.

Thanks again,
Bruce.



aunxx wrote:
Hi,

Had what seemed to be the same problem which I traced to a rogue "-m64" in the flags being passed to gcjh.
Using
Code:
emerge -v --info pdftk | grep m64
I found it was being set in CFLAGS_amd64.
Code:
CFLAGS_amd64="" emerge -av pdftk
then worked for me.

Aunxx.

_________________
BillyBear: I'm scared Poncho.
Poncho: Bullsh!t. You ain't afraid of no man!
BillyBear: There's something out there waiting for us, and it ain't no man. We're all gonna die.
<ominous music>
<enter Hillary Clinton>
;-)
Back to top
View user's profile Send private message
jserink
Veteran
Veteran


Joined: 30 Jan 2004
Posts: 1008

PostPosted: Wed Feb 15, 2012 8:15 am    Post subject: Reply with quote

aunxx wrote:
Hi,

Had what seemed to be the same problem which I traced to a rogue "-m64" in the flags being passed to gcjh.
Using
Code:
emerge -v --info pdftk | grep m64
I found it was being set in CFLAGS_amd64.
Code:
CFLAGS_amd64="" emerge -av pdftk
then worked for me.

Aunxx.


This worked for me as well, thanx!
Back to top
View user's profile Send private message
feiticeir0
Apprentice
Apprentice


Joined: 13 Jul 2005
Posts: 288
Location: Castelo Branco, Portugal

PostPosted: Mon Feb 20, 2012 10:37 am    Post subject: Reply with quote

Quote:

Posted: Tue Jan 03, 2012 11:57 am Post subject:
Hi,

Had what seemed to be the same problem which I traced to a rogue "-m64" in the flags being passed to gcjh.
Using
Code:
emerge -v --info pdftk | grep m64
I found it was being set in CFLAGS_amd64.
Code:
CFLAGS_amd64="" emerge -av pdftk
then worked for me.

Aunxx.


Thank you !
_________________
Do It With Rhythm
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum