Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jan 2013 19:09:05 +0100
From:      Matthias Andree <mandree@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        glarkin@FreeBSD.org
Subject:   ports/175458: print/pdftk fails to compile with lang/gcc47 
Message-ID:  <E1TwzKL-000Dbd-Ag@apollo.emma.line.org>
Resent-Message-ID: <201301201810.r0KIA42O044632@freefall.freebsd.org>

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

>Number:         175458
>Category:       ports
>Synopsis:       print/pdftk fails to compile with lang/gcc47
>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 Jan 20 18:10:04 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD apollo.emma.line.org 9.1-RELEASE FreeBSD 9.1-RELEASE #2 r244869: Sun Dec 30 22:05:16 CET 2012 toor@apollo.emma.line.org:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
Trying to compile/install pdftk with GCC 4.7 fails:

/usr/local/bin/gcjh47 -force --classpath=":/var/tmp/usr/ports/print/pdftk/work/pdftk-1.45-dist/java:." org/bouncycastle/asn1/BERSequence
Exception in thread "main" java.io.IOException: can't find class file org/bouncycastle/asn1/BERSequence.class in java.net.URLClassLoader{urls=[file:/var/tmp/usr/ports/print/pdftk/work/pdftk-1.45-dist/java/,file:/var/tmp/usr/ports/print/pdftk/work/pdftk-1.45-dist/java/./,file:/usr/local/share/java/libgcj-4.7.3.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]: [org/bouncycastle/asn1/BERSequence.h] Error 1 (ignored)
/usr/local/bin/gjar47 -cf java_lib.jar com/lowagie/*/*/*/*.class com/lowagie/*/*/*.class com/lowagie/*/*.class org/bouncycastle/*/*.class org/bouncycastle/*/*/*.class com/lowagie/text/pdf/fonts/Times-BoldItalic.afm com/lowagie/text/pdf/fonts/ZapfDingbats.afm com/lowagie/text/pdf/fonts/Times-Italic.afm com/lowagie/text/pdf/fonts/Helvetica-Bold.afm com/lowagie/text/pdf/fonts/Helvetica.afm com/lowagie/text/pdf/fonts/Courier-BoldOblique.afm com/lowagie/text/pdf/fonts/Symbol.afm com/lowagie/text/pdf/fonts/Courier-Oblique.afm com/lowagie/text/pdf/fonts/Times-Bold.afm com/lowagie/text/pdf/fonts/Times-Roman.afm com/lowagie/text/pdf/fonts/Courier-Bold.afm com/lowagie/text/pdf/fonts/Helvetica-BoldOblique.afm com/lowagie/text/pdf/fonts/Courier.afm com/lowagie/text/pdf/fonts/Helvetica-Oblique.afm
jar: internal error:
java.io.FileNotFoundException: com/lowagie/*/*/*/*.class (No such file or directory)
   at gnu.java.nio.channels.FileChannelImpl.open(Unknown Source)
   at gnu.java.nio.channels.FileChannelImpl.<init>(Unknown Source)
   at gnu.java.nio.channels.FileChannelImpl.create(Unknown Source)
   at java.io.FileInputStream.<init>(Unknown Source)
   at gnu.classpath.tools.jar.Creator.writeFile(Unknown Source)
   at gnu.classpath.tools.jar.Creator.writeCommandLineEntries(Unknown Source)
   at gnu.classpath.tools.jar.Creator.writeCommandLineEntries(Unknown Source)
   at gnu.classpath.tools.jar.Creator.run(Unknown Source)
   at gnu.classpath.tools.jar.Main.run(Unknown Source)
   at gnu.classpath.tools.jar.Main.main(Unknown Source)
gmake[1]: [java_lib.o] Error 1 (ignored)
/usr/local/bin/gcj47 -L/usr/local/lib -Wl,-rpath=/usr/local/lib/gcc47 -w -Wall -Wextra -fsource=1.3 -O2 --encoding=UTF-8 --classpath=":/var/tmp/usr/ports/print/pdftk/work/pdftk-1.45-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 `/var/tmp/usr/ports/print/pdftk/work/pdftk-1.45-dist/java'
/usr/local/bin/g++47 -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers -DPDFTK_VER=\"1.45\" -Wall -Wextra -Weffc++ -O2 -I../java pdftk.cc -c
pdftk.cc:61:39: fatal error: com/lowagie/text/Document.h: No such file or directory
compilation terminated.
gmake: *** [pdftk.o] Error 1
*** [do-build] Error code 1

Stop in /usr/ports/print/pdftk.

	
>How-To-Repeat:
1. Install GCC 4.7 with Java option.
2. Deinstall GCC 4.6.
3. cd /usr/ports/*/pdftk
4. make MAKE_JOBS_UNSAFE=yes
	
>Fix:
Either see to that the port can be built with GCC 4.7 and 4.8,
or change the USE_GCC=4.6+ to a 4.6 (without a "+") that the non-working
4.7 is not chosen.
	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1TwzKL-000Dbd-Ag>