Re: java on openbsd 4.0?

2007-01-13 Thread bofh

On 1/12/07, Kurt Miller [EMAIL PROTECTED] wrote:

Attached are two patch files that you can drop
in /usr/ports/devel/jdk/1.5/patches that hopefully
will fix your amd64 build issue. Please let me know
if this fixes it for you and I'll work on getting
this in 4.0-stable.


Thank you very much, the patches work for jdk-1.5p19 (from 4.0
ports.tar.gz) and for jdk-1.5p20 (cvs update for OPENBSD_4_0).


BTW, I replied to your email on ports@ (the mailing
list). Ports build problems should be dealt with there.
For example I have 17,838 unread messages from [EMAIL PROTECTED]
I easily could have missed your issue.


Sorry about that.  I'm replying to ports too (unless it bounces).



Re: java on openbsd 4.0?

2007-01-10 Thread J.C. Roberts
On Tuesday 09 January 2007 12:08, Kurt Miller wrote:
 On Tuesday 09 January 2007 2:27 pm, J.C. Roberts wrote:
  Building and installing the lang/jdk/1.3, lang/jdk/1.3-linux and
  lang/jdk/1.4 ports of 4.0-STABLE worked perfectly. Though I can't
  test the 1G issue you mentioned, I did hit an issue building the
  lang/kaffe dependency while trying to build the devel/jdk/1.5 port.
 
  I've managed to repeat the error on the second attempt when just
  trying to build /lang/kaffe
 
  The 'easy' part works just fine ;-)
    # make
  completes successuflly
 
  The problem is when building the package.
    # make package
  this dies a miserable death...
 
  You might want to note that the error below is sligtly different
  than the one posted to misc@ on the first time through. Somehow
  junk is getting appended to one of the path names. Documeowwve
  below and javaoosowxuownonowmkwssxozuwo in the error previously
  posted error sent to [EMAIL PROTECTED]

 Yea that sure is unusual. Kinda looks like memory or disk
 problems at first glance especially since it changes and
 has random values.

 There also is a possibility this is due to pthreads. I changed
 how pthreads deals with pipes in -current to work-around a random
 OOo build failure see mostly on mp systems. Did you by chance
 pipe stdout and/or stderr somewhere (i.e. tee, portslogger)?

Just for the archives.

My problem was caused by a corrupted file and was fixed by a simple cvs 
update.

I've continued with the testing (i386 dmesg in this thread) and I've 
been able to build devel/jdk/1.3 devel/jdk/1.4 and devel/jdk/1.5 
without any problems.

The only outstanding question is, has bofh gotten 1.5 to compile and 
install correctly on his amd64 box with Kurt's previous suggestion?

jcr



Re: java on openbsd 4.0?

2007-01-09 Thread Kurt Miller
On Monday 08 January 2007 8:38 pm, bofh wrote:
...
 data(kbytes) 1048576
...
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
...
 real mem = 3219894272 (3144428K)

Nice bug report (i.e. had everything I needed to deduce
the reason), but please post port building problems on
ports@ and/or to maintainer. I easily could have missed your
email due to the signal to noise ratio on [EMAIL PROTECTED]

The problem is that the jdk sizes the default memory
usage based on real mem installed in the box so with
systems with lots of real mem it can set the useage
higher then the 1G datasize limit.

I thought I fixed this before but perhaps the fix
was i386 only. I'll look into it again and send a
patch for you to test.

-Kurt



Re: java on openbsd 4.0?

2007-01-09 Thread J.C. Roberts
On Tuesday 09 January 2007 09:23, Kurt Miller wrote:
 On Monday 08 January 2007 8:38 pm, bofh wrote:
 ...

  data(kbytes) 1048576

 ...


  [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.M
 P

 ...

  real mem = 3219894272 (3144428K)

 Nice bug report (i.e. had everything I needed to deduce
 the reason), but please post port building problems on
 ports@ and/or to maintainer. I easily could have missed your
 email due to the signal to noise ratio on [EMAIL PROTECTED]

 The problem is that the jdk sizes the default memory
 usage based on real mem installed in the box so with
 systems with lots of real mem it can set the useage
 higher then the 1G datasize limit.

 I thought I fixed this before but perhaps the fix
 was i386 only. I'll look into it again and send a
 patch for you to test.

 -Kurt

Kurt,

Building and installing the lang/jdk/1.3, lang/jdk/1.3-linux and 
lang/jdk/1.4 ports of 4.0-STABLE worked perfectly. Though I can't test 
the 1G issue you mentioned, I did hit an issue building the lang/kaffe 
dependency while trying to build the devel/jdk/1.5 port.

I've managed to repeat the error on the second attempt when just trying 
to build /lang/kaffe

The 'easy' part works just fine ;-)
  # make
