gcj with date manip. and french locale (intel AND linuxppc)
Mark Wielaard
mark@klomp.org
Wed Mar 7 10:00:00 GMT 2001
Hi,
On Wed, Mar 07, 2001 at 06:50:24PM +0100, Mark Wielaard wrote:
> Hi,
>> On Wed, Mar 07, 2001 at 04:27:47PM +0100, Maurice DIAMANTINI wrote:
>> > gcj -O0 -g -static --main=Test -o test Test.java
> > ./test
>> I am not sure what goes wrong exactly. But it seems to work if you compile
> without -static. You will have define LD_LIBRARY_PATH:
> export LD_LIBRARY_PATH=/usr/local/pack/gcc-3.0-cvs-20010306/powerpc-linux/lib
But I now notice that you wrote:
> > 1 - I'm not any more ble to compile any programm dynamicaly
> >
> > ./test: error in loading shared libraries:
> > /usr/local/pack/gcc-3.0-cvs/powerpc-linux/lib/libzgcj.so.0:
> > R_PPC_REL24 relocation out of range
> >
> > (perhaps a bad install, so this is not the problem here))
I don't have that problem (on powerpc) so it could be a bad install.
I don't have a french locale but get a similar error when compiling
with -static. So the problem seems to be with loading ResourceBundles
when the binary is staticly linked.
Does first compiling to a class file and then running with gij work
for you? It does work for me:
mark@multatuli:~$ gcj -C Test.java
mark@multatuli:~$ gij Test
getTime=983984332098
date=Wed Mar 07 17:58:52 GMT-01:00 2001
Cheers,
Mark
--
Stuff to read:
< http://www.toad.com/gnu/whatswrong.html >
What's Wrong with Copy Protection, by John Gilmore
More information about the Java
mailing list