Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40030 - Kernel 2.4.22-gentoo-r5 compile failed at usb drivers
Summary: Kernel 2.4.22-gentoo-r5 compile failed at usb drivers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-31 19:53 UTC by bryant_ben
Modified: 2004-04-09 08:16 UTC (History)
1 user (show)

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


Attachments
.config file used (.config,22.87 KB, text/plain)
2004-01-31 19:55 UTC, bryant_ben
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bryant_ben 2004-01-31 19:53:27 UTC
When compiling the kernel with usb drivers (for mouse, keyboard), gcc fails at inode.c



Reproducible: Always
Steps to Reproduce:
1. make dep && make bzImage modules modules_install
2.
3.

Actual Results:  
Compile crashed with following message:

inode.c:681: redefinition of `usbdevfs_add_bus'
/usr/src/linux-2.4.22-gentoo-r5/include/linux/usb.h:1119: `usbdevfs_add_bus'
previously defined here
inode.c:693: redefinition of `usbdevfs_remove_bus'
/usr/src/linux-2.4.22-gentoo-r5/include/linux/usb.h:1120: `usbdevfs_remove_bus'
previously defined here
inode.c:703: redefinition of `usbdevfs_add_device'
/usr/src/linux-2.4.22-gentoo-r5/include/linux/usb.h:1121: `usbdevfs_add_device'
previously defined here
inode.c:715: redefinition of `usbdevfs_remove_device'
/usr/src/linux-2.4.22-gentoo-r5/include/linux/usb.h:1122:
`usbdevfs_remove_device' previously defined here
inode.c:750: redefinition of `usbdevfs_init'
/usr/src/linux-2.4.22-gentoo-r5/include/linux/usb.h:1124: `usbdevfs_init'
previously defined here
inode.c:775: redefinition of `usbdevfs_cleanup'
/usr/src/linux-2.4.22-gentoo-r5/include/linux/usb.h:1125: `usbdevfs_cleanup'
previously defined here
make[3]: *** [inode.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r5/drivers/usb'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r5/drivers/usb'
make[1]: *** [_subdir_usb] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r5/drivers'
make: *** [_dir_drivers] Error 2

Expected Results:  
Compiled correctly
Comment 1 bryant_ben 2004-01-31 19:55:18 UTC
Created attachment 24715 [details]
.config file used
Comment 2 Brian Jackson (RETIRED) gentoo-dev 2004-02-16 15:21:46 UTC
enable Preliminary USB device filesystem under the usb menu
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-02-19 10:32:29 UTC
Can you please backup your .config, run "make mrproper", stick your .config back in, run "make oldconfig && make dep bzImage"?
Comment 4 Jason Cox (RETIRED) gentoo-dev 2004-04-08 22:43:37 UTC
Did any of the previous suggestions fix this?
Comment 5 Jason Cox (RETIRED) gentoo-dev 2004-04-09 08:16:24 UTC
Closing. Newer kernels have fixed this.