build errors in addon-macbookpro-backlight.c

Frederic Peters fpeters at 0d.be
Fri Jun 9 15:34:43 PDT 2006


Hello,

As seen on http://jhbuild.bxlug.be/builds/2006-06-09-0004/logs/hal/#build
errors in addon-macbookpro-backlight.c:

  :42:21: error: pci/pci.h: No such file or directory
  :67: warning: no previous declaration for 'read_backlight'
  :71: warning: no previous declaration for 'write_backlight'
  : In function 'main':
  :197: warning: implicit declaration of function 'pci_alloc'
  :197: warning: nested extern declaration of 'pci_alloc'
  :197: warning: initialization makes pointer from integer without a cast
  :198: warning: implicit declaration of function 'pci_init'
  :198: warning: nested extern declaration of 'pci_init'
  :199: warning: implicit declaration of function 'pci_scan_bus'
  :199: warning: nested extern declaration of 'pci_scan_bus'
  :201: error: dereferencing pointer to incomplete type
  :201: error: dereferencing pointer to incomplete type
  :202: warning: implicit declaration of function 'pci_fill_info'
  :202: warning: nested extern declaration of 'pci_fill_info'
  :202: error: 'PCI_FILL_IDENT' undeclared (first use in this function)
  :202: error: (Each undeclared identifier is reported only once
  :202: error: for each function it appears in.)
  :202: error: 'PCI_FILL_BASES' undeclared (first use in this function)
  :203: error: dereferencing pointer to incomplete type
  :203: error: dereferencing pointer to incomplete type
  :204: error: dereferencing pointer to incomplete type
  :205: error: dereferencing pointer to incomplete type
  :208: warning: implicit declaration of function 'pci_cleanup'
  :208: warning: nested extern declaration of 'pci_cleanup'
  :165: warning: unused variable 'ret'
  :164: warning: unused variable 'endptr'
  make[5]: *** [addon-macbookpro-backlight.o] Error 1

I tried to produce a patch but I couldn't find any reference to struct
pci_access or PCI_FILL_IDENT in my copy of 2.6.16 (and mactel-linux
wiki doesn't respond).


Regards,
        Frederic


More information about the hal mailing list