Re: Java port

From: John (j.telford_at_sympatico.ca)
Date: 12/13/04

  • Next message: James: "Re: Home Network, step by step?"
    Date: Mon, 13 Dec 2004 00:38:47 -0500
    To: freebsd-newbies@freebsd.org
    
    

    Update: December 12, 2004,
    The jdk146 port has been updated and is no longer forbidden and I
    successfully upgraded from jdk1.4.2p6_6 in the following way:
    As of Dec 12, 2004 - this may change tomorrow or in the next 10 minutes,
    such is the nature of ports ;)
    - cvsup all ports.
    - installed portupgrade port, check it's man page for proper use and
    cautions.

    - loaded linprococfs which was required on the first build.
    # kldload linprocfs
    # mount -t linprocfs linprocfs /compat/linux/proc

    - get the proper port name with 'portversion', first time may take a
    while and may fail on error. see note on portupgrade at freshports.org
    for solution.
    # portversion -v
    - run portupgrade, i prefer to do just jdk by itself to see how it goes.
      I had not removed the files from the /usr/ports/distfiles and used the
    same jdk and bsd patch files. Earlier jdk versions will require
    downloads first.
    # portupgrade -v <jdk port name> -l <logfile>

    Everything compiled fine and I did not hit the 'hotspot' error as in the
    first build.

    - I then upgrade the rest of the of the outdated ports with:
    # portupgrade -arR -l <logfile>
    Thats your choice of course.

    John wrote:
    > My notes are below and are current only to November 28, 2004.
    > FreeBSD 4.10 jdk142
    >> I have notes on all this from the build i just finished at the office
    >> and will post.
    >> Tip #1
    >> You can only use "make minimal=YES" on the current port <= that case
    >> may be backwards. Due to the java security bug found last week.
    >> Update all ports first - it has a lot of dependents.
    >> This is a brutal build, takes hours on the fastest dual box, my notes
    >> will help save you some trouble hopefully. Anyone know a faster way to
    >> get jdk on a freebsd box ?
    >> J
    >>
    >
    > Building java jdk142 from ports.
    >
    > Update all ports first – it has a lot of dependents.
    > If building remotely install 'screen' from ports. It will allow you to
    > attach detach from the session. Warning do not pkg_add screen, it has a
    > race problem.
    >
    >
    > The build will ask you for required files to be downloaded to
    > /usr/ports/distfiles, these are from a build on Nov 28, 2004. Update
    > ports and check the Makefile for changes or do the make and grab the
    > files as they come up.
    >
    > From http://www.eyesbeyond.com/freebsddom/java/JDK14SCSLConfirm.html
    > you need the FreeBSD Patchset.
    > bsd-jdk14-patches-6.tar.gz
    >
    > From Sun download:
    > j2sdk-1_4_2-bin-scsl.zip
    > j2sdk-1_4_2-src-scsl.zip
    > j2sdk-1_4_2_06-linux-i586.bin
    >
    >
    > make MINIMAL=yes install to avoid JAVA vulnerability, that currently
    > exists on Nov 28, 2004. You won't get the Browser plug-in.
    >
    > After hours compiling it will probably error on :
    >
    > Java HotSpot(TM) Client VM warning: Can't detect initial thread stack
    > location
    > /usr/ports/java/jdk14/work/control/build/bsd-i586/gensrc/java/util/CurrencyData.java:1:
    > 'class' or 'interface' expected
    > Java HotSpot(TM) Client VM warning: Can't detect initial thread stack
    > location
    >
    > Solution is:
    > http://groups.google.ca/groups?hl=en&lr=&threadm=mwhQc.246469%24Oq2.107712%40attbi_s52&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26q%3Dfreebsd%2B%27class%27%2Bor%2B%27interface%27%2Bexpected%26btnG%3DSearch
    >
    >
    > "Edit
    > /usr/ports/java/jdk14/work/control/build/bsd-i586/gensrc/java/util/CurrencyData.java
    >
    >
    > There are two lines, 1st and last, that begin with "Java HotSpot(TM)",
    > comment
    > them out with //."
    >
    > I only had to comment the first line.
    >
    > Restart (it's not from the beginning as long as you have'nt done a 'make
    > clean' ) you will get the instructions:
    >
    > make MINIMAL=yes install
    > ===> Building for jdk-minimal-1.4.2p6_6
    > ERROR: You have to have LINPROCFS mounted before
    > starting to build of native JDK 1.4.2.
    >
    > You may do it by following set of commands:
    > # kldload linprocfs
    > and
    > # mount -t linprocfs linprocfs /compat/linux/proc
    > *** Error code 1
    > Stop in /usr/ports/java/jdk14.
    >
    > So do that:
    > server01# kldload linprocfs
    > server01# mount -t linprocfs linprocfs /compat/linux/proc
    >
    > Load and continue compiling.
    > It should now complete fairly quick.
    >
    > Regards, John.

    _______________________________________________
    freebsd-newbies@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
    To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"


  • Next message: James: "Re: Home Network, step by step?"

    Relevant Pages

    • Re: Java port
      ... FreeBSD 4.10 jdk142 ... Due to the java security bug found last week. ... Building java jdk142 from ports. ... You have to have LINPROCFS mounted before ...
      (freebsd-newbies)
    • Re: Error Compiling Open Office
      ... have you loaded the linprocfs as suggested? ... I just updated my ports and tried to compile open office. ... Error code 1, while making 'build_instsetoo_native' ...
      (freebsd-questions)
    • Re: ELF dynamic loader name [was: sbrk(2) broken]
      ... (lang/drscheme in ports) ... twinhead# make install ... Java HotSpotServer VM (build ... Java2 Runtime Environment, Standard Edition ...
      (freebsd-current)
    • jdk13 native plugin stopped working on native mozilla on -CURRENT
      ... answer rather than tromping off to ports or java. ... I get an unresloved symbol at mozilla ... Undefined symbol "_ZTV16nsQueryInterface"] ...
      (freebsd-hackers)
    • Re: [freebsd-stable] Re: Macromedia FLASH ...
      ... Mozilla (my preferred browser), Galeon, and Opera. ... recently built 4.9-STABLE and I use cvsup and portupgrade to keep all my ... ports closely syncronized. ... I have also a problem with java plug-in. ...
      (freebsd-stable)