Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 May 2011 15:22:53 +0200
From:      Matthias Andree <mandree@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Greg Larkin <glarkin@FreeBSD.org>, Gerald Pfeifer <gerald@FreeBSD.org>
Subject:   ports/157396: print/pdftk does not build with lang/gcc46 
Message-ID:  <E1QQfxF-000Lui-Dv@apollo.emma.line.org>
Resent-Message-ID: <201105291330.p4TDUF0L025076@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <built-in>: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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1QQfxF-000Lui-Dv>