[kaffe] kaffe's license

2005-06-14 Thread toodulli
hi all.
I wondering kaffe's license.
After I modify kaffe's source code for commercial distribution, I want to
use for kaffe virtual machine in digital television settop box.
And then, Have I a duty to give money? Where?

additional qustaion..
If I don't used a Kaffe' virtual machine.
If CDC-VM was loaded in the DTV settup box, how much do I give in Sun corp.
If I used Sun's libraries without cdcvm, Have I a duty to give money in
Sun corp.

I'm so sorry to have question poorly.





___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Cross compile 1.1.5 for arm - configure: error: libXtst NOT found, required for GdkRobot

2005-06-14 Thread Martin West
I am getting the following error cross configuring kaffe for the arm on
fedora core 3 (FC3) ...


checking for declaration of swab... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking for XTestQueryExtension in -lXtst... no
configure: error: libXtst NOT found, required for GdkRobot

[EMAIL PROTECTED] kaffe-1.1.5]$ locate libXtst
/usr/X11R6/lib/libXtst.so.6
/usr/X11R6/lib/libXtst.so
/usr/X11R6/lib/libXtst.a
/usr/X11R6/lib/libXtst.so.6.1
[EMAIL PROTECTED] kaffe-1.1.5]$ uname -a
Linux tp1.thecla.com 2.6.11-1.14_FC3_ACPI #1 Sun May 1 00:03:34 BST 2005
i686 i686 i386 GNU/Linux

I use the following configure script ...

#
#!/bin/sh

source set-gcc-z

./configure --host=arm-linux --build=i686-linux $*
#

set-gcc-z 

export PATH=/opt/Embedix/tools/arm-linux/bin:$PATH

I have the following rpms installed ...

binutils-cross-arm-2.11.2-0.i386.rpm  
glibc-arm-2.2.2-0.i386.rpm
qtopia-free-1.5.0-1.i386.rpm
gcc-cross-sa1100-2.95.2-0.i386.rpm
linux-headers-arm-sa1100-2.4.6-3.i386.rpm

any suggestions welcome.

My actual target is a zaurus 5000d running oz 3.5.3

-- 
regards Martin West



___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Re: Porting Kaffe-1.1.4 on mips lx4189

2005-06-14 Thread Riccardo
Hey,

 This may have nothing to do with your problem, but
 note that the Lexra processors aren't really 100%
 MIPS compatible - they don't implement the load
 left and load right instructions used to handle
 unaligned (typically, packed) data. Unless the OS
 knows to emulate those instructions, or the compiler
 is told to avoid emitting them, you could get the sort=20
 of behavior you describe.

although not perfectly, kaffe does run on Mips, to be sure however I'm 
running a build of CVS right now on my r4400 system. I will post 
resulsts later here.

The instructions to load unaligned data are copyrighted, afaik. Thus a 
non-official implementation of MIPS can't have them. Usually gcc doesn't 
generate unaligned accesses, but kaffe could.

In any case, kaffe 1.1.4 is a bit old and you might try either 1.1.5 or 
even better CVS. But if the problem is your CPU then... you'll have 
trouble.

-R


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] results on solaris 2.6 sparc v8

2005-06-14 Thread Riccardo
Hello,

these are the failures on solaris 2.6, sparc v8

(6 failures):

CLTestJLock.fail   ProcessClassStop.fail
NetworkInterfaceTest.fail  RefTest.fail
ProcessClassLockTest.fail  SecureRandomTest.fail

is SecureRandomTest a new test? or did something change there? it didn't 
use to appear as a failure.

-R


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Re: kaffe's license

2005-06-14 Thread Jim Pick
Kiyo Inaba wrote:
 toodulli wrote:
 
I wondering kaffe's license.
After I modify kaffe's source code for commercial distribution, I want to
use for kaffe virtual machine in digital television settop box.
And then, Have I a duty to give money? Where?
 
 
 Good to hear someone is trying to deploy the usability of kaffe :-)
 
 Since kaffe is licensed by GNU General Public License or GPL, you need
 not to pay money at all. The main obligation for you is if you modify some
 part of kaffe, you also have to make this modified portion open.
 
 See more detail in 
 http://www.opensource.org/licenses/index.php

