jdk15 kompiliert nicht durch

Herakles

Profifragensteller
Moin!

Wollte grade mal so Java installieren und hab mich für /java/jdk15 entschieden. NAch 2 Stunden kompilieren bekomme ich jedoch folgende Abbruchmeldung.

Code:
../../../src/share/classes/com/sun/jmx/mbeanserver/MBeanInstantiatorImpl.java:162: warning: non-varargs call of varargs method with inexact argument type for last parameter;
cast to java.lang.Object for a varargs call
cast to java.lang.Object[] for a non-varargs call and to suppress this warning
            moi= cons.newInstance(null);
                                  ^
Note: * uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
21 errors
12 warnings
gmake[3]: *** [.compile.classlist] Error 1
gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java/java'
gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make'
gmake: *** [j2se-build] Error 2
*** Error code 2

Stop in /usr/ports/java/jdk15.

Wirklich eine vorstellung davon, was ich da nun ändern kann, habe ich eigentlich nicht. Jemand anders?


Grüße, Herakles
 
Soweit ich mitbekommen habe, ist Java 1.5 noch nicht wirklich stabil auf FreeBSD, 1.4.2 läuft doch recht rund.
 
Herakles schrieb:
Moin!

Wollte grade mal so Java installieren und hab mich für /java/jdk15 entschieden. NAch 2 Stunden kompilieren bekomme ich jedoch folgende Abbruchmeldung.

Wirklich eine vorstellung davon, was ich da nun ändern kann, habe ich eigentlich nicht. Jemand anders?
# pkg_info | grep jdk
jdk-1.5.0p1_1 Java Development Kit 1.5.0
linux-sun-jdk-1.4.2.08_1 Sun Java Development Kit 1.4 for Linux

Ich kann nicht klagen. Der Port kompilierte ohne Probleme durch (amd64!). Vielleicht hilft ein "portsclean -D" vor einem erneuten Versuch.

Mit welchem jdk hast du den 1.5 versucht zu bauen?
 
Tulkas schrieb:
Mit welchem jdk hast du den 1.5 versucht zu bauen?

??? Ehm ja wie? Ich hab einfach den port installieren wollen und hab dann eben die entsprechenden files ausm Internet gezogen. Ich verstehe die Frage nicht ...



???

Verblüffter Herakles
 
Herakles schrieb:
Ich hab einfach den port installieren wollen und hab dann eben die entsprechenden files ausm Internet gezogen. Ich verstehe die Frage nicht ...
Um einen nativen jdk1.[345] aus den Ports zu bauen brauchst du einen anderen jdk. Meistens wird dazu ein linux-binary (linux-sun-jdk1.4 ist im Makefile angegeben) genommen.
 
Also ich habe gerade die 1.5 bauen lassen. Allerdings in der Tat nicht ganz ohne Probleme (amd64).

Hatte selbiges Problem wie hier.:
http://lists.freebsd.org/pipermail/freebsd-amd64/2005-March/003882.html

Aber nun immerhin.:
Code:
%> java -version
java version "1.5.0-p1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-p1-robo_30_apr_2005_14_10)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0-p1-robo_30_apr_2005_13_34, mixed mode)

Und ja, natürlich, man braucht eine existierende JVM zum bootstrappen des neuen Builds. Bei mir hier.:
Code:
%> export JAVA_VERSION="1.4"
%> java -version
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
 
Ich werde dann jetzt mal erstmal ein Update auf den neusten Patch machen, makeworld und dann versuch ichs nochmal. Danach melde ich mich noch einmal. Erstmal danke.

Herakles
 
Bei mir ist das Problem nun gelöst, da ich mein System geupdated habe. Jetzt kompiliert jdk15 sauber durch und funktioniert einwandfrei.


Herakles
 
WARNING:
WARNING: This is ALPHA quality software, and suitable for testing ONLY!
WARNING:

===> jdk-1.5.0p1_1 has known vulnerabilities:
=> jdk -- jar directory traversal vulnerability.
Reference: <http://www.FreeBSD.org/ports/portaudit/18e5428f-ae7c-11d9-837d-00 0e0c2e438a.html>
=> Please update your ports tree and try again.
*** Error code 1


Hab auch mal ein Update auf 1.5 probiert. Scheint noch mackiger zu sein, so ,wie ich sagte.
 
i18n schrieb:
WARNING:
WARNING: This is ALPHA quality software, and suitable for testing ONLY!
WARNING:

===> jdk-1.5.0p1_1 has known vulnerabilities:
=> jdk -- jar directory traversal vulnerability.
Reference: <http://www.FreeBSD.org/ports/portaudit/18e5428f-ae7c-11d9-837d-00 0e0c2e438a.html>
=> Please update your ports tree and try again.
*** Error code 1


Hab auch mal ein Update auf 1.5 probiert. Scheint noch mackiger zu sein, so ,wie ich sagte.

Ich bekomme den Fehler schon bei 1.4

===> linux-sun-jdk-1.4.2.08_1 has known vulnerabilities:
=> jdk -- jar directory traversal vulnerability.
Reference: <http://www.FreeBSD.org/ports/portaudit/18e5428f-ae7c-11d9-837d-000e0c2e438a.html>
=> Please update your ports tree and try again.
*** Error code 1

Stop in /usr/ports/java/linux-sun-jdk14.
*** Error code 1


Kann ich ihm irgendwie sagen er soll es Trotzdem compilieren/installieren?
 
asg schrieb:

asg, hab ich gemacht, geht trotzdem nicht.

sunbird# cvsup -L 2 ports-supfile
[...]
Shutting down connection to server
Finished successfully
sunbird#
sunbird# portinstall java/jdk14
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 238 packages found (-0 +0) done]
---> Installing 'jdk-1.4.2p7_1' from a port (java/jdk14)
---> Building '/usr/ports/java/jdk14'
===> Cleaning for rpm-3.0.6_10

[...]


Warning: This JDK may be unstable. You are advised to use the native
FreeBSD JDK, in ports/java/jdk14.

This Java VM will attempt to obtain some system information by
accessing files in linux's procfs. You must install the Linux
emulation procfs filesystem for this to work correctly. The JVM
will exhibit various problems otherwise. This can be accomplished
by adding the following line to your /etc/fstab file:

linprocfs /compat/linux/proc linprocfs rw 0 0

and then, as root, executing the commands:

kldload linprocfs
mount /compat/linux/proc

======================================================================
===> linux-sun-jdk-1.4.2.08_1 has known vulnerabilities:
=> jdk -- jar directory traversal vulnerability.
Reference: <http://www.FreeBSD.org/ports/portaudit/18e5428f-ae7c-11d9-837d-000e0c2e438a.html>
=> Please update your ports tree and try again.
*** Error code 1

Stop in /usr/ports/java/linux-sun-jdk14.
*** Error code 1

Stop in /usr/ports/java/jdk14.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall38009.0 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! java/jdk14 (unknown build error)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
sunbird#
 
Zurück
Oben