Re: Problems compiling ksdazzle module on OpenSUSE 10.2

"Steve Rooke" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Hello Alex,

On 8/25/07, Alex Villací­s Lasso <[email protected]> wrote:
> Steve Rooke escribió:
> > Hello Alex,
> >
> > I'm trying to compile your ksdazzle module for a Kingsun irda to usb
> > device under OpenSUSE 10.2 with a 2.6.18.8-0.5 kernel (which is the
> > latest I can find for this distribution). The version of ksdazzle.c I
> > have is 0.1.1.
> >
> Ashik Ahamed escribió:
> > *Hi Alex,*
> > *Thanks for the help.*
> > *When I tried to run make i got the following output in the terminal*
> >
> > make -C /lib/modules/2.6.15-28-386/build M=`pwd` modules
> > make[1]: Entering directory `/usr/src/linux-headers-2.6.15-28-386'
> >   CC [M]  /home/ashik/Desktop/ksdazzle/ksdazzle-sir.o
> Both of these situations happen because the kernel is too old and lacks
> symbols defined in 2.6.22. I know there are some #define's that can be
> used to work around differences in kernel versions, and I have tried to
> use it in the source file attached. Both of you should replace the
> version of ksdazzle-sir.c that came in the tarball with this version,
> then run "make clean", and then "make" again. If everything goes
> according to plan, the version should be detected correctly, and the
> newer symbols should be avoided. Of course, I expect you to report back
> on whether the driver compiles and runs successfully. Then I will
> proceed to place this version in my website.
>
> I have chosen the cutoff for the usb symbols at 2.6.19. I am still
> googling around to see whether this is the right kernel version to
> check. Specifically, 2.6.18 and earlier lack usb_endpoint_is_int_in, and
> usb_endpoint_is_int_out, and require an additional parameter of type
> struct pt_regs * in URB callbacks. Anybody who knows the right kernel
> versions to check, please comment on this.

make gives:
make -C /lib/modules/2.6.18.8-0.5-default/build M=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.18.8-0.5-obj/i386/default'
make -C ../../../linux-2.6.18.8-0.5
O=../linux-2.6.18.8-0.5-obj/i386/default modules
  CC [M]  /home/steve/MyDownloads/ksdazzle/ksdazzle-sir.o
/home/steve/MyDownloads/ksdazzle/ksdazzle-sir.c: In function
'ksdazzle_speed_irq':
/home/steve/MyDownloads/ksdazzle/ksdazzle-sir.c:171: error: parameter
name omitted
/home/steve/MyDownloads/ksdazzle/ksdazzle-sir.c: In function
'ksdazzle_send_irq':
/home/steve/MyDownloads/ksdazzle/ksdazzle-sir.c:251: error: parameter
name omitted
/home/steve/MyDownloads/ksdazzle/ksdazzle-sir.c: In function 'ksdazzle_rcv_irq':
/home/steve/MyDownloads/ksdazzle/ksdazzle-sir.c:362: error: parameter
name omitted
make[4]: *** [/home/steve/MyDownloads/ksdazzle/ksdazzle-sir.o] Error 1
make[3]: *** [_module_/home/steve/MyDownloads/ksdazzle] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.18.8-0.5-obj/i386/default'
make: *** [ksdazzle-sir.ko] Error 2

The second parameter does not seem to be used in the functions
ksdazzle_speed_irq, ksdazzle_send_irq and ksdazzle_rcv_irq and a quick
hack allows the code to compile fine. The module loads and lirc can be
loaded but provides only occasional functionality with a variety of
remotes. I have tried with irw and certainly get correct codes when it
works. Testing with mode2 shows only occasional output. Maybe timing
issues.

It certainly seems stable and I have experienced no system
instability. I guess we need some debug code in there now and I will
carry out further testing, and report back. Almost there!

Thanks,
Steve

-- 
Steve Rooke - ZL3TUV & G8KVD
Omnium finis imminet

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.