I hate to add FUD (fear, uncertainty, doubt) to our own project, but I
think some history of the licensing of the project might be
illustrative.  It's all a bit unclean, unfortunately.

We should right a FAQ on this...

In the early days, Kaffe was released by Tim Wilkinson under a BSD style
license.  When he started a company (Transvirtual) to commercialize the
technology, they started doing newer releases under the GPL, which was
supposed to discourage people from using it in commercial products, so
they could sell their proprietary version.  That business model didn't
actually work very well, and Transvirtual eventually closed down.

The GPL license is somewhat undefined in terms of how it interacts with
other code.  It's not a license I would have chosen for a virtual
machine.  Some people say if you run an application on top of the VM,
you would have to make that application GPL-licensed too.  Some people
say that's nonsense (I tend to agree with that viewpoint).

To my knowledge, I'm not aware of any cases where somebody has been sued
for running non-GPL code on a GPL'd virtual machine.  It's not a common
scenario.  I think Transvirtual actually came to regret re-releasing the
VM under the GPL, since they saw that people were actually using the
GPL'd version for commercial developments, and were not coming to them
for the proprietary version.

The Kaffe project never demanded copyright assignment, so the
intellectual property rights for the various bits in the virtual machine
still reside with the authors of those parts (similar to how the Linux
kernel is owned).  This means that the parts of the virtual machine
contributed by Transvirtual are still owned by whoever has acquired the
assets of Transvirtual.  The company at twincom.net looks like they may
have acquired the assets, but I don't know what sort of legal agreements
they have signed.  Also, other contributors to Kaffe, eg. the people on
this mailing list, own the parts they have contributed.

Personally, I would never sue anybody over using Kaffe for any purpose,
and I'm sure most of the other contributors feel the same way.  I would
like to see users comply with the spirit of the GPL, and contribute
their modifications to the virtual machine back to the project.

However, I cannot 100% guarantee that the whoever holds or buys the
rights to the old Transvirtual stuff might not someday demand compliance
with their interpretation of the GPL, and threaten to sue if that does
not happen.  I suspect that this scenario is somewhat unlikely, since it
would cost a lot of money to sue, the legal case probably isn't very
good, and the amount of damages that they could get would probably be
minimal.  I suspect the current owners of the old Transvirtual IP are
aware that they own it, but they also realize that it would be extremely
difficult to extract any value out of it using this method.

So, if you absolutely can't take any legal risks, you might be better
off just prototyping with Kaffe, and then choosing another
Classpath-based virtual machine to actually put in your product.

If somebody was motivated, we could attempt to track down all the IP
holders that have contributed to Kaffe, and attempt to relicense the
project or get copyright assignment.  That may be difficult though,
especially since some of them have died.  It would probably just be
easier to direct efforts to some of the other virtual machine projects
out there with cleaner licensing, especially since they now share so
much with Kaffe (eg. the Classpath libraries).

That said, I personally don't think that Kaffe's somewhat unclear
licensing situation is much of an obstacle for most uses, so I don't see
any reason not to keep the project going.

Cheers,

 - Jim


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Cross compile 1.1.5 for arm - configure: error: libXtst NOT found, required for GdkRobot

2005-06-14 Thread Martin West
Thanks

On Tue, 2005-06-14 at 18:52 +0200, Dalibor Topic wrote:
 Martin West wrote:
  I am getting the following error cross configuring kaffe for the arm on
  fedora core 3 (FC3) ...
 
  checking for XTestQueryExtension in -lXtst... no
  configure: error: libXtst NOT found, required for GdkRobot
 
 Hallo Martin,
 
 Kaffe 1.1.5 uses classpath's AWT implementation by default, which in 
 recent versions needs the Xtst extension to X11 to implement AWt robot 
 functionality. If you do not intend to use AWT or swing on your target, 
 you can configure support away for them using --disable-native-awt. If 
 you intend to run 1.1-like AWT applications only, you may want to use 
 the Xlib or Qt/Embedded based AWT implementation available as additional 
 options. See FAQ/FAQ.awt for details on how to configure them, and what 
 they support.
 
 cheers,
 dalibor topic
