Hmm, well it looks like a kernel bug. In mod_devicetable.h at the top there is a __KERNEL__ protected section:
#ifdef __KERNEL__ #include <linux/types.h> typedef unsigned long kernel_ulong_t; #endif however later in the file kernel_ulong_t is used, outside of a __KERNEL__ protected block. So if you edit that block to remove it from the __KERNEL__ define (i.e. remove the #ifdef and #endif lines) everything should work ok. I have no idea why I didn't get this error before...I will see if I can get it fixed. On Fri, 10 Sep 2004, Susheel Yadav wrote: >Dan, >I tried the CINCLUDES option, and here is what I get >while compiling javax-usb-ri-linux: > >compile: > [echo] Compiling class files. > [javac] Compiling 17 source files to >/data/temp/usb/javax-usb/javax-usb-ri-linux/src > [echo] Compiling JNI library. > [exec] gcc -I/opt/blackdown-jdk-1.4.2_rc1/include >-I/opt/blackdown-jdk-1.4.2_rc1/include/linux >-I/usr/src/linux/include -Wall -c JavaxUsbLog.c > [exec] In file included from >/usr/src/linux/include/linux/usb.h:4, > [exec] from JavaxUsbKernel.h:18, > [exec] from JavaxUsb.h:35, > [exec] from JavaxUsbLog.c:11: > [exec] >/usr/src/linux/include/linux/mod_devicetable.h:21: >error: syntax error before "kernel_ulong_t" > [exec] >/usr/src/linux/include/linux/mod_devicetable.h:21: >warning: no semicolon at end of struct or union > [exec] >/usr/src/linux/include/linux/mod_devicetable.h:36: >error: syntax error before "kernel_ulong_t" > [exec] >/usr/src/linux/include/linux/mod_devicetable.h:36: >warning: no semicolon at end of struct or union > [exec] >/usr/src/linux/include/linux/mod_devicetable.h:118: >error: syntax error before "kernel_ulong_t" > [exec] >/usr/src/linux/include/linux/mod_devicetable.h:118: >warning: no semicolon at end of struct or union > [exec] >/usr/src/linux/include/linux/mod_devicetable.h:142: >error: syntax error before "kernel_ulong_t" > [exec] >/usr/src/linux/include/linux/mod_devicetable.h:142: >warning: no semicolon at end of struct or union > [exec] >/usr/src/linux/include/linux/mod_devicetable.h:156: >error: syntax error before "kernel_ulong_t" > [exec] >/usr/src/linux/include/linux/mod_devicetable.h:156: >warning: no semicolon at end of struct or union > [exec] >/usr/src/linux/include/linux/mod_devicetable.h:161: >error: syntax error before "kernel_ulong_t" > [exec] >/usr/src/linux/include/linux/mod_devicetable.h:161: >warning: no semicolon at end of struct or union > [exec] >/usr/src/linux/include/linux/mod_devicetable.h:165: >error: syntax error before '}' token > [exec] make: *** [JavaxUsbLog.o] Error 1 > > > > > >__________________________________ >Do you Yahoo!? >New and Improved Yahoo! Mail - 100MB free storage! >http://promotions.yahoo.com/new_mail > > >------------------------------------------------------- >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. 13. 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. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel