public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "glarkin at FreeBSD dot org" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/42143] [4.3/4.4/4.5/4.6 Regression] gcj creates "dummy" variables
Date: Mon, 03 May 2010 18:36:00 -0000 [thread overview]
Message-ID: <20100503183602.18428.qmail@sourceware.org> (raw)
In-Reply-To: <bug-42143-5138@http.gcc.gnu.org/bugzilla/>
------- Comment #7 from glarkin at FreeBSD dot org 2010-05-03 18:36 -------
(In reply to comment #6)
> So can someone please comment on this?
>
I recently encountered this problem while using gcc/gcj 4.5 with ecj-4.5.jar to
compile the pdftk utility (http://www.accesspdf.com/pdftk/) on FreeBSD. I
maintain the pdftk port for FreeBSD, and I previously used gcc/gcj 4.2 with
ecj-4.3.jar without any problems.
I found a workaround by patching the pdftk Makefiles like so:
##
# implicit rules for creating A from B
%.o : %.java
$(GCJ) $(GCJFLAGS) -c $< -o $@
+ ${OBJCOPY} -L '_ZGr8_$$_dummy' $@
The FreeBSD objcopy command changes the .dummy resource from global scope to
local scope in each .o file. After doing that, the pdftk link phase succeeded
instead of dying with a ton of "duplicate symbol" errors.
After searching for the source of the duplicate symbol, I think I found it
here:
http://gcc.gnu.org/ml/java-patches/2009-q1/msg00049.html
If the patch included in this message is the source of the duplicate symbol
problem, then I wonder if it could be fixed like so?
String someRandomString = <generate random string>();
ZipEntry entry = new ZipEntry(".dummy" + someRandomString);
Feedback welcome,
Greg Larkin
--
glarkin at FreeBSD dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |glarkin at FreeBSD dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42143
next prev parent reply other threads:[~2010-05-03 18:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-22 12:51 [Bug java/42143] New: " kurt at roeckx dot be
2009-12-06 16:03 ` [Bug java/42143] " kurt at roeckx dot be
2010-02-16 10:34 ` [Bug java/42143] [4.3/4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
2010-02-17 17:51 ` mmitchel at gcc dot gnu dot org
2010-03-09 21:43 ` pjames at avtrex dot com
2010-03-10 8:05 ` michele at focuseek dot com
2010-03-10 8:09 ` michele at focuseek dot com
2010-04-23 19:49 ` [Bug java/42143] [4.3/4.4/4.5/4.6 " kurt at roeckx dot be
2010-05-03 18:36 ` glarkin at FreeBSD dot org [this message]
2010-05-22 18:33 ` rguenth at gcc dot gnu dot org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100503183602.18428.qmail@sourceware.org \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=java-prs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).