-- 
regards Martin West
01962 712 137
07879 680 096
http://thecla.homeftp.net
aim:amartinwest
msn:[EMAIL PROTECTED]


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] mips jit broken

2005-06-14 Thread Riccardo
Hey all!

compiling cvs on mips-linux using JIT and jthreads results in even the 
jitBasic test failing:

40: sw  i23,-44(fp)
40: check_stack_limit:
48: sgtui25,i5,sp
48: bne i25,zero,+3
4c: nop
54: call [soft_stackoverflow]
58: nop
/bin/sh: line 1: 12516 Aborted env TEST_
CLASSES=ConstMethods.class ConstMathMethods.class ParameterizedMethods.
class ParameterizedMathMethods.class ParameterizedLogicalMethods.class 
ParameterizedBitwiseMethods.class ControlFlowMethods.class 
StaticMethodCall.class TypeConversion.class StaticFields.class 
PrimitiveArrays.class ObjectFields.class MethodOptimizations.class 
NativeMethodCall.class Exceptions.class `BOOTCLASSPATH=.; export 
BOOTCLASSPATH; . ../../BUILD_ENVIRONMENT; sed 's/.*export \(.*\)/echo \
1=$\1/'  ../../BUILD_ENVIRONMENT | sh` ${dir}$tst
FAIL: jitBasic

1 of 1 tests failed

cheers,
 Riccardo


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Cross compile 1.1.5 for arm : configure: error: libXtst NOT found, required for GdkRobot

2005-06-14 Thread Martin West
I am getting the following error cross configuring kaffe for the arm on
fedora core 3 (FC3) ...


checking for declaration of swab... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking for XTestQueryExtension in -lXtst... no
configure: error: libXtst NOT found, required for GdkRobot

[EMAIL PROTECTED] kaffe-1.1.5]$ locate libXtst
/usr/X11R6/lib/libXtst.so.6
/usr/X11R6/lib/libXtst.so
/usr/X11R6/lib/libXtst.a
/usr/X11R6/lib/libXtst.so.6.1
[EMAIL PROTECTED] kaffe-1.1.5]$ uname -a
Linux tp1.thecla.com 2.6.11-1.14_FC3_ACPI #1 Sun May 1 00:03:34 BST 2005
i686 i686 i386 GNU/Linux

I use the following configure script ...

#
#!/bin/sh

source set-gcc-z

./configure --host=arm-linux --build=i686-linux $*
#

set-gcc-z 

export PATH=/opt/Embedix/tools/arm-linux/bin:$PATH

I have the following rpms installed ...

binutils-cross-arm-2.11.2-0.i386.rpm  
glibc-arm-2.2.2-0.i386.rpm
qtopia-free-1.5.0-1.i386.rpm
gcc-cross-sa1100-2.95.2-0.i386.rpm
linux-headers-arm-sa1100-2.4.6-3.i386.rpm

any suggestions welcome.



___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Cross compile 1.1.5 for arm - configure: error: libXtst NOT found, required for GdkRobot

2005-06-14 Thread Martin West
I do need awt/swing but not completely understanding the information in
the FAQ.awt in respect of cross compiling for a zaurus with oz353, and
trying to check the end to end process I used 

./configure --prefix=/usr/local/kaffe-arm host=arm-linux --build=i686-
linux --disable-native-awt --enable-pure-java-math
ac_cv_c_char_unsigned=yes

which gave error ...

 gcc -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include/kaffe
