Opened 12 years ago

Closed 12 years ago

#32382 closed defect (duplicate)

pdftk fails to build

Reported by: Sam.Halliday@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: lion Cc: ryandesign (Ryan Carsten Schmidt)
Port: pdftk

Description (last modified by ryandesign (Ryan Carsten Schmidt))

pdftk currently fails to build, full log file attached but the nub of it seems to be this error

:info:build /opt/local/bin/gcj-mp-4.5 -Wall -fsource=1.3 -O2 --encoding=UTF-8 --classpath="/opt/local/share/java/libgcj-4.5.3.jar:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_pdftk/pdftk/work/pdftk-1.44-dist/java:." -C com/lowagie/text/Anchor.java
:info:build Exception in thread "main" java.lang.ClassFormatError: org.eclipse.jdt.internal.compiler.Compiler (erroneous constant pool tag)
:info:build    at java.lang.VMClassLoader.defineClass(libgcj.11.dylib)
:info:build    at java.lang.ClassLoader.defineClass(libgcj.11.dylib)
:info:build    at java.security.SecureClassLoader.defineClass(libgcj.11.dylib)
:info:build    at java.net.URLClassLoader.findClass(libgcj.11.dylib)
:info:build    at java.lang.ClassLoader.loadClass(libgcj.11.dylib)
:info:build    at java.lang.ClassLoader.loadClass(libgcj.11.dylib)
:info:build    at org.eclipse.jdt.internal.compiler.impl.CompilerOptions.resetDefaults(CompilerOptions.java:963)
:info:build    at org.eclipse.jdt.internal.compiler.impl.CompilerOptions.<init>(CompilerOptions.java:371)
:info:build    at org.eclipse.jdt.internal.compiler.impl.CompilerOptions.<init>(CompilerOptions.java:363)
:info:build    at org.eclipse.jdt.internal.compiler.batch.Main.initialize(Main.java:3548)
:info:build    at org.eclipse.jdt.internal.compiler.batch.Main.<init>(Main.java:1435)
:info:build    at org.eclipse.jdt.internal.compiler.batch.Main.<init>(Main.java:1423)
:info:build    at org.eclipse.jdt.internal.compiler.batch.GCCMain.<init>(GCCMain.java:62)
:info:build    at org.eclipse.jdt.internal.compiler.batch.GCCMain.main(GCCMain.java:498)
:info:build make[1]: [com/lowagie/text/Anchor.class] Error 1 (ignored)

As an aside - why can't we just install as a standard Java app? gcc-java is a big load of epic failure.

Attachments (1)

main.log.gz (19.8 KB) - added by Sam.Halliday@… 12 years ago.

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by Sam.Halliday@…

Attachment: main.log.gz added

comment:1 in reply to:  description Changed 12 years ago by Sam.Halliday@…

Apologies, I should say: I am on OS X Lion and running latest macports +selfupdate.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Keywords: lion added
Port: pdftk added
Resolution: duplicate
Status: newclosed

Please remember to use WikiFormatting, to fill in the Port field, and to Cc the maintainer of that port.

And please search for duplicates before filing a new ticket. This is a duplicate of #30299.

why can't we just install as a standard Java app? gcc-java is a big load of epic failure.

I agree that gcc java has been problematic for pdftk (or perhaps pdftk is problematic for gcc java) but I was not aware of an alternative. What alternative are you suggesting? What does it mean to you to "install as a standard Java app"?

Note: See TracTickets for help on using tickets.