Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65482 - aa-sources (linux-2.6.5-aa5) doesn't compile, error in drivers/pci/proc.c: In function `proc_bus_pci_write':
Summary: aa-sources (linux-2.6.5-aa5) doesn't compile, error in drivers/pci/proc.c: In...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-26 19:34 UTC by Vinícius Dias dos Santos
Modified: 2004-10-02 12:58 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 Vinícius Dias dos Santos 2004-09-26 19:34:45 UTC
Function `proc_bus_pci_write' (line 140 of drivers/pci/proc.c) tries to
asign (dev->cfg_size) to size(a int). There is no such struct member in pci_dev(wich dev is). I couldn't even find something related to size in the pci_dev struct, even thouh there is a PCI_CFG_SPACE_SIZE macro on top of the file.
Could be a gcc 3.4 issue?
gcc (GCC) 3.4.2  (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5)


Reproducible: Always
Steps to Reproduce:
1.emerge sync
2.emerge aa-sources
3.cd /usr/src/linux-2.6.5-aa5
4. make menuconfig (or make oldconfig, just configure the kernel)
5. make
(using gcc (GCC) 3.4.2  (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5))
Actual Results:  
<snip>
 CC      drivers/pci/proc.o
drivers/pci/proc.c: In function `proc_bus_pci_write':
drivers/pci/proc.c:146: error: structure has no member named `cfg_size'
make[2]: *** [drivers/pci/proc.o] Error 1
make[1]: *** [drivers/pci] Error 2
make: *** [drivers] Error 2


Expected Results:  
Compile a functional(or not) bzImage.

gcc (GCC) 3.4.2  (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5)
sys-kernel/aa-sources-2.6.5-r5
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-10-02 12:58:54 UTC
Hrm, looks like a buggy patch is on the mirrors, not the one which is on my dev-space from a few months ago. I've pushed a working one onto them which should reach them soon, this should fix it meanwhile:

%> emerge sync
%> rm /usr/portage/distfiles/linux-2.6.5-CAN-2004-0415.patch
%> wget -P /usr/portage/distfiles http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-2.6.5-CAN-2004-0415.patch
%> # Remerge sources...

Please reopen this bug if you still have any further issues. Thanks!