-I../../../kaffe/kaffevm/systems/unix-pthreads -
I../../../kaffe/kaffevm/jni -I.. -I./.. -DTRANSLATOR -I../../../include
-I/usr/local/downloads/zaurus/kaffe-1.1.5/./kaffe/kaffevm -
I/usr/local/downloads/zaurus/kaffe-1.1.5/./kaffe/kaffevm/jit -
I/usr/local/downloads/zaurus/kaffe-1.1.5/./kaffe/kaffevm/systems/unix-
pthreads -I../../../replace -I../../../binreloc -I../../../config -
I../../../include -DKAFFE_VMDEBUG -D_REENTRANT -g -O2 -Wall -fsigned-
char -fno-omit-frame-pointer -pthread -DENABLE_BINRELOC -c methodcalls.c
-Wp,-MD,.deps/methodcalls.TPlo  -fPIC -DPIC -o .libs/methodcalls.o
../../../config/arm/sysdepCallMethod.h: In function `engine_callMethod':
../../../config/arm/sysdepCallMethod.h:38: error: invalid register name
`r0' for register variable
../../../config/arm/sysdepCallMethod.h:39: error: invalid register name
`r1' for register variable
../../../config/arm/sysdepCallMethod.h:40: error: invalid register name
`r2' for register variable
../../../config/arm/sysdepCallMethod.h:41: error: invalid register name
`r3' for register variable
../../../config/arm/sysdepCallMethod.h:43: error: invalid register name
`f0' for register variable
../../../config/arm/sysdepCallMethod.h:71: error: unknown register name
`lr' in `asm'
../../../config/arm/sysdepCallMethod.h:71: error: unknown register name
`ip' in `asm'
make[3]: *** [methodcalls.lo] Error 1
make[3]: Leaving directory
`/usr/local/downloads/zaurus/kaffe-1.1.5/kaffe/kaffevm/jit'


On Tue, 2005-06-14 at 18:52 +0200, Dalibor Topic wrote: 
 Martin West wrote:
  I am getting the following error cross configuring kaffe for the arm on
  fedora core 3 (FC3) ...
 
  checking for XTestQueryExtension in -lXtst... no
  configure: error: libXtst NOT found, required for GdkRobot
 
 Hallo Martin,
 
 Kaffe 1.1.5 uses classpath's AWT implementation by default, which in 
 recent versions needs the Xtst extension to X11 to implement AWt robot 
 functionality. If you do not intend to use AWT or swing on your target, 
 you can configure support away for them using --disable-native-awt. If 
 you intend to run 1.1-like AWT applications only, you may want to use 
 the Xlib or Qt/Embedded based AWT implementation available as additional 
 options. See FAQ/FAQ.awt for details on how to configure them, and what 
 they support.
 
 cheers,
 dalibor topic
-- 
regards Martin West
01962 712 137
07879 680 096
http://thecla.homeftp.net
aim:amartinwest
msn:[EMAIL PROTECTED]


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Cross compile 1.1.5 for arm - configure: error: libXtst NOT found, required for GdkRobot

2005-06-14 Thread Martin West
Ignore, didnt have the arm gcc in the path - DOH

On Tue, 2005-06-14 at 23:20 +0100, Martin West wrote:
 I do need awt/swing but not completely understanding the information in
 the FAQ.awt in respect of cross compiling for a zaurus with oz353, and
 trying to check the end to end process I used 
 
 ./configure --prefix=/usr/local/kaffe-arm host=arm-linux --build=i686-
 linux --disable-native-awt --enable-pure-java-math
 ac_cv_c_char_unsigned=yes
 
 which gave error ...
 
  gcc -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include/kaffe
 -I../../../kaffe/kaffevm/systems/unix-pthreads -
 I../../../kaffe/kaffevm/jni -I.. -I./.. -DTRANSLATOR -I../../../include
 -I/usr/local/downloads/zaurus/kaffe-1.1.5/./kaffe/kaffevm -
 I/usr/local/downloads/zaurus/kaffe-1.1.5/./kaffe/kaffevm/jit -
 I/usr/local/downloads/zaurus/kaffe-1.1.5/./kaffe/kaffevm/systems/unix-
 pthreads -I../../../replace -I../../../binreloc -I../../../config -
 I../../../include -DKAFFE_VMDEBUG -D_REENTRANT -g -O2 -Wall -fsigned-
 char -fno-omit-frame-pointer -pthread -DENABLE_BINRELOC -c methodcalls.c
 -Wp,-MD,.deps/methodcalls.TPlo  -fPIC -DPIC -o .libs/methodcalls.o
 ../../../config/arm/sysdepCallMethod.h: In function `engine_callMethod':
 ../../../config/arm/sysdepCallMethod.h:38: error: invalid register name
 `r0' for register variable
 ../../../config/arm/sysdepCallMethod.h:39: error: invalid register name
 `r1' for register variable
 ../../../config/arm/sysdepCallMethod.h:40: error: invalid register name
 `r2' for register variable
 ../../../config/arm/sysdepCallMethod.h:41: error: invalid register name
 `r3' for register variable
 ../../../config/arm/sysdepCallMethod.h:43: error: invalid register name
 `f0' for register variable
 ../../../config/arm/sysdepCallMethod.h:71: error: unknown register name
 `lr' in `asm'
 ../../../config/arm/sysdepCallMethod.h:71: error: unknown register name
 `ip' in `asm'
 make[3]: *** [methodcalls.lo] Error 1
 make[3]: Leaving directory
 `/usr/local/downloads/zaurus/kaffe-1.1.5/kaffe/kaffevm/jit'
 
 
 On Tue, 2005-06-14 at 18:52 +0200, Dalibor Topic wrote: 
  Martin West wrote:
   I am getting the following error cross configuring kaffe for the arm on
   fedora core 3 (FC3) ...
  
   checking for XTestQueryExtension in -lXtst... no
   configure: error: libXtst NOT found, required for GdkRobot
  
  Hallo Martin,
  
  Kaffe 1.1.5 uses classpath's AWT implementation by default, which in 
  recent versions needs the Xtst extension to X11 to implement AWt robot 
  functionality. If you do not intend to use AWT or swing on your target, 
  you can configure support away for them using --disable-native-awt. If 
  you intend to run 1.1-like AWT applications only, you may want to use 
  the Xlib or Qt/Embedded based AWT implementation available as additional 
  options. See FAQ/FAQ.awt for details on how to configure them, and what 
  they support.
  
  cheers,
  dalibor topic
-- 
regards Martin West
01962 712 137
07879 680 096
http://thecla.homeftp.net
aim:amartinwest
msn:[EMAIL PROTECTED]


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Compile error esd.h not found

2005-06-14 Thread Martin West
Now get compile error ...

 gcc -DHAVE_CONFIG_H -I. -I. -I../../../../config -
I../../../../include/kaffe -I../../../../include -
I/usr/local/downloads/zaurus/kaffe-1.1.5/./kaffe/kaffevm -
I/usr/local/downloads/zaurus/kaffe-1.1.5/./kaffe/kaffevm/jit -
I/usr/local/downloads/zaurus/kaffe-1.1.5/./kaffe/kaffevm/systems/unix-
pthreads -I../../../../replace -I../../../../binreloc -
I../../../../config -I../../../../include -DKAFFE_VMDEBUG -D_REENTRANT -
g -O2 -Wall -fsigned-char -fno-omit-frame-pointer -pthread -
DENABLE_BINRELOC-c org_tritonus_lowlevel_esd_EsdRecordingStream.c -Wp,-
MD,.deps/libtritonusesd_la-
org_tritonus_lowlevel_esd_EsdRecordingStream.TPlo  -fPIC -DPIC -
o .libs/libtritonusesd_la-org_tritonus_lowlevel_esd_EsdRecordingStream.o
In file included from org_tritonus_lowlevel_esd_EsdRecordingStream.c:8:
common.h:25: esd.h: No such file or directory

with configure ...

./configure prefix=/usr/local/kaffe-arm-linux host=arm-linux --
build=i686-linux --disable-native-awt --enable-pure-java-math
ac_cv_c_char_unsigned=yes --with-rt-jar=/usr/local/kaffe/jre/lib/rt.jar

using kaffe 1.1.5 on FC3.


-- 
regards Martin West
01962 712 137
07879 680 096
http://thecla.homeftp.net
aim:amartinwest
msn:[EMAIL PROTECTED]


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Compile error esd.h not found

2005-06-14 Thread Kiyo Inaba
Now get compile error ...

As the message says, your gcc can not find proper 'esd.h'.
Double check you have esd installed, or set '--disable-sound'
configuration option.

Kiyo


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe