Hi. I'm not a java-gnome developer or even a subscriber to this list, so
please excuse me if this letter is misaddressed or unnecessary.
I recently downloaded java-gnome 0.8 and ran './configure
--with-gcj-compile' on my Debian Linux system. Line 3428 of the configure
script sets the "gcj_version" variable like so:
gcj_version=`$GCJ --version | grep 3. | awk '{print $3}'`
Unfortunately, 'gcj --version' prints both the expected line,
gcj (GCC) 3.3.2 (Debian)
as well as an apparently unexpected line,
Copyright (C) 2003 Free Software Foundation, Inc.
Since the dot in the "grep 3." statement matches not just "." but any
character, including the space after "2003", "gcj_version" is set to
"3.3.2\n2003", which breaks certain tests later in the script.
Fortunately, the problem is easy to fix: change line 3428 to
gcj_version=`$GCJ --version | grep 3\\\\. | awk '{print $3}'`
^^^^
(Four backslashes are needed because the line ends up being unescaped twice
before grep is run.)
I have also included a patch for this simple fix.
Sincerely,
Tom Snee
|