Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47427 - gentoo-dev-sources 2.6.5: the file drivers/char/lirc/lirc_atiusb.c does not compile
Summary: gentoo-dev-sources 2.6.5: the file drivers/char/lirc/lirc_atiusb.c does not c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-10 06:21 UTC by Vincenzo Russo aka Nemo
Modified: 2004-04-10 09:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincenzo Russo aka Nemo 2004-04-10 06:21:05 UTC
Whe I compile gentoo-dev-sources 2.6.5 with LIRC support, this appens: 

-----------------------------------------------------------------------
drivers/char/lirc/lirc_atiusb.c: In function `usb_remote_probe':
drivers/char/lirc/lirc_atiusb.c:374: error: structure has no member named `act_altsetting'
make[3]: *** [drivers/char/lirc/lirc_atiusb.o] Error 1
make[2]: *** [drivers/char/lirc] Error 2
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2
-----------------------------------------------------------------------

Reproducible: Always
Steps to Reproduce:
1. configure gentoo-dev-sources with full LIRC support
2. save config
3. make

Actual Results:  
gentoo-dev-sources 2.6.5 does not compile


The reason of the error is the changes made to the 

------------------------------------------------------------------------
struct usb_interface 
------------------------------------------------------------------------

in the file

------------------------------------------------------------------------
usb.h
------------------------------------------------------------------------

To solve the problem: 

change any occurence of 

------------------------------------------------------------------------
idesc = &intf->altsetting[intf->act_altsetting]; 
------------------------------------------------------------------------

with 

------------------------------------------------------------------------
idesc = intf->cur_altsetting;
------------------------------------------------------------------------
Comment 1 Vincenzo Russo aka Nemo 2004-04-10 06:22:27 UTC
The reason of the error is the changes made to the 

------------------------------------------------------------------------
struct usb_interface 
------------------------------------------------------------------------

in the file

------------------------------------------------------------------------
usb.h
------------------------------------------------------------------------

To solve the problem: 

change any occurence of 

------------------------------------------------------------------------
idesc = &intf->altsetting[intf->act_altsetting]; 
------------------------------------------------------------------------

with 

------------------------------------------------------------------------
idesc = intf->cur_altsetting;
------------------------------------------------------------------------
Comment 2 Vincenzo Russo aka Nemo 2004-04-10 06:26:45 UTC
Ops.

You must be apply the changes I suggested to the incriminated file (/path/to/gentoo-dev-sources/drivers/char/lirc/lirc_atiusb.c)

I'm sorry for disattention.