From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 29 13:30:15 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 819111065675 for ; Sun, 29 May 2011 13:30:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 642FF8FC16 for ; Sun, 29 May 2011 13:30:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4TDUFOQ025081 for ; Sun, 29 May 2011 13:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4TDUF0L025076; Sun, 29 May 2011 13:30:15 GMT (envelope-from gnats) Resent-Date: Sun, 29 May 2011 13:30:15 GMT Resent-Message-Id: <201105291330.p4TDUF0L025076@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthias Andree Received: from apollo.emma.line.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 65795106566B; Sun, 29 May 2011 13:22:54 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from mandree by apollo.emma.line.org with local (Exim 4.76 (FreeBSD)) (envelope-from ) id 1QQfxF-000Lui-Dv; Sun, 29 May 2011 15:22:53 +0200 Message-Id: Date: Sun, 29 May 2011 15:22:53 +0200 From: Matthias Andree To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Greg Larkin , Gerald Pfeifer Subject: ports/157396: print/pdftk does not build with lang/gcc46 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Andree List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2011 13:30:15 -0000 >Number: 157396 >Category: ports >Synopsis: print/pdftk does not build with lang/gcc46 >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 29 13:30:14 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Matthias Andree >Release: FreeBSD 8.2-STABLE amd64 >Organization: >Environment: System: FreeBSD apollo.emma.line.org 8.2-STABLE FreeBSD 8.2-STABLE #67: Fri May 27 21:36:00 CEST 2011 toor@apollo.emma.line.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Greg, Gerald, Please help - I can't seem to build print/pdftk with GCC 4.6 (pdftk wants USE_GCC=4.5+). GCC 4.5 used to work, however I've tried to consolidate my installation and all other USE_GCC ports I've got installed are happy with 4.6. (details to reproduce below), and am getting tons of these errors: gcjh46 cannot find/execute the ecj1 command. I'm not too much into GCC-for-Java, so I have zero clue what's up here beyond GCJ missing Eclipse's Java Compiler. Call my understanding eclipsed ;) Questions: A: Can pdftk be modified so I can use openjdk? Not sure - if we want native code, that might not work. B: Why does pdftk ignore compiler errors, rather than abort up front? C: Can GCC46 be modified so that it either makes ends meet without ecj1, or pull in the required dependencies? Build log excerpt: ... ===> Building for pdftk-1.44 gmake -f Makefile -iC ../java all gmake[1]: Entering directory `/usr/tmp/usr/ports/print/pdftk/work/pdftk-1.44-dist/java' /usr/local/bin/gcj46 -L/usr/local/lib -Wl,-rpath=/usr/local/lib/gcc46 -w -Wall -Wextra -fsource=1.3 -O2 --encoding=UTF-8 --classpath=":/usr/tmp/usr/ports/print/pdftk/work/pdftk-1.44-dist/java:." -C com/lowagie/text/ElementTags.java gcj46: error trying to exec 'ecj1': execvp: No such file or directory gmake[1]: [com/lowagie/text/ElementTags.class] Error 1 (ignored) /usr/local/bin/gcjh46 -force --classpath=":/usr/tmp/usr/ports/print/pdftk/work/pdftk-1.44-dist/java:." com/lowagie/text/ElementTags Exception in thread "main" java.io.IOException: can't find class file com/lowagie/text/ElementTags.class in java.net.URLClassLoader{urls=[file:/usr/tmp/usr/ports/print/pdftk/work/pdftk-1.44-dist/java/,file:/usr/tmp/usr/ports/print/pdftk/work/pdftk-1.44-dist/java/./,file:/usr/local/share/java/libgcj-4.6.1.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}} at gnu.classpath.tools.javah.Main.getClass(Unknown Source) at gnu.classpath.tools.javah.Main.run(Unknown Source) at gnu.classpath.tools.javah.GcjhMain.main(Unknown Source) gmake[1]: [com/lowagie/text/ElementTags.h] Error 1 (ignored) ... /usr/local/bin/gcj46 -L/usr/local/lib -Wl,-rpath=/usr/local/lib/gcc46 -w -Wall - Wextra -fsource=1.3 -O2 --encoding=UTF-8 --classpath=":/usr/tmp/usr/ports/print/ pdftk/work/pdftk-1.44-dist/java:." -c java_lib.jar In file included from :0:0: java_lib.jar:0:0: fatal error: bad zip/jar file java_lib.jar compilation terminated. gmake[1]: [java_lib.o] Error 1 (ignored) gmake[1]: Leaving directory `/usr/tmp/usr/ports/print/pdftk/work/pdftk-1.44-dist /java' /usr/local/bin/g++46 -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGN ALS -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 direct ory compilation terminated. gmake: *** [pdftk.o] Error 1 *** Error code 1 Stop in /usr/ports/print/pdftk. >How-To-Repeat: 1. deinstall GCC-4.5* if installed 2. install GCC 4.6 with JAVA option cd /usr/ports/print/pdftk make >Fix: >Release-Note: >Audit-Trail: >Unformatted: