For now, you need to re-compile the JNI with whatever kernel you are 
using.  That should fix your problem.

I recent found that, unfortunately, the kernel developers recently decided 
that the standard kernel headers are "not for userspace programs" and they 
are delegating "cleaning" of the kernel headers to distribution providers.  
So, if you get a new kernel from kernel.org and try to build using their 
kernel headers, it won't work (specifically, the usb.h header includes 
another header that breaks the compile).  So, either you have to "fix" the 
kernel headers that you got from whatever new kernel you want to use, or 
you're stuck with whatever kernel your distribution provided.

I am going to (unfortunately) have to hardcode into the JNI all constants 
that I have to use to talk to the kernel, and do a dynamic kernel version 
check.  Really a pain.  But that is not done yet, so for now, compile 
against the specific kernel headers for the kernel you want to run 
against.


On Fri, 24 Sep 2004, Andre Neto wrote:

>Hello,
>
>I have exactly the same problem, it all works fine with RedHat 
>9.0(kernel version 2.4), but i get the same error with Fedora Core 
>release 2, kernerl version(2.6).
>Did some one manage to get a solution to this problem?
>Regards,
>André
>
>>Very strange.  Can you try editing your javax.usb.properties file and 
>>enable JNI debugging?  It may help determine what the problem is...
>>
>>On Thu, 29 Jul 2004, Sathya Peri wrote:
>>
>>  
>>
>>>Hello,
>>>
>>>Iam trying to submit data to a device (Card reader) suing syncSubmit(). Now
>>>this program works perfectly fine when I execute it in Mandrake linux 9.1,
>>>kernel version 2.4. But when I try to execute the same program for Fedora
>>>Core release 2, kernel version 2.6.5, it fails. I get the error  Error
>>>submitting IRP :Invalid, which is as follows:
>>>
>>>javax.usb.UsbException: Error submitting IRP : Invalid at
>>>com.ibm.jusb.os.linux.LinuxPipeRequest.completeUsbIrp(LinuxPipeRequest.java:
>>>84)
>>>       at
>>>com.ibm.jusb.os.linux.LinuxPipeRequest.setCompleted(LinuxPipeRequest.java:74
>>>)
>>>       at com.ibm.jusb.os.linux.JavaxUsb.nativeDeviceProxy(Native
>>>Method)
>>>       at
>>>com.ibm.jusb.os.linux.LinuxDeviceProxy$1.run(LinuxDeviceProxy.java:87)
>>>       at java.lang.Thread.run(Thread.java:534)
>>>
>>>
>>>Do you think there could be some problem/incompatibility with linux kernel
>>>version 2.6 that causes syncSubmit() function not to work??
>>>
>>>Can anybody give me some suggestions? Thanks a lot!!
>>>
>>>Regds
>>>Sathya
>>>
>>>    
>>>
>>
>>  
>>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
>Project Admins to receive an Apple iPod Mini FREE for your judgement on
>who ports your project to Linux PPC the best. Sponsored by IBM.
>Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
>_______________________________________________
>javax-usb-devel mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
>

-- 
Dan Streetman
[EMAIL PROTECTED]
---------------------
186,272 miles per second:
It isn't just a good idea, it's the law!


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
javax-usb-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to