Hi, I am trying to compile the latest upstream version of powertweak (http://linux.powertweak.com/). The compilation is failing at the point where the pciutils that come with powertweak are being compiled. Powertweak's upstream author suggested that I try compiling the pciutils package from source of Debian's shipping pciutils package.
I downloaded the .orig.tgz and the .diff.gz files of pciutils (2.1.2) When trying to compile the virgin source or the patched source I get the following error: % make cd lib && ./configure /usr 2.1.2 Configuring libpci for your system...Linux/i386 2.2.13 Looking for access methods... proc i386-ports dump make -C lib all make[1]: Entering directory `/u/thaths/tmp/pciutils-2.1.2.orig/lib' cc -O2 -g -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -c -o access.o access.c [snip] cc -O2 -g -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -c -o i386-ports.o i386-ports.c In file included from i386-ports.c:15: /usr/include/sys/io.h:44: redefinition of `inb' /usr/include/asm/io.h:78: `inb' previously defined here /usr/include/sys/io.h:53: redefinition of `inb_p' /usr/include/asm/io.h:78: `inb_p' previously defined here /usr/include/sys/io.h:62: redefinition of `inw' /usr/include/asm/io.h:81: `inw' previously defined here /usr/include/sys/io.h:71: redefinition of `inw_p' /usr/include/asm/io.h:81: `inw_p' previously defined here /usr/include/sys/io.h:80: redefinition of `inl' /usr/include/asm/io.h:84: `inl' previously defined here /usr/include/sys/io.h:89: redefinition of `inl_p' /usr/include/asm/io.h:84: `inl_p' previously defined here /usr/include/sys/io.h:97: redefinition of `outb' /usr/include/asm/io.h:87: `outb' previously defined here /usr/include/sys/io.h:103: redefinition of `outb_p' /usr/include/asm/io.h:87: `outb_p' previously defined here /usr/include/sys/io.h:110: redefinition of `outw' /usr/include/asm/io.h:88: `outw' previously defined here /usr/include/sys/io.h:117: redefinition of `outw_p' /usr/include/asm/io.h:88: `outw_p' previously defined here /usr/include/sys/io.h:124: redefinition of `outl' /usr/include/asm/io.h:89: `outl' previously defined here /usr/include/sys/io.h:130: redefinition of `outl_p' /usr/include/asm/io.h:89: `outl_p' previously defined here /usr/include/sys/io.h:137: redefinition of `insb' /usr/include/asm/io.h:91: `insb' previously defined here /usr/include/sys/io.h:144: redefinition of `insw' /usr/include/asm/io.h:92: `insw' previously defined here /usr/include/sys/io.h:151: redefinition of `insl' /usr/include/asm/io.h:93: `insl' previously defined here /usr/include/sys/io.h:158: redefinition of `outsb' /usr/include/asm/io.h:95: `outsb' previously defined here /usr/include/sys/io.h:165: redefinition of `outsw' /usr/include/asm/io.h:96: `outsw' previously defined here /usr/include/sys/io.h:172: redefinition of `outsl' /usr/include/asm/io.h:97: `outsl' previously defined here make[1]: *** [i386-ports.o] Error 1 make[1]: Leaving directory `/u/thaths/tmp/pciutils-2.1.2.orig/lib' make: *** [lib] Error 2 I have libc6-dev (2.1.3-2) installed. % cc -v Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs gcc version 2.95.2 20000116 (Debian GNU/Linux) Can anyone tell me what is going on? And how do I fix it? How the the Debian pciutils package compiled? S. -- "Am I the only one who just wants to play hopscotch, bake cookies, and watch '"The McLaughlin Group?'" -- Lisa Simpson Sudhakar C13n http://people.netscape.com/thaths/ Lead Indentured Slave