Advertisement
Guest User

Untitled

a guest
Nov 16th, 2014
653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. kirill@RERE-Mint ~/repo/awutils $ make
  2. cc -Wall -o awflash awflash.c -lusb
  3. awflash.c:115:10: error: unknown type name ‘libusb_device_handle’
  4. fex_xfer(libusb_device_handle *hdl, void *buffer, size_t len, uint8_t dir)
  5. ^
  6. awflash.c:178:13: error: unknown type name ‘libusb_device_handle’
  7. fex_command(libusb_device_handle *hdl, uint32_t cmd, uint32_t arg1, uint32_t arg2, uint32_t arg3, void *data, size_t len)
  8. ^
  9. awflash.c:315:20: error: unknown type name ‘libusb_device_handle’
  10. aw_fel_get_version(libusb_device_handle *usb) {
  11. ^
  12. awflash.c: In function ‘main’:
  13. awflash.c:338:2: error: unknown type name ‘libusb_device_handle’
  14. libusb_device_handle *usb;
  15. ^
  16. awflash.c:374:11: warning: assignment from incompatible pointer type [enabled by default]
  17. if ((usb = locate_device()) == 0) {
  18. ^
  19. awflash.c:379:2: warning: passing argument 1 of ‘usb_set_configuration’ from incompatible pointer type [enabled by default]
  20. open_status = usb_set_configuration(usb,1);
  21. ^
  22. In file included from awflash.c:23:0:
  23. /usr/include/usb.h:314:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘int *’
  24. int usb_set_configuration(usb_dev_handle *dev, int configuration);
  25. ^
  26. awflash.c:383:2: warning: passing argument 1 of ‘usb_claim_interface’ from incompatible pointer type [enabled by default]
  27. open_status = usb_claim_interface(usb,0);
  28. ^
  29. In file included from awflash.c:23:0:
  30. /usr/include/usb.h:315:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘int *’
  31. int usb_claim_interface(usb_dev_handle *dev, int interface);
  32. ^
  33. awflash.c:387:2: warning: passing argument 1 of ‘usb_set_altinterface’ from incompatible pointer type [enabled by default]
  34. open_status = usb_set_altinterface(usb,0);
  35. ^
  36. In file included from awflash.c:23:0:
  37. /usr/include/usb.h:317:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘int *’
  38. int usb_set_altinterface(usb_dev_handle *dev, int alternate);
  39. ^
  40. awflash.c:392:2: warning: implicit declaration of function ‘aw_get_version’ [-Wimplicit-function-declaration]
  41. if (aw_get_version(usb) == 1) {
  42. ^
  43. awflash.c:396:3: warning: implicit declaration of function ‘fex_command’ [-Wimplicit-function-declaration]
  44. if (fex_command(usb, AW_FEL_1_READ, 0x7e00, sizeof(buffer), buffer, sizeof(buffer)) < 0 ||
  45. ^
  46. awflash.c:413:3: warning: implicit declaration of function ‘fex_write_file’ [-Wimplicit-function-declaration]
  47. fex_write_file(0x7220, "fex_1_1.fex", 0xae0);
  48. ^
  49. awflash.c:423:20: error: ‘AWL_FEL_1_EXEC’ undeclared (first use in this function)
  50. fex_command(usb, AWL_FEL_1_EXEC, 0x2000, 0, NULL, 0);
  51. ^
  52. awflash.c:423:20: note: each undeclared identifier is reported only once for each function it appears in
  53. make: *** [awflash] Ошибка 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement