IcedTea6 and openjdk-6-src-b06-28_feb_2008

Andrew Haley aph at redhat.com
Mon Mar 24 05:04:03 PDT 2008


Michael Franz wrote:
> On Sun, Mar 23, 2008 at 6:18 PM, Andrew John Hughes <
> gnu_andrew at member.fsf.org> wrote:
> 
>> On 22/03/2008, Christian Thalinger <twisti at complang.tuwien.ac.at> wrote:
>>> On Sat, 2008-03-22 at 14:16 -0400, Michael Franz wrote:
>>>  >         I'm using:
>>>  >
>>>  >         gcc version 4.2.3 (Debian 4.2.3-1)
>>>  >
>>>  >         on my Debian boxes to build it and it works fine.
>>>  >
>>>  >         - twisti
>>>  >
>>>  >
>>>  > Is this a backported version of gcc 4.2?
>>>
>>>
>>> I think so.
>>>
>>>  - twisti
>>>
>>>
>> Regardless of which version of GCJ is in use, none of them include
>> that constructor as it's not yet in Classpath:
>>
>> # constructor java.lang.String(byte[], int, int,
>> java.nio.charset.Charset): missing in classpath
>> # constructor java.lang.String(byte[], java.nio.charset.Charset):
>> missing in classpath
>>
>> taken from http://builder.classpath.org/japi/openjdk-classpath.html
>>
>> I don't get how you reach this problem and no-one else does.  It's
>> very odd.  Can you explain exactly how you download, configure and
>> build IcedTea6?

> 
> I am not sure why no-one else is having this problem.  If you compile
> against the classes in gcc 4.3.0 this error will show up.
> 
> I got the icedtea6 from the link using mercurial.
> 
> I patch the configure.ac to remove the alsa check - I don't have that on the
> Mac.
> 
> I then configured using :
>  --with-ecj=/opt/local/bin/ecj \
>                         --with-ecj-jar=${prefix}/share/java/eclipse-ecj.jar\
> 
> --with-libgcj-jar=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.jar
> \
>                         --with-gcj-home=${prefix}/bin \
--with-java=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> \
>                         --disable-gcjwebplugin \
>                         --with-xalan2-jar=${prefix}/share/java/xalan.jar \
> 
> --with-xalan2-serializer-jar=${prefix}/share/java/serializer.jar \
> 
> --with-xerces2-jar=${prefix}/share/java/xercesImpl.jar
> 
> Then run the build.  The build executes until the download of open jdk.  It
> does not extract the tar file correctly as it is gzip, but the command
> assumes that it is just a tar file.

The up-to-date versions of tar don't need to be told that a file is compressed.

> I extract with tar xzf openjdk-6-src-b07-20_mar_2008.tar.gz -C openjdk  - am
> using the latest openjdk since I saw it was available but not in icedtea6.

In which case it isn't going to work.  Any version of IcedTea is bound tightly
to a specific version of OpenJDK.  You can't mix and match them.

Andrew.



More information about the distro-pkg-dev mailing list