Hello, i am trying to develop shell support tools for a variety of linuxes. I want to do PCI probing the most so I am trying to compile kudzu on debian I created a directory ./pci and moved pci.h there, here are my errors so far .. Thanks in advance, John (linux society) +++ > > > In file included from pci.c:26: > pciserial.h:8: warning: `struct pci_dev' declared inside parameter list > pciserial.h:8: warning: its scope is only this definition or declaration, > which > is probably not what you want. > pci.c: In function `kudzuToPci': > pci.c:141: `PCI_BASE_CLASS_NETWORK' undeclared (first use in this function) > pci.c:141: (Each undeclared identifier is reported only once > pci.c:141: for each function it appears in.) > pci.c:143: `PCI_BASE_CLASS_DISPLAY' undeclared (first use in this function) > pci.c:145: `PCI_CLASS_MULTIMEDIA_AUDIO' undeclared (first use in this > function) > pci.c:147: `PCI_CLASS_STORAGE_SCSI' undeclared (first use in this function) > pci.c:149: `PCI_CLASS_STORAGE_FLOPPY' undeclared (first use in this function) > pci.c:151: `PCI_CLASS_STORAGE_RAID' undeclared (first use in this function) > pci.c:153: `PCI_CLASS_MULTIMEDIA_VIDEO' undeclared (first use in this > function) > pci.c:155: `PCI_CLASS_COMMUNICATION_SERIAL' undeclared (first use in this > function) > pci.c:157: `PCI_CLASS_INPUT_MOUSE' undeclared (first use in this function) > pci.c:159: `PCI_CLASS_SERIAL_USB' undeclared (first use in this function) > pci.c:161: `PCI_CLASS_BRIDGE_CARDBUS' undeclared (first use in this function) > pci.c: In function `pciToKudzu': > pci.c:171: `PCI_BASE_CLASS_DISPLAY' undeclared (first use in this function) > pci.c:172: warning: unreachable code at beginning of switch statement > pci.c:177: `PCI_CLASS_STORAGE_SCSI' undeclared (first use in this function) > pci.c:178: `PCI_CLASS_SERIAL_FIBER' undeclared (first use in this function) > pci.c:180: `PCI_CLASS_STORAGE_FLOPPY' undeclared (first use in this function) > pci.c:182: `PCI_CLASS_STORAGE_RAID' undeclared (first use in this function) > pci.c:184: `PCI_CLASS_MULTIMEDIA_AUDIO' undeclared (first use in this > function) > pci.c:186: `PCI_CLASS_INPUT_MOUSE' undeclared (first use in this function) > pci.c:188: `PCI_CLASS_MULTIMEDIA_VIDEO' undeclared (first use in this > function) > pci.c:190: `PCI_CLASS_COMMUNICATION_SERIAL' undeclared (first use in this > function) > pci.c:191: `PCI_CLASS_COMMUNICATION_OTHER' undeclared (first use in this > function) > pci.c:193: `PCI_CLASS_NOT_DEFINED_VGA' undeclared (first use in this > function) > pci.c:179: warning: unreachable code at beginning of switch statement > pci.c:199: `PCI_CLASS_SERIAL_USB' undeclared (first use in this function) > pci.c:201: `PCI_CLASS_BRIDGE_CARDBUS' undeclared (first use in this function) > pci.c:203: `PCI_CLASS_NETWORK_ETHERNET' undeclared (first use in this > function) > pci.c:205: `PCI_CLASS_NETWORK_TOKEN_RING' undeclared (first use in this > function) > pci.c:207: `PCI_CLASS_NETWORK_FDDI' undeclared (first use in this function) > pci.c:209: `PCI_CLASS_NETWORK_ATM' undeclared (first use in this function) > pci.c: At top level: > pci.c:650: parse error before `byte' > pci.c:650: warning: `struct pci_dev' declared inside parameter list > pci.c: In function `isDisabled': > pci.c:660: `config' undeclared (first use in this function) > pci.c:660: `PCI_CLASS_DEVICE' undeclared (first use in this function) > pci.c:663: `p' undeclared (first use in this function) > pci.c:674: `PCI_COMMAND' undeclared (first use in this function) > pci.c:677: `PCI_BASE_ADDRESS_0' undeclared (first use in this function) > pci.c:678: `pciaddr_t' undeclared (first use in this function) > pci.c:678: parse error before `pos' > pci.c:680: `u32' undeclared (first use in this function) > pci.c:681: `flag' undeclared (first use in this function) > pci.c:681: `pos' undeclared (first use in this function) > pci.c:681: `len' undeclared (first use in this function) > pci.c:684: `PCI_BASE_ADDRESS_SPACE_IO' undeclared (first use in this > function) > pci.c:684: `PCI_COMMAND_IO' undeclared (first use in this function) > pci.c:686: `PCI_COMMAND_MEMORY' undeclared (first use in this function) > pci.c:677: warning: unused variable `x' > pci.c: In function `pciProbe': > pci.c:711: warning: implicit declaration of function `pci_alloc' > pci.c:711: warning: assignment makes pointer from integer without a cast > pci.c:717: dereferencing pointer to incomplete type > pci.c:717: dereferencing pointer to incomplete type > pci.c:718: dereferencing pointer to incomplete type > pci.c:722: warning: implicit declaration of function `pci_init' > pci.c:723: warning: implicit declaration of function `pci_scan_bus' > pci.c:727: dereferencing pointer to incomplete type > pci.c:727: dereferencing pointer to incomplete type > pci.c:728: `byte' undeclared (first use in this function) > pci.c:728: parse error before `config' > pci.c:730: `config' undeclared (first use in this function) > pci.c:731: warning: implicit declaration of function `pci_read_block' > pci.c:732: `PCI_HEADER_TYPE' undeclared (first use in this function) > pci.c:732: `PCI_HEADER_TYPE_CARDBUS' undeclared (first use in this function) > pci.c:736: `PCI_CB_CARD_BUS' undeclared (first use in this function) > pci.c:740: dereferencing pointer to incomplete type > pci.c:740: dereferencing pointer to incomplete type > pci.c:741: parse error before `config' > pci.c:751: `PCI_CB_SUBSYSTEM_VENDOR_ID' undeclared (first use in this > function) > pci.c:752: `PCI_CB_SUBSYSTEM_ID' undeclared (first use in this function) > pci.c:754: `PCI_SUBSYSTEM_VENDOR_ID' undeclared (first use in this function) > pci.c:755: `PCI_SUBSYSTEM_ID' undeclared (first use in this function) > pci.c:759: dereferencing pointer to incomplete type > pci.c:762: dereferencing pointer to incomplete type > pci.c:762: dereferencing pointer to incomplete type > pci.c:763: `PCI_CLASS_DEVICE' undeclared (first use in this function) > pci.c:764: `PCI_CLASS_SERIAL_USB' undeclared (first use in this function) > pci.c:767: `PCI_CLASS_PROG' undeclared (first use in this function) > pci.c:783: `PCI_CLASS_BRIDGE_CARDBUS' undeclared (first use in this function) > pci.c:802: `PCI_CLASS_NETWORK_TOKEN_RING' undeclared (first use in this > function) > pci.c:808: warning: passing arg 2 of `checkPCISerial' from incompatible > pointer > type > pci.c:823: warning: implicit declaration of function `pci_cleanup' > > > ===== > John van Vlaanderen > > ############################################# > # CXN, Inc. Contact: john@xxxxxxxxxxx # # > # Proud Sponsor of The Linux Society # > # http://www.thelinuxsociety.org # > ############################################# > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - Feel better, live better > http://health.yahoo.com > ===== John van Vlaanderen ############################################# # CXN, Inc. Contact: john@xxxxxxxxxxx # # # Proud Sponsor of The Linux Society # # http://www.thelinuxsociety.org # ############################################# __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com