Am Dienstag 28 Juni 2011, 00:21:04 schrieb Duchene, StephenX A:
> I downloaded version 1.98 and I am trying to compile it on OpenSuSE 11.2
> At first it told me I did not have the libnl-devel package installed.
> I fixed that but now I am having a problem with the pci.h include file
> Not being found. When I run make it says:
> 
> sd@lapibm:~/src/powertop-1.98> make
>   CC  lib.cpp
> lib.cpp:40:21: error: pci/pci.h: No such file or directory
> lib.cpp: In function �char* pci_id_to_name(uint16_t, uint16_t, char*,
> int)�: lib.cpp:253: error: �pci_alloc� was not declared in this scope
> lib.cpp:254: error: �pci_init� was not declared in this scope
> lib.cpp:257: error: �PCI_LOOKUP_VENDOR� was not declared in this scope
> lib.cpp:257: error: �PCI_LOOKUP_DEVICE� was not declared in this scope
> lib.cpp:257: error: �pci_lookup_name� was not declared in this scope
> lib.cpp: In function �void end_pci_access()�:
> lib.cpp:265: error: �pci_free_name_list� was not declared in this scope
> make: *** [lib.o] Error 1
> 
> I do have the appropriate files in /usr/include/linux but I have also
> looked for these declarations in /usr/src/linux/drivers/pci/pci.h and
> /usr/src/linux/include/linux/pci.h as well as any other pci.h files I
> could locate on my system.
> 
> What am I missing?
> 
> 
Do you have pciutils-devel installed?

Thanks,
Peter

_______________________________________________
Power mailing list
[email protected]
https://bughost.org/mailman/listinfo/power

Reply via email to