both -fPIC and 64-bit (long) URB addresses fixed in CVS, thanks.

On Dec 18, 2007 4:01 PM, Dmitri Kostioukov <[EMAIL PROTECTED]> wrote:
> The problem was with memory address size. Specifically, calls
> setUrbAddress/getUrbAddress treat adress as int and only save 32-bit.
>
> In order to fix it, I've had to change the calls to use long and change
> the signature. Also, I needed to define call CheckedCallLongMethod and
> use that instead.
>
> Everything seems to work now.
>
>
> Dan Streetman wrote:
> > I have not tried it myself, although I should.  I think I remember
> > there being some problems with usbfs's ioctls on 64bit platforms...
> >
> > I can't promise when it will be fixed, but please open a bug on the
> > sourceforge project page, so we can track the problem.
> >
> > On Dec 13, 2007 1:07 PM, Dmitri Kostioukov <[EMAIL PROTECTED]> wrote:
> >
> >> I've been using javax.usb for quite some time now. I've recently updated
> >> the system and cannot get it to work in 64-bit mode.
> >>
> >> I had to add "-fPIC" flag for it to compile. It seems to work, finds the
> >> device but then crashes on IO. I don't know precisely what operation it
> >> crashes on but could figure it out if it makes a big difference. Here's
> >> the message I'm getting:
> >>
> >> #
> >> # An unexpected error has been detected by Java Runtime Environment:
> >> #
> >> #  SIGSEGV (0xb) at pc=0x00002aaad488639c, pid=20612, tid=1104439632
> >> #
> >> # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0_03-b05 mixed mode)
> >> # Problematic frame:
> >> # C  [libJavaxUsb.so+0x1c39c]  complete_interrupt_pipe_request+0x26f
> >> #
> >>
> >> Everything works fine when compiled in 32-bit mode (with -m32) and
> >> 32-bit JVM. I'd appreciate any leads.
> >>
> >> -------------------------------------------------------------------------
> >> SF.Net email is sponsored by:
> >> Check out the new SourceForge.net Marketplace.
> >> It's the best place to buy or sell services
> >> for just about anything Open Source.
> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> >> _______________________________________________
> >> javax-usb-devel mailing list
> >> javax-usb-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
> >>
> >>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to