Debian Bug report logs - #424445
turkey - FTBFS: /build/user/turkey-1.34.0/build.xml:28: Compile failed; see the compiler error output for details.

version graph

Package: turkey; Maintainer for turkey is (unknown);

Reported by: Michael Ablassmeier <abi@grinser.de>

Date: Wed, 16 May 2007 06:45:25 UTC

Severity: serious

Tags: lenny, sid

Found in version turkey/1.34.0-3

Done: Lucas Nussbaum <lucas@lucas-nussbaum.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to Debian QA Group <packages@qa.debian.org>:
Bug#424445; Package turkey. (full text, mbox, link).


Acknowledgement sent to Michael Ablassmeier <abi@grinser.de>:
New Bug report received and forwarded. Copy sent to Debian QA Group <packages@qa.debian.org>. (full text, mbox, link).


Message #5 received at maintonly@bugs.debian.org (full text, mbox, reply):

From: Michael Ablassmeier <abi@grinser.de>
To: maintonly@bugs.debian.org
Subject: turkey - FTBFS: /build/user/turkey-1.34.0/build.xml:28: Compile failed; see the compiler error output for details.
Date: Wed, 16 May 2007 08:38:31 +0200
Package: turkey
Version: 1.34.0-3
Severity: serious
User: debian-qa@lists.debian.org
Usertags: qa-ftbfs

hi,

