Re: Classpath Tools and JamVM with --disable-zip

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sun Jan 28 2007 16:10:31 -0800, Casey Marshall wrote:
> >% jamvm gnu.classpath.tools.jar.Main
> >
> 
> [...]
> 
> >Caused by: java.io.IOException: Inappropriate ioctl for device
> >   at gnu.java.nio.VMChannel.available(Native Method)
> 
> That method does this in Classpath:
> 
>   jint avail = 0;
>   if (ioctl (fd, FIONREAD, &avail) == -1)
>     JCL_ThrowException (env, IO_EXCEPTION, strerror (errno));
>   return avail;
> 
> I'm not a FreeBSD expert, but I would have thought that it would  
> support the FIONREAD ioctl. The FD may not be a file in this case,  
> but I can't imagine what it would be otherwise, given the rest of the  
> stack:

Definitely FreeBSD supports for the FIONREAD ioctl (I've searched for it
in the kernel sources :). May be this is a 6.0 specific bug. As always
in my case, FreeBSD problem reports database is busy now :/

> >So, can we use Classpath Tools when JamVM was compiled with
> >--disable-zip option?
> >
> 
> As far as I know this should work. The gotcha here is likely the  
> properties files, which the code was trying to read when it threw  
> this exception.
> 
> Do you have the file gnu/classpath/tools/common/Messages.properties  
> in your share/classpath directory?

Sure.

-- 
AG5745-RIPE


[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux