PDA

View Full Version : jdk 1.6 build error.


bsdnewbie999
06-22-2008, 08:10 AM
>> (SHA256) jdk-1_5_0_14-fcs-src-b03-jrl-05_oct_2007.jar: OK
>> (SHA256) jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar: OK
>> (SHA256) bsd-jdk15-patches-8.tar.bz2: OK
>> (SHA256) jdk-1_5_0_14-solaris-i586.tar.Z: OK
>> (SHA256) xalan-j_2_7_0-bin.tar.gz: FAILED
>> Checksum mismatch for xalan-j_2_7_0-bin.tar.gz. (sha256)
Make sure the Makefile and checksum file (/usr/ports/devel/jdk/1.5/distinfo)
are up to date. If you want to fetch a good copy of this
file from the OpenBSD main archive, type
"make REFETCH=true [other args]".
*** Error code 1

Stop in /usr/ports/devel/jdk/1.5 (line 1774 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.5 (line 1921 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.5 (line 1392 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.5 (line 1890 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.5 (line 1422 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.6 (line 1550 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.6 (line 1921 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.6 (line 1392 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.6 (line 1890 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.6 (line 1422 of /usr/ports/infrastructure/mk/bsd.port.mk).
# exit



I downloaded the xalan file from the apache website but always got a size mismatch. I did checked openbsd packages but there's no package for java.
Please help.:(

ocicat
06-22-2008, 09:10 AM
I did checked openbsd packages but there's no package for java.
If you had read Section 8.3 of the FAQ, you would know the answer to this question as the licensing Sun has inflicted on the JDK has prevented the *BSD community from making precompiled packages available.

Sun has recently GPL'ed the JDK, but packages are not yet available -- possibly in the OpenBSD 4.4 timeframe or later.
I downloaded the xalan file from the apache website but always got a size mismatch.
There have been a few sporadic reports on this in the past, & I have experienced this myself. I don't know what method you used to download the xalan tarball, but until the computed SHA256 value matches what is used by the Makefile, you will be unable to proceed. One alternative is to download the xalan tarball with wget. If you don't already have wget installed on your system through other package/port dependencies, it is available as a package:

http://www.openbsd.org/4.3_packages/i386/wget-1.10.2p1.tgz-long.html

jggimi
06-22-2008, 11:55 AM
1. This is not a JDK 1.6 build error. Your error is occurring in JDK 1.5. JDK 1.5 is a dependency of JDK 1.6.

2.The distinfo file for JDK 1.5 was last changed 4 months ago, it is the same distinfo file for 4.3-release and -current.

Either your distinfo file is incorrect, or the xalan tarball is damaged.

Ocicat asked you, in another thread, where you downloaded your ports tree tarball from. You did not answer the question. If your ports tree tarball came from <your nearest mirror>/pub/OpenBSD/4.3/, then you should have the correct tree.

To check if your distinfo file is correct, compare your local copy of /usr/ports/devel/jdk/1.5/distinfo with this:MD5 (bsd-jdk15-patches-8.tar.bz2) = bfHP2LEE3pTzhTTHsRJZlQ==
MD5 (jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar) = wnB6/qJJk/DWek2vstL1yg==
MD5 (jdk-1_5_0_14-fcs-src-b03-jrl-05_oct_2007.jar) = z8oaYyujzN5GpwxkgELaHg==
MD5 (jdk-1_5_0_14-solaris-i586.tar.Z) = kuG+5bS0y+behUGU1kf+yA==
MD5 (xalan-j_2_7_0-bin.tar.gz) = 1SbQhIyIYHzk46Ck7bddUA==
RMD160 (bsd-jdk15-patches-8.tar.bz2) = Nu/ITKifEeejzVFRFlYWSiLV57Y=
RMD160 (jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar) = 1hzjZmD7YKR0cwAw1chN/A6v6bg=
RMD160 (jdk-1_5_0_14-fcs-src-b03-jrl-05_oct_2007.jar) = GYL9fDczn0soR1IB7lbmRputwug=
RMD160 (jdk-1_5_0_14-solaris-i586.tar.Z) = WcFAR3Y6b9CAM/xbp/IGxYmNJVA=
RMD160 (xalan-j_2_7_0-bin.tar.gz) = VCV7ypsrLPuG/Wl08Oj27CD31H8=
SHA1 (bsd-jdk15-patches-8.tar.bz2) = 150R2oVimTNTDmStU6szGcYmoJA=
SHA1 (jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar) = f4Q7v2MKdeQHLoPHx1dGG/Jm+oc=
SHA1 (jdk-1_5_0_14-fcs-src-b03-jrl-05_oct_2007.jar) = gpBUyXvSiiwpuoQ26RynURBKdZw=
SHA1 (jdk-1_5_0_14-solaris-i586.tar.Z) = TNSmGTtFJ1uqBhCF/0ppx3XLb1M=
SHA1 (xalan-j_2_7_0-bin.tar.gz) = z4jlU+j6W2nfk7rgbtsplS2sWWo=
SHA256 (bsd-jdk15-patches-8.tar.bz2) = lagszre6VRkOvktozTEXpJrn4ToaFPZZ4U2IEXqGcls=
SHA256 (jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar) = 8IWKywuTRpqfdddqJilkxujpOUWhNFvP0cySOmStqvs=
SHA256 (jdk-1_5_0_14-fcs-src-b03-jrl-05_oct_2007.jar) = dOTtgaPeSobvlT0JgQLnl1T4YzV/rsUysqbd5+XpMG4=
SHA256 (jdk-1_5_0_14-solaris-i586.tar.Z) = f6Ug2B7P9U2GpwWrSZiCeh1M6crx5yi65HJB0o8MubE=
SHA256 (xalan-j_2_7_0-bin.tar.gz) = h4yOtu7hVRrkMMLboFQmMphW/8BBOyAX3S1O5kjFxfc=
SIZE (bsd-jdk15-patches-8.tar.bz2) = 795972
SIZE (jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar) = 2211797
SIZE (jdk-1_5_0_14-fcs-src-b03-jrl-05_oct_2007.jar) = 57791631
SIZE (jdk-1_5_0_14-solaris-i586.tar.Z) = 86099611
SIZE (xalan-j_2_7_0-bin.tar.gz) = 13516702

bsdnewbie999
06-22-2008, 01:38 PM
1. This is not a JDK 1.6 build error. Your error is occurring in JDK 1.5. JDK 1.5 is a dependency of JDK 1.6.

2.The distinfo file for JDK 1.5 was last changed 4 months ago, it is the same distinfo file for 4.3-release and -current.

Either your distinfo file is incorrect, or the xalan tarball is damaged.

Ocicat asked you, in another thread, where you downloaded your ports tree tarball from. You did not answer the question. If your ports tree tarball came from <your nearest mirror>/pub/OpenBSD/4.3/, then you should have the correct tree.

To check if your distinfo file is correct, compare your local copy of /usr/ports/devel/jdk/1.5/distinfo with this:MD5 (bsd-jdk15-patches-8.tar.bz2) = bfHP2LEE3pTzhTTHsRJZlQ==
MD5 (jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar) = wnB6/qJJk/DWek2vstL1yg==
MD5 (jdk-1_5_0_14-fcs-src-b03-jrl-05_oct_2007.jar) = z8oaYyujzN5GpwxkgELaHg==
MD5 (jdk-1_5_0_14-solaris-i586.tar.Z) = kuG+5bS0y+behUGU1kf+yA==
MD5 (xalan-j_2_7_0-bin.tar.gz) = 1SbQhIyIYHzk46Ck7bddUA==
RMD160 (bsd-jdk15-patches-8.tar.bz2) = Nu/ITKifEeejzVFRFlYWSiLV57Y=
RMD160 (jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar) = 1hzjZmD7YKR0cwAw1chN/A6v6bg=
RMD160 (jdk-1_5_0_14-fcs-src-b03-jrl-05_oct_2007.jar) = GYL9fDczn0soR1IB7lbmRputwug=
RMD160 (jdk-1_5_0_14-solaris-i586.tar.Z) = WcFAR3Y6b9CAM/xbp/IGxYmNJVA=
RMD160 (xalan-j_2_7_0-bin.tar.gz) = VCV7ypsrLPuG/Wl08Oj27CD31H8=
SHA1 (bsd-jdk15-patches-8.tar.bz2) = 150R2oVimTNTDmStU6szGcYmoJA=
SHA1 (jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar) = f4Q7v2MKdeQHLoPHx1dGG/Jm+oc=
SHA1 (jdk-1_5_0_14-fcs-src-b03-jrl-05_oct_2007.jar) = gpBUyXvSiiwpuoQ26RynURBKdZw=
SHA1 (jdk-1_5_0_14-solaris-i586.tar.Z) = TNSmGTtFJ1uqBhCF/0ppx3XLb1M=
SHA1 (xalan-j_2_7_0-bin.tar.gz) = z4jlU+j6W2nfk7rgbtsplS2sWWo=
SHA256 (bsd-jdk15-patches-8.tar.bz2) = lagszre6VRkOvktozTEXpJrn4ToaFPZZ4U2IEXqGcls=
SHA256 (jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar) = 8IWKywuTRpqfdddqJilkxujpOUWhNFvP0cySOmStqvs=
SHA256 (jdk-1_5_0_14-fcs-src-b03-jrl-05_oct_2007.jar) = dOTtgaPeSobvlT0JgQLnl1T4YzV/rsUysqbd5+XpMG4=
SHA256 (jdk-1_5_0_14-solaris-i586.tar.Z) = f6Ug2B7P9U2GpwWrSZiCeh1M6crx5yi65HJB0o8MubE=
SHA256 (xalan-j_2_7_0-bin.tar.gz) = h4yOtu7hVRrkMMLboFQmMphW/8BBOyAX3S1O5kjFxfc=
SIZE (bsd-jdk15-patches-8.tar.bz2) = 795972
SIZE (jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar) = 2211797
SIZE (jdk-1_5_0_14-fcs-src-b03-jrl-05_oct_2007.jar) = 57791631
SIZE (jdk-1_5_0_14-solaris-i586.tar.Z) = 86099611
SIZE (xalan-j_2_7_0-bin.tar.gz) = 13516702


The distinfo is same. I also used wget to download xalan but still size mismatch.

ocicat
06-22-2008, 01:42 PM
I also used wget to download xalan but still size mismatch.
Since you never mention what actions you have previous tried, it is difficult to help you.

Nevertheless, you could try ftp assuming that you attempted downloading through HTTP.

jggimi
06-22-2008, 02:12 PM
You could also save the file from any web browser.

Since you seem unable to obtain the tarball from apache.org, I will make it temporarily available from here: www.jggimi.homeip.net/xalan-j_2_7_0-bin.tar.gz

Let us know if you are able to obtain it.

bsdnewbie999
06-22-2008, 03:28 PM
Oh, thank you. I download the xalan from the link u provided and it works.

bsdnewbie999
06-23-2008, 09:24 AM
What should i install in case to compile and run java program?

jggimi
06-23-2008, 10:27 AM
Read FAQ 8.3.

ocicat
06-23-2008, 11:18 AM
What should i install in case to compile and run java program?

# ln -sf /usr/local/jdk-1.6.0/bin/java /usr/local/bin/java
# ln -sf /usr/local/jdk-1.6.0/bin/javac /usr/local/bin/javac

openbsdguy
12-31-2008, 09:50 PM
Good day gents,

Got a problem here...

Attempting to install jdk 1.6 from ports... and I get this:

*** You're missing files: jdk-1_5_0_14-solaris-i586.tar.Z

:confused:

: Would any of you kind sirs know where I might get this beast? :cool:

Cheers,
Guy on a fresh OpenBSD 4.4 install

jggimi
12-31-2008, 10:37 PM
According to FAQ 8, for Java versions with Sun's restrictive licenses, you must register with Sun and agree to Sun's licenses, then manually fetch the distribution files yourself.

If you take a moment to read the output of your failing make command, you will see the exact instructions you must follow. Here's the output from a jdk 1.6 make on -current; you should see similar output with whatever you are running: $ make
===> Checking files for jdk-1.6.0.03
*** You're missing files: jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar bsd-jdk16-patches-4.tar.bz2
*** You must manually fetch the distribution files, place
*** them in /usr/ports/distfiles and then run make again.
*** Get the JDK 6u3 Source file:
*** jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar
*** and the JDK Binaries file:
*** jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar
*** and the Mozilla Binaries file:
*** jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar
*** from http://download.java.net/jdk6/6u3/promoted/b05/index.html
***
*** Get the BSD patchset file:
*** bsd-jdk16-patches-4.tar.bz2
*** from http://www.eyesbeyond.com/freebsddom/java/jdk16.html
*** Error code 1 ...

J65nko
12-31-2008, 10:43 PM
You have to download the java sources from the Sun website first.
This is explained in the section "Building the Sun JDK" from http://www.openbsd.org/faq/faq8.html#Programming ;)

openbsdguy
12-31-2008, 11:22 PM
Good evening gents,

Forgive me... Some background.

I have already registered with Sun.

I have already downloaded all of the files listed in the error and placed in the "/usr/ports/distfiles/" directory


The problem is that the path/URL provided in the error referring to this file is incorrect.

This is why I was wondering if any of you had this file. I had meant to keep the post short, however, if you want me to go through my install steps, step by step, that would not be a problem. ;)

Cheers,
Guy

BSDfan666
01-01-2009, 01:15 AM
Just a quick question; ignoring for a moment that I don't use Java; and never have.. but isn't the jdk/jre 1.7 port.. (OpenJDK).. available as a package?

Why use 1.{5,6} instead of that?

jggimi
01-01-2009, 07:07 AM
...I have already downloaded all of the files listed in the error and placed in the "/usr/ports/distfiles/" directory...Thanks for clarifying your problem. It looks, to me, that you have still not read through your make output carefully enough. That is because the error message says you are missing a 1.5 jdk distfile.

It is likely that while you have all of your distfiles for 1.6, you have not noticed that the make is attempting to build 1.5 first... unfortunately, 1.5 is a build dependency for 1.6. See the BUILD_DEPENDS variable in the 1.6 Makefile....isn't the jdk/jre 1.7 port.. (OpenJDK).. available as a package?Yes, the license for Sun Java 1.7 is GPLv2, with a CLASSPATH exception. This allows binary distribution. Packages are available beginning with 4.4-release. Why use 1.{5,6} instead of that?Application or feature dependencies. Example: 1.7 does not have a Mozilla plugin, earlier versions do.

BSDfan666
01-01-2009, 07:39 AM
Example: 1.7 does not have a Mozilla plugin, earlier versions do.
That's kinda curious.. what's the reason for that?

Anyway, I found references to "gcjwebplugin", a replacement that works with OpenJDK.

Do you know anything about that?

BSDfan666
01-01-2009, 07:46 AM
Please disregard; I did a little more research.. seems as if it's still in the early stages.. no apparent port for OpenBSD available either.

Ignore me.. ;)

EDIT: Is also something called IcedTeaPlugin... such a confusing thing java is.

openbsdguy
01-03-2009, 07:22 AM
Good evening gentlemen,

First, let me reply to BSDfan666:
I installed the jre package, but it didn't seem to be acknowledged by the UML tool I was trying to build. I thought it might be prudent to install from ports as I had hoped it might be more readily recognized... This still appears to be seen. ;) I'll keep everyone apprised.

Secondly, my reply to jggimi:
I did notice that the requirements were for 1.5, as opposed to 1.6. If you will notice my original post, I cited the file requested. When a java build errors, it displays an address for the build requirement. Unfortunately for me, the address specified did not house the file in question. That is the challenge I am facing right now.

So in summary, does anyone have the file in question? I'll post the required file again: jdk-1_5_0_14-solaris-i586.tar.Z

If not, I do not want to waste anyone's time or extend this thread indefinitely. I can try to build another tool/solution. I will try again when I have free time next week. ;)

Cheers gents and have a good weekend!
Guy

jggimi
01-03-2009, 02:51 PM
*** Get JDK 5.0 Update 14 for Solaris x86 packages file:
*** jdk-1_5_0_14-solaris-i586.tar.Z
*** from http://java.sun.com/javase/downloads/index_jdk5.jsp or
*** http://java.sun.com/products/archive/j2se/5.0_14/index.htmlFrom the first link, you may reach the 1.5.0.14 package by clicking on Previous Releases then Archived Releases, then selecting JDK 5.0 Update 14 from the menu, then selecting the download of the JDK, then selecting the Solaris x86 version and agreeing to the license, then downloading the file.

The second link is apparently no longer valid.