while doing an archive wide package rebuild your package failed to build from
source for the following reason:

 >     [javac]               ^-^
 >     [javac] *** Semantic Error: The class file "Font.class" in "/usr/lib/jvm/java-1.5.0-gcj-4.1-1.5.0.0/jre/lib/rt.jar/java/awt" has an invalid format (duplicate local variable type table).
 > 
 > 
 >     [javac]     66. class GUI extends JFrame implements ActionListener, ChangeListener {
 >     [javac]               ^-^
 >     [javac] *** Semantic Error: The class file "InputContext.class" in "/usr/lib/jvm/java-1.5.0-gcj-4.1-1.5.0.0/jre/lib/rt.jar/java/awt/im" has an invalid format (duplicate local variable type table).
 > 
 > 
 >     [javac]    223.                 dictionaryType = new JComboBox(gen.getDictionaryNames());
 >     [javac]                                              ^---------------------------------^
 >     [javac] *** Semantic Error: Ambiguous invocation of constructor "JComboBox". At least two constructors are accessible from here: "JComboBox(javax.swing.ComboBoxModel $1);" and "JComboBox(java.lang.Object[] $1);".
 > 
 > 
 >     [javac]    367.                 return new ImageIcon(getClass().getResource(id));
 >     [javac]                                    ^-----------------------------------^
 >     [javac] *** Semantic Error: Ambiguous invocation of constructor "ImageIcon". At least two constructors are accessible from here: "ImageIcon(java.lang.String $1);" and "ImageIcon(byte[] $1);".
 > 
 > BUILD FAILED
 > /build/user/turkey-1.34.0/build.xml:28: Compile failed; see the compiler error output for details.
 > 
 > Total time: 1 second
 > make: *** [build-stamp] Error 1

The Full Build log is available and can be viewed at:

 http://people.debian.org/~lucas/logs/2007/05/15/00_Failed_1/
 
bye,
	- michael



Information forwarded to debian-bugs-dist@lists.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#424445; Package turkey. (full text, mbox, link).


Acknowledgement sent to Luis Rodrigo Gallardo Cruz <rodrigo@nul-unu.com>:
Extra info received and forwarded to list. Copy sent to Debian QA Group <packages@qa.debian.org>. (full text, mbox, link).


Message #10 received at 424445@bugs.debian.org (full text, mbox, reply):

From: Luis Rodrigo Gallardo Cruz <rodrigo@nul-unu.com>
To: 424445@bugs.debian.org
Subject: Proposed patch for #424445 (turkey FTBFS)
Date: Fri, 1 Jun 2007 00:05:41 -0500
[Message part 1 (text/plain, inline)]
The attached patch sets JAVA_HOME and ant's build.compiler property,
as recomended by the java packaging team. This solves the FTBFS. The
resulting package works correctly with sun's java, but I have not been
able to make it run with gcj. I do not know if it's a problem with the
package or with my environment. Thus, I'm not tagging the bug as 'patch'
yet.

------------------------------------------------------------------------------
diff -r dc7e7243f5a5 debian/control
--- a/debian/control	Wed May 30 00:33:48 2007 -0500
+++ b/debian/control	Wed May 30 07:59:53 2007 -0500
@@ -2,7 +2,7 @@ Section: text
 Section: text
 Priority: optional
 Maintainer: Debian QA Group <packages@qa.debian.org>
-Build-Depends: debhelper (>= 4.0.0), jikes, ant, bzip2, txt2man, imagemagick, java-gcj-compat-dev
+Build-Depends: debhelper (>= 4.0.0), ant, bzip2, txt2man, imagemagick, java-gcj-compat-dev
 Standards-Version: 3.6.2
 
 Package: turkey
diff -r dc7e7243f5a5 debian/rules
--- a/debian/rules	Wed May 30 00:33:48 2007 -0500
+++ b/debian/rules	Wed May 30 08:07:48 2007 -0500
@@ -1,13 +1,14 @@
 #!/usr/bin/make -f
 
 DESTDIR=$(CURDIR)/debian/turkey
+export JAVA_HOME=/usr/lib/jvm/java-1.5.0-gcj-4.1-1.5.0.0/jre
 
 build: build-stamp
 build-stamp:
 	dh_testdir
 
-	ant release
-	ant doc
+	ant -Dbuild.compiler=modern release
+	ant -Dbuild.compiler=modern doc
 	txt2man -s 1 -t turkey -B turkey turkey.1.txt2man > turkey.1
 	convert resources/icon.png -resize 32x32 turkey.xpm
 
@@ -19,6 +20,7 @@ clean:
 	rm -f build-stamp configure-stamp
 	rm -f turkey.1
 	rm -f turkey.png
+	rm -f turkey.xpm
 
 	ant clean
 
------------------------------------------------------------------------------
[signature.asc (application/pgp-signature, inline)]

Tags added: lenny, sid Request was from Steve Langasek <vorlon@debian.org> to control@bugs.debian.org. (Tue, 03 Jul 2007 07:21:09 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#424445; Package turkey. (full text, mbox, link).


Acknowledgement sent to Cesare Tirabassi <norsetto@alice.it>:
Extra info received and forwarded to list. Copy sent to Debian QA Group <packages@qa.debian.org>. (full text, mbox, link).


Message #17 received at 424445@bugs.debian.org (full text, mbox, reply):

From: Cesare Tirabassi <norsetto@alice.it>
To: 424445@bugs.debian.org
Subject: Proposed patch for #424445 (turkey FTBFS)
Date: Wed, 01 Aug 2007 21:11:55 +0200
I have used a slightly modified version of your patch in Ubuntu, and now
thanks to you we also are able to compile for gutsy. The package fails
to run in gui mode with the following exception though:

cesare@desktop:~$ turkey
Exception during event dispatch:
java.lang.NullPointerException
   at gnu.java.awt.peer.gtk.GtkImage.<init>(libgcj.so.80)
   at gnu.java.awt.peer.gtk.GtkFramePeer.setIconImage(libgcj.so.80)
   at gnu.java.awt.peer.gtk.GtkFramePeer.create(libgcj.so.80)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.<init>(libgcj.so.80)
   at gnu.java.awt.peer.gtk.GtkContainerPeer.<init>(libgcj.so.80)
   at gnu.java.awt.peer.gtk.GtkWindowPeer.<init>(libgcj.so.80)
   at gnu.java.awt.peer.gtk.GtkFramePeer.<init>(libgcj.so.80)
   at gnu.java.awt.peer.gtk.GtkToolkit.createFrame(libgcj.so.80)
   at java.awt.Frame.addNotify(libgcj.so.80)
   at java.awt.Window.show(libgcj.so.80)
   at java.awt.Component.show(libgcj.so.80)
   at java.awt.Component.setVisible(libgcj.so.80)
   at net.sf.turkey.GUI$5.run(Unknown Source)
   at java.awt.event.InvocationEvent.dispatch(libgcj.so.80)
   at java.awt.EventQueue.dispatchEvent(libgcj.so.80)
   at java.awt.EventDispatchThread.run(libgcj.so.80)

Is this similar to the problem you are experiencing?
We use java-1.5.0-gcj-4.2-1.5.0.0 with the gcj7-1-awt library.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#424445; Package turkey. (full text, mbox, link).


Acknowledgement sent to Cesare Tirabassi <norsetto@alice.it>:
Extra info received and forwarded to list. Copy sent to Debian QA Group <packages@qa.debian.org>. (full text, mbox, link).


Message #22 received at 424445@bugs.debian.org (full text, mbox, reply):

From: Cesare Tirabassi <norsetto@alice.it>
To: 424445@bugs.debian.org
Subject: Proposed patch for #424445 (turkey FTBFS)
Date: Fri, 03 Aug 2007 15:21:18 +0200
After further investigations, the problem seems to be the use of the GCJ
based java.
Indeed by switching environment to sun java (for instance with sudo
update-alternatives --set
java /usr/lib/jvm/java-1.5.0-sun/jre/bin/java), the package runs without
any problem.

'I don't see why everyone depends on me. I'm not dependable. Even I
don't depend on me, and I'm me.' (Interesting Times)




Bug closed, send any further explanations to Michael Ablassmeier <abi@grinser.de> Request was from Lucas Nussbaum <lucas@lucas-nussbaum.net> to control@bugs.debian.org. (Sat, 29 Sep 2007 21:57:08 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 28 Oct 2007 07:30:12 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 5 22:44:34 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.