pciutils / pciutils

The PCI Utilities
GNU General Public License v2.0
513 stars 265 forks source link

failed to compiling i386-io-liux #192

Closed cyclinder closed 3 hours ago

cyclinder commented 3 hours ago

Hi mates, I can't be compiling i386-io-linux on my latap, due to:

root@10-20-1-10:/home/cyclinder/pciutils/pciutils-3.10.0# gcc -fPIC -c lib/i386-io-linux.h -o lib/i386-io-linux.o
lib/i386-io-linux.h:16:37: error: expected ‘;’, ‘,’ or ‘)’ before ‘UNUSED’
   16 | intel_setup_io(struct pci_access *a UNUSED)
      |                                     ^~~~~~
lib/i386-io-linux.h:51:39: error: expected ‘;’, ‘,’ or ‘)’ before ‘UNUSED’
   51 | intel_cleanup_io(struct pci_access *a UNUSED)
      |                                       ^~~~~~

Can you help me? thanks.

gollux commented 3 hours ago

It's a header file, so you are not supposed to compile it separately. What do you expect to happen?

cyclinder commented 3 hours ago

Sorry, my mistake, the problem has been resolved. thanks.