completes successuflly

The problem is when building the package.
  # make package
this dies a miserable death...

You might want to note that the error below is sligtly different than 
the one posted to misc@ on the first time through. Somehow junk is 
getting appended to one of the path names. Documeowwve below and 
javaoosowxuownonowmkwssxozuwo in the error previously posted error 
sent to [EMAIL PROTECTED]


Making install in lib
gmake[3]: Entering directory 
`/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib/external/classpath/lib'
true
top_builddir=.. 
top_srcdir=/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/kaffe-1.1.7/libraries/javalib/external/classpath
 /bin/sh ./gen-classlist.sh 
standard
Adding java source files from srcdir 
'/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/kaffe-1.1.7/libraries/javalib/external/classpath'.
Adding java source files from VM 
directory 
/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/kaffe-1.1.7/libraries/javalib/vmspecific
Adding generated files in builddir '..'.
gmake[3]: *** No rule to make target 
`/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/kaffe-1.1.7/libraries/javalib/external/classpath/javax/swing/event/Documeowwve~',
 
needed by `compile-classes'.  Stop.
gmake[3]: Leaving directory 
`/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib/external/classpath/lib'
gmake[2]: *** [install-recursive] Error 1
gmake[2]: Leaving directory 
`/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib/external/classpath'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib'
gmake: *** [install-recursive] Error 1
*** Error code 2

Stop in /usr/ports/lang/kaffe (line 1995 
of /usr/ports/infrastructure/mk/bsd.port.mk).
$ 


The error smells weird so I'll try updating -stable again just to make 
sure I don't have something corrupted. Since the last time I updated 
ports two weeks ago, I had to fsck this box due to a power loss during 
a bad storm, so the problem might be on my end. 



And of course, my dmesg.


OpenBSD 4.0-stable (GENERIC.MP) #2: Fri Dec 29 07:50:04 PST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Xeon(TM) CPU 2.00GHz (GenuineIntel 686-class) 2 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
real mem  = 1072754688 (1047612K)
avail mem = 970498048 (947752K)
using 4256 buffers containing 53739520 bytes (52480K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 11/01/04, BIOS32 rev. 0 @ 
0xffe90, SMBIOS rev. 2.3 @ 0xf0450 (114 entries)
bios0: Dell Computer Corporation Precision WorkStation 530 MT
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfba00/224 (12 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801BA LPC rev 
0x00)
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc/0x8800 0xc8800/0x2800
mainbus0: Intel MP Specification (Version 1.4) (DELL WS 530  )
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 99 MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Xeon(TM) CPU 2.00GHz (GenuineIntel 686-class) 2 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
mainbus0: bus 0 is type PCI
mainbus0: bus 1 is type PCI
mainbus0: bus 2 is type PCI
mainbus0: bus 3 is type PCI
mainbus0: bus 4 is type PCI
mainbus0: bus 5 is type ISA
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: 

Re: java on openbsd 4.0?

2007-01-09 Thread Kurt Miller
On Tuesday 09 January 2007 2:27 pm, J.C. Roberts wrote:
 Building and installing the lang/jdk/1.3, lang/jdk/1.3-linux and 
 lang/jdk/1.4 ports of 4.0-STABLE worked perfectly. Though I can't test 
 the 1G issue you mentioned, I did hit an issue building the lang/kaffe 
 dependency while trying to build the devel/jdk/1.5 port.
 
 I've managed to repeat the error on the second attempt when just trying 
 to build /lang/kaffe
 
 The 'easy' part works just fine ;-)
   # make
 completes successuflly
 
 The problem is when building the package.
   # make package
 this dies a miserable death...
 
 You might want to note that the error below is sligtly different than 
 the one posted to misc@ on the first time through. Somehow junk is 
 getting appended to one of the path names. Documeowwve below and 
 javaoosowxuownonowmkwssxozuwo in the error previously posted error 
 sent to [EMAIL PROTECTED]

Yea that sure is unusual. Kinda looks like memory or disk
problems at first glance especially since it changes and
has random values.

There also is a possibility this is due to pthreads. I changed
how pthreads deals with pipes in -current to work-around a random
OOo build failure see mostly on mp systems. Did you by chance
pipe stdout and/or stderr somewhere (i.e. tee, portslogger)?

 
 
 Making install in lib
 gmake[3]: Entering directory 
 `/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib/external/classpath/lib'
 true
 top_builddir=.. 
 top_srcdir=/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/kaffe-1.1.7/libraries/javalib/external/classpath
  /bin/sh ./gen-classlist.sh 
 standard
 Adding java source files from srcdir 
 '/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/kaffe-1.1.7/libraries/javalib/external/classpath'.
 Adding java source files from VM 
 directory 
 /usr/ports/lang/kaffe/w-kaffe-1.1.7p2/kaffe-1.1.7/libraries/javalib/vmspecific
 Adding generated files in builddir '..'.
 gmake[3]: *** No rule to make target 
 `/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/kaffe-1.1.7/libraries/javalib/external/classpath/javax/swing/event/Documeowwve~',
  
 needed by `compile-classes'.  Stop.
 gmake[3]: Leaving directory 
 `/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib/external/classpath/lib'
 gmake[2]: *** [install-recursive] Error 1
 gmake[2]: Leaving directory 
 `/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib/external/classpath'
 gmake[1]: *** [install-recursive] Error 1
 gmake[1]: Leaving directory 
 `/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib'
 gmake: *** [install-recursive] Error 1
 *** Error code 2
 
 Stop in /usr/ports/lang/kaffe (line 1995 
 of /usr/ports/infrastructure/mk/bsd.port.mk).
 $ 
 
 
 The error smells weird so I'll try updating -stable again just to make 
 sure I don't have something corrupted. Since the last time I updated 
 ports two weeks ago, I had to fsck this box due to a power loss during 
 a bad storm, so the problem might be on my end. 
 
 
 
 And of course, my dmesg.
 
 
 OpenBSD 4.0-stable (GENERIC.MP) #2: Fri Dec 29 07:50:04 PST 2006
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
 cpu0: Intel(R) Xeon(TM) CPU 2.00GHz (GenuineIntel 686-class) 2 GHz
 cpu0: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
 real mem  = 1072754688 (1047612K)
 avail mem = 970498048 (947752K)
 using 4256 buffers containing 53739520 bytes (52480K) of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+(00) BIOS, date 11/01/04, BIOS32 rev. 0 @ 
 0xffe90, SMBIOS rev. 2.3 @ 0xf0450 (114 entries)
 bios0: Dell Computer Corporation Precision WorkStation 530 MT
 apm0 at bios0: Power Management spec V1.2
 apm0: AC on, battery charge unknown
 apm0: flags 30102 dobusy 0 doidle 1
 pcibios0 at bios0: rev 2.1 @ 0xf/0x1
 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfba00/224 (12 entries)
 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801BA LPC rev 
 0x00)
 pcibios0: PCI bus #4 is the last bus
 bios0: ROM list: 0xc/0x8800 0xc8800/0x2800
 mainbus0: Intel MP Specification (Version 1.4) (DELL WS 530  )
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: apic clock running at 99 MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Xeon(TM) CPU 2.00GHz (GenuineIntel 686-class) 2 GHz
 cpu1: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
 mainbus0: bus 0 is type PCI
 mainbus0: bus 1 is type PCI
 mainbus0: bus 2 is type PCI
 mainbus0: bus 3 is type PCI
 mainbus0: bus 4 is type PCI
 mainbus0: bus 5 is type ISA
 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 2
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 Intel 82860 Host rev 0x04: rng active, 
 7Kb/sec
 ppb0 at pci0 dev 1 function 0 Intel 82850/82860 AGP rev 0x04
 pci1 at ppb0 bus 1
 vga1 at pci1 dev 0 

Re: java on openbsd

2006-11-16 Thread Ian Darwin
 In light of the GPL release as of two days ago, is there any legal
 obstacle left preventing OpenBSD from shipping a binary package?

That release only applies to Java 6 and 7, and only as they release code
in stages. We expect to be able to ship binary packages sometime  next year
as a result of this.



Re: java on openbsd

2006-11-14 Thread Kurt Miller
On Tuesday 14 November 2006 8:07 am, you wrote: 
 However, whenever I run java, I get a Can't detect initial thread stack 
 location - find_vma failed error. This is for sun's jdk 1.5.06 as well 
 as one of the newer 1.6 versions. IBM's jdk1.4 says it cannot read or 
 write (not sure exactly anymore) to /proc/. I've tried running all 
 three versions as root to check for permission errors, but it makes no 
 difference. I've googled for hours trying to find a solution, but can't 
 seem to fix it.

Our linux emulation doesn't support the features needed
by linux jdk binaries (1.4 and up). Our native jdk's work
quite well (especially devel/jdk/1.5) but you need to
build from source.

